public final class SqlBuilder extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static String[] | FUNCTION_DELIMITERSDelimiters for SQL functions. | 
| protected static org.apache.logging.log4j.Logger | logLogging | 
| Modifier and Type | Method and Description | 
|---|---|
| static Query | buildQuery(Criteria crit)Builds a Query from a criteria. | 
| static String | getFullTableName(String table,
                String dbName)Fully qualify a table name with an optional schema reference. | 
| static TableMap | getTableMap(String tableName,
           String dbName)Returns the table map for a table. | 
| static String | getUnqualifiedName(String name,
                  String dbName)Unqualify a table or column name. | 
| static List<WhereClausePsPartBuilder> | getWhereClausePsPartBuilders()Returns the Builders which are responsible to render single where clause
 conditions. | 
| static String | guessFullTableFromCriteria(Criteria criteria)Guesses a table name from a criteria by inspecting the first
 column in the criteria. | 
protected static final org.apache.logging.log4j.Logger log
public static final String[] FUNCTION_DELIMITERS
public static List<WhereClausePsPartBuilder> getWhereClausePsPartBuilders()
public static Query buildQuery(Criteria crit) throws TorqueException
crit - the criteria to build the query from, not null.TorqueException - if an error occurspublic static String getFullTableName(String table, String dbName) throws TorqueException
table - The table name to use.
              If null is passed in, null is returned.dbName - The name of the database to which this tables belongs.
               If null is passed, the default database is used.TorqueException - if Torque is not yet initialized.public static String getUnqualifiedName(String name, String dbName) throws TorqueException
name - the name to unqualify.
        If null is passed in, null is returned.dbName - name of the databaseTorqueException - if the name cannot be determined.public static String guessFullTableFromCriteria(Criteria criteria) throws TorqueException
criteria - the criteria to guess the table name from.TorqueException - if the table name cannot be determined.public static TableMap getTableMap(String tableName, String dbName) throws TorqueException
tableName - the name of the table.dbName - the name of the database, null for the default db.TorqueException - if the database or table is unknown.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.