public abstract class DBAccess extends Object implements DBAccessIntf
| Modifier and Type | Field and Description |
|---|---|
static int |
CACHE_SIZE |
protected String |
databaseName |
protected boolean |
dataTypeFlag |
protected String |
dateFormatStr |
static boolean |
noCursor |
protected boolean |
noCursorFlag |
protected QueueWriter |
queueSQLWriter |
static int |
SCROLL_TYPE |
static boolean |
sqlCache |
protected SimpleDateFormat |
sqlDateFormat |
protected SimpleDateFormat |
strDateFormat |
static boolean |
useSqlParams |
protected String |
vendor |
GET_DATE_SQL, IDENTITY_SQL, SETUP_PARAM_DATABASECLASSNAME, SETUP_PARAM_DATABASENAME, SETUP_PARAM_ENCRYPTCLASSNAME, SETUP_PARAM_ENCRYPTED, SETUP_PARAM_IPADDR, SETUP_PARAM_PASSWORD, SETUP_PARAM_POOLNAME, SETUP_PARAM_PORTNUMBER, SETUP_PARAM_USER, SQL_DATE_FORMATclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConnectionpublic static int SCROLL_TYPE
public static int CACHE_SIZE
public static boolean sqlCache
public static boolean noCursor
public static boolean useSqlParams
protected QueueWriter queueSQLWriter
protected String databaseName
protected String vendor
protected SimpleDateFormat sqlDateFormat
protected SimpleDateFormat strDateFormat
protected String dateFormatStr
protected boolean dataTypeFlag
protected boolean noCursorFlag
public DBAccess(String aVendor)
aVendor - vendorpublic abstract DBAccessIntf cloneDBAccess()
cloneDBAccess in interface DBAccessIntfpublic boolean isSQLRetryError(int anErrorCode)
isSQLRetryError in interface DBAccessIntfpublic void setDatabaseName(String aDatabaseName)
setDatabaseName in interface DBAccessIntfpublic abstract String getURL(String anAddr, String aPort)
getURL in interface DBAccessIntfpublic void setDataType(boolean aFlag,
String aDateFormat)
setDataType in interface DBAccessIntfpublic void setNoCursorFlag(boolean aFlag)
setNoCursorFlag in interface DBAccessIntfpublic int setData(ResultSet rs, DataView aStorage, int aRow, int aStartRows, int aMaxRows, boolean aDataMapFlag)
setData in interface DBAccessIntfpublic void setQueueSQLWriter(QueueWriter aWriter)
setQueueSQLWriter in interface DBAccessIntfpublic MetadataIntf loadMetaData(String aClassName, ResultSet rs)
loadMetaData in interface DBAccessIntfpublic MetadataIntf loadMetaData(String aClassName, ResultSet rs, boolean aTrimFlag)
loadMetaData in interface DBAccessIntfpublic TypeDBIntf createType(int aType)
createType in interface DBAccessIntfpublic TypeDBIntf createType(int aType, int aPrecision, int aScale)
createType in interface DBAccessIntfpublic int getDefError()
public List<String> getPrimaryKeyNames(DataSource aDataSource, String aTableName)
public List<String> getPrimaryKeys(DataSourceIntf aDataSource, String aTableName)
getPrimaryKeys in interface DBAccessIntfpublic String getIdentityColumn(DataSourceIntf aDataSource, String aTableName)
getIdentityColumn in interface DBAccessIntfpublic List<String> getPriv(DataSource aDataSource, String aTableName, String aColumn)
public List<String> getTableNames(DataSource aDataSource, String catalog, String schemaPattern, String tableNamePattern, String[] types)
public List<String> getTables(DataSource aDataSource, String aTableName)
public List<Map<String,Object>> getColumnData(DataSource aDataSource, String aTableName)
public void getColumns(DataSource aDataSource, String aTableName)
public void setParam(PreparedStatement aStatement, int aType, Object aValue, int aPosition) throws SQLException
setParam in interface DBAccessIntfSQLExceptionpublic String getVendorName()
getVendorName in interface DBAccessIntfpublic String getIdentityStr()
getIdentityStr in interface DBAccessIntfpublic String getIdentityStr(String aField)
getIdentityStr in interface DBAccessIntfpublic long getIdentityNextValue()
getIdentityNextValue in interface DBAccessIntfpublic long getIdentityCurrentValue()
getIdentityCurrentValue in interface DBAccessIntfpublic String getDateFunction()
getDateFunction in interface DBAccessIntfpublic String dateFormatNoQuotes(Date aDate)
dateFormatNoQuotes in interface DBAccessIntfpublic String dateFormat(Date aDate)
dateFormat in interface DBAccessIntfpublic String dateFormat(Date aDate, String aFormat)
dateFormat in interface DBAccessIntfpublic String getIsNullFunction(String anExpr1, String anExpr2)
getIsNullFunction in interface DBAccessIntfpublic String getConcatFunction(String[] anItems)
getConcatFunction in interface DBAccessIntfpublic String getDatePartFunction(String aPart, String aDate)
getDatePartFunction in interface DBAccessIntfpublic String ignoreCase(String anInputOrColumn)
ignoreCase in interface DBAccessIntfCopyright © 2020. All rights reserved.