Package com.objectsql.option
Class AbstractOptions
java.lang.Object
com.objectsql.option.AbstractOptions
- All Implemented Interfaces:
Options
- Direct Known Subclasses:
MySQLOptions,OracleOptions,SQLServerOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcolumnComment(RdColumn rdColumn) doQueryCount(IQuery query) abstract StringgetCaseSensitive(String name, int sensitive) protected Stringprotected StringgetColumnWithOperator(Column column) getConditions(Class clazz, Expression[] expressions, List<Pair> values) protected StringgetForeignSQL(RdTable table, RdColumn rdColumn, RdForeignKey foreign) getTableName(RdTable rdTable) protected StringgetUniqueSQL(RdTable table, RdColumn rdColumn, RdUniqueKey uniqueKey) groupCountSelect(IQuery query) joins(MultiQuery obj, List<Pair> values) parseCaseColumnValue(Object object) parseColumn(Column column) static StringparseColumn(Options options, Column column) parseConditions(Condition condition) parseExpression(Class clazz, Map<String, Object> clazzes, Expression expression) parseExpression(Object clazz, Expression expression) abstract booleanpreSetParameter(PreparedStatement ps, Connection connection, String databaseType, int i, Pair pair) voidsetParameter(PreparedStatement ps, Connection connection, String databaseType, int i, Pair pair) booleantableExists(Connection connection, String schema, RdTable rdTable) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.objectsql.support.Options
columns, columns, createOrUpdateSqls, createOrUpdateSqls, databaseType, doQuery, doQuery, dropTable, getClassName, getColumnType, getColumnWithOperator, getColumnWithOperatorAndFunction, keyword, nanoTimeSQL, table, table, tableExists, tables
-
Constructor Details
-
AbstractOptions
public AbstractOptions()
-
-
Method Details
-
doQuery
-
preSetParameter
public abstract boolean preSetParameter(PreparedStatement ps, Connection connection, String databaseType, int i, Pair pair) throws SQLException - Throws:
SQLException
-
tableExists
public boolean tableExists(Connection connection, String schema, RdTable rdTable) throws ORMException - Specified by:
tableExistsin interfaceOptions- Throws:
ORMException
-
getCoding
-
setParameter
public void setParameter(PreparedStatement ps, Connection connection, String databaseType, int i, Pair pair) throws SQLException - Specified by:
setParameterin interfaceOptions- Throws:
SQLException
-
doQueryCount
- Specified by:
doQueryCountin interfaceOptions
-
selectCount
-
selectColumns
-
groupCountSelect
-
orders
-
tables
-
wheres
-
groups
-
havings
-
joins
-
getForeignSQL
-
getUniqueSQL
-
columnComment
-
parseExpression
-
parseColumn
- Specified by:
parseColumnin interfaceOptions
-
getColumnWithOperator
-
getColumnWithOperatorAndFunction
-
getOrders
-
parseCaseColumnValue
-
getOrders
-
getGroups
-
parseColumn
-
getConditions
- Specified by:
getConditionsin interfaceOptions
-
parseConditions
-
getConditions
- Specified by:
getConditionsin interfaceOptions
-
parseExpression
- Specified by:
parseExpressionin interfaceOptions
-
getCaseSensitive
- Specified by:
getCaseSensitivein interfaceOptions
-
getTableName
- Specified by:
getTableNamein interfaceOptions- Throws:
ORMException
-