public final class MySqlDriver extends SqlDriver
| Constructor and Description |
|---|
MySqlDriver(Supplier<Connection> connectionSupplier,
PojoOperations pops) |
MySqlDriver(Supplier<Connection> connectionSupplier,
PojoOperations pops,
Map<Database,Database> aliases) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
fieldName(Table table,
Field field) |
protected String |
fullFieldName(Table table,
Field field) |
protected String |
fullTableName(Table table) |
protected Object |
getKeyValueFromResultSet(ResultSet rs,
Field field)
Retrieve the returned key value from a result set (used for updating
auto-increment keys).
|
protected TableGenerator |
getTableGenerator() |
protected boolean |
useUnionAll() |
protected String |
virtualFieldName(String name) |
protected String |
virtualValue(String name) |
create, databaseName, delete, openTransaction, setCreateTables, setEnum, setRollbackOnUncommittedClose, stream, tableName, updatepublic MySqlDriver(Supplier<Connection> connectionSupplier, PojoOperations pops)
public MySqlDriver(Supplier<Connection> connectionSupplier, PojoOperations pops, Map<Database,Database> aliases)
protected String fullTableName(Table table) throws OrmException
fullTableName in class SqlDriverOrmExceptionprotected String fullFieldName(Table table, Field field) throws OrmException
fullFieldName in class SqlDriverOrmExceptionprotected String fieldName(Table table, Field field) throws OrmException
fieldName in class SqlDriverOrmExceptionprotected String virtualFieldName(String name)
virtualFieldName in class SqlDriverprotected String virtualValue(String name)
virtualValue in class SqlDriverprotected TableGenerator getTableGenerator() throws OrmException
getTableGenerator in class SqlDriverOrmExceptionprotected Object getKeyValueFromResultSet(ResultSet rs, Field field) throws OrmException
getKeyValueFromResultSet in class SqlDriverrs - The result setfield - The field for which we're reading dataOrmException - Thrown if we cannot work out how to extract the
data.protected boolean useUnionAll()
useUnionAll in class SqlDriverCopyright © 2020. All rights reserved.