public abstract class DBInterfaceBase extends ServiceBase implements DBInterface
| Modifier and Type | Field and Description |
|---|---|
protected DBCapabilties |
capabilities |
protected ConnectionFactory |
connFactory |
protected DBType |
dbType |
protected DBErrorConverter |
errorConverter |
protected Random |
random |
protected SqlHelperFactory |
sqlHelperFactory |
protected Log |
sqlLog |
protected TableCreator |
tableCreator |
protected ValueHelper |
valueHelper |
et, factorySvc, log| Constructor and Description |
|---|
DBInterfaceBase(DBType dbType,
FactoryService factorySvc,
ConnectionFactory connFactory,
SqlHelperFactory sqlhelperFactory) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitalterField, alterFieldType, createField, createTable, deleteField, deleteTable, doesFieldExist, doesTableExist, executeDelete, executeInsert, executeQuery, executeUpdate, renameField, renameTableprotected DBCapabilties capabilities
protected Log sqlLog
protected TableCreator tableCreator
protected ValueHelper valueHelper
protected SqlHelperFactory sqlHelperFactory
protected ConnectionFactory connFactory
protected DBType dbType
protected DBErrorConverter errorConverter
protected Random random
public DBInterfaceBase(DBType dbType, FactoryService factorySvc, ConnectionFactory connFactory, SqlHelperFactory sqlhelperFactory)
public DBCapabilties getCapabilities()
getCapabilities in interface DBInterfacepublic abstract DBExecutor createExector(DBAccessContext ctx)
createExector in interface DBInterfacepublic void init(FactoryService factorySvc)
init in interface DBInterfaceprotected DValue extractGeneratedKey(InsertContext ctx, SqlExecuteContext sqlctx) throws SQLException
SQLExceptionprotected void logSql(String sql)
protected List<DValue> buildDValueList(ResultSet rs, DStructType dtype, QueryDetails details, DBAccessContext dbctx)
protected List<DValue> buildScalarResult(ResultSet rs, DType selectResultType, QueryDetails details, DBAccessContext dbctx)
protected List<DValue> mergeRows(List<DValue> rawList, DStructType dtype, QueryDetails details)
rawList - list of dvalues to mergedtype - of valuesdetails - query detailsprotected List<DValue> doBuildDValueList(ResultSet rs, DStructType dtype, DBAccessContext dbctx) throws Exception
Exceptionprotected DValue createRelation(DStructType structType, TypePair targetPair, ResultSet rs, DBAccessContext dbctx) throws SQLException
SQLExceptionprotected DValue readField(TypePair pair, ResultSet rs, DBAccessContext dbctx) throws SQLException
SQLExceptionprotected PreparedStatementGenerator createPrepSqlGen(DBAccessContext dbctx)
protected InsertStatementGenerator createPrepInsertSqlGen(DBAccessContext dbctx)
protected TableCreator createTableCreator(DBAccessContext dbctx)
protected FKSqlGenerator createFKSqlGen(List<TableInfo> tblinfoL, DBAccessContext dbctx)
public boolean isSQLLoggingEnabled()
isSQLLoggingEnabled in interface DBInterfacepublic void enableSQLLogging(boolean b)
enableSQLLogging in interface DBInterfaceprotected void logSql(SqlStatement statement)
public DBType getDBType()
getDBType in interface DBInterfaceprotected String generateUniqueConstraintName()
Copyright © 2020. All rights reserved.