Package com.objectsql.option
Class MySQLOptions
java.lang.Object
com.objectsql.option.AbstractOptions
com.objectsql.option.MySQLOptions
- All Implemented Interfaces:
Options
- Direct Known Subclasses:
H2Options,PostgreSQLOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolumns(Connection connection, String schema, RdTable rdTable) columns(Connection connection, String schema, String tableName) protected StringcolumnString(ColumnInfo info, int sensitive, RdColumn rdColumn, boolean addKey) protected StringcolumnString(TableColumn tableColumn, int sensitive, boolean addKey) createOrUpdateSqls(Connection connection, String schema, RdTable table, List<ColumnInfo> infos, boolean tableExisted, List<TableColumn> tableColumns) createOrUpdateSqls(Connection connection, String schema, Table table, List<TableColumn> columns, List<TableColumn> tableColumns, boolean tableExisted) doQuery(Class<?> clazz, String schema, String[] names, Condition condition, MultiOrder multiOrder, Integer start, Integer size) getCaseSensitive(String name, int sensitive) getClassName(TableColumn column) protected StringgetColumnType(ColumnInfo info, RdColumn rdColumn) getColumnType(TableColumn column) getColumnWithOperator(OperatorType operatorType, String name, String value) getColumnWithOperatorAndFunction(String function, boolean inFunction, OperatorType operatorType, String name, String value) keyword()booleanpreSetParameter(PreparedStatement ps, Connection connection, String databaseType, int i, Pair pair) table(Connection connection, String schema, RdTable rdTable) table(Connection connection, String schema, Table table) booleantableExists(Connection connection, String schema, String tableName) tables(Connection connection, String schema, String keyword) Methods inherited from class com.objectsql.option.AbstractOptions
columnComment, doQuery, doQueryCount, getCoding, getColumnWithOperator, getColumnWithOperatorAndFunction, getConditions, getConditions, getForeignSQL, getGroups, getOrders, getOrders, getTableName, getUniqueSQL, groupCountSelect, groups, havings, joins, orders, parseCaseColumnValue, parseColumn, parseColumn, parseConditions, parseExpression, parseExpression, selectColumns, selectCount, setParameter, tableExists, tables, wheres
-
Constructor Details
-
MySQLOptions
public MySQLOptions()
-
-
Method Details
-
preSetParameter
public boolean preSetParameter(PreparedStatement ps, Connection connection, String databaseType, int i, Pair pair) throws SQLException - Specified by:
preSetParameterin classAbstractOptions- Throws:
SQLException
-
keyword
-
getColumnWithOperator
-
getColumnWithOperatorAndFunction
public String getColumnWithOperatorAndFunction(String function, boolean inFunction, OperatorType operatorType, String name, String value) -
databaseType
-
nanoTimeSQL
-
doQuery
-
doQuery
-
tableExists
-
getCaseSensitive
- Specified by:
getCaseSensitivein interfaceOptions- Specified by:
getCaseSensitivein classAbstractOptions
-
tables
-
table
- Throws:
ORMException
-
table
-
columns
public List<TableColumn> columns(Connection connection, String schema, RdTable rdTable) throws ORMException - Throws:
ORMException
-
columns
-
getSchema
-
createOrUpdateSqls
public List<String> createOrUpdateSqls(Connection connection, String schema, RdTable table, List<ColumnInfo> infos, boolean tableExisted, List<TableColumn> tableColumns) -
dropTable
-
createOrUpdateSqls
public List<String> createOrUpdateSqls(Connection connection, String schema, Table table, List<TableColumn> columns, List<TableColumn> tableColumns, boolean tableExisted) -
columnString
-
columnString
-
getColumnType
-
getColumnType
-
getClassName
-