org.ephman.abra.database
Class FactoryBase
java.lang.Object
org.ephman.abra.database.GenericFactoryBase
org.ephman.abra.database.FactoryBase
- Direct Known Subclasses:
- EndDateFactoryBase
- public abstract class FactoryBase
- extends GenericFactoryBase
FactoryBase class - base for all the JDBC based Merlin db factories.
- Version:
- 0.1
Methods inherited from class org.ephman.abra.database.GenericFactoryBase |
checkRefresh, checkRefresh, countRows, cursorQuery, cursorQuery, cursorQuery, cursorRawQuery, cursorStoredProcCall, deepRetrieval, deepStorage, defaultNeedsWhereLogic, deleteObject, deleteObjects, flushCache, getBooleanAsString, getCollection, getConnection, getCursorQuerySql, getDeleteSql, getLastId, getObject, getObject, getObject, getPrimaryColumn, getResults, getResults, getSelectCountSql, getSelectSql, getSelectSql, getStringAsBoolean, getTableName, hasClobs, lock, makeFromResultSet, makeInsertCall, makeInsertStmt, makeInsertString, makeObject, makeUpdateCall, makeUpdateStmt, makeUpdateString, marshalObjects, needsAndBeforeFilter, preStorage, putNewObject, putNewObject, queryAll, queryAllSorted, queryObjects, queryObjects, queryObjects, queryObjects, querySorted, refreshFromResultSet, setArguments, setClobs, storedProcCall, storeObject, storeObject, trace, updateObject, updateObject, useStoredProcs |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FactoryBase
public FactoryBase()
setClob
protected void setClob(DatabaseSession dbSess,
java.sql.ResultSet rs,
java.lang.String columnName,
java.lang.String value)
throws java.sql.SQLException
- Description copied from class:
GenericFactoryBase
- need specific db type libraries to do see oracle/FactoryBase
- Specified by:
setClob
in class GenericFactoryBase
- Parameters:
rs
- an open resultset which needs this valuecolumnName
- the column to get aclobvalue
- the string to set in that column
- Throws:
java.sql.SQLException
dbNeedsId
public boolean dbNeedsId()
- Specified by:
dbNeedsId
in class GenericFactoryBase
makeLockSql
protected java.lang.String makeLockSql()
- Overrides:
makeLockSql
in class GenericFactoryBase
getLastId
protected int getLastId(DatabaseSession dbSess)
throws java.sql.SQLException
- Specified by:
getLastId
in class GenericFactoryBase
- Throws:
java.sql.SQLException
getResults
protected GenericFactoryBase.QueryResult getResults(DatabaseSession dbSess,
java.lang.String sql,
QueryFilter filter,
SortCriteria sc,
boolean needsWhereLogic,
java.lang.String tableName)
throws java.sql.SQLException
- Overrides:
getResults
in class GenericFactoryBase
- Throws:
java.sql.SQLException