org.ephman.abra.database
Class FactoryBase

java.lang.Object
  extended byorg.ephman.abra.database.GenericFactoryBase
      extended byorg.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

Nested Class Summary
 
Nested classes inherited from class org.ephman.abra.database.GenericFactoryBase
GenericFactoryBase.QueryResult
 
Field Summary
 
Fields inherited from class org.ephman.abra.database.GenericFactoryBase
DEEP, endDates, SHALLOW, VERSION_NUMBER
 
Constructor Summary
FactoryBase()
           
 
Method Summary
 boolean dbNeedsId()
           
protected  int getLastId(DatabaseSession dbSess)
           
protected  GenericFactoryBase.QueryResult getResults(DatabaseSession dbSess, java.lang.String sql, QueryFilter filter, SortCriteria sc, boolean needsWhereLogic, java.lang.String tableName)
           
protected  java.lang.String makeLockSql()
           
protected  void setClob(DatabaseSession dbSess, java.sql.ResultSet rs, java.lang.String columnName, java.lang.String value)
          need specific db type libraries to do see oracle/FactoryBase
 
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
 

Constructor Detail

FactoryBase

public FactoryBase()
Method Detail

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 value
columnName - the column to get aclob
value - 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