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

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  void setClob(DatabaseSession dbSess, java.sql.ResultSet rs, java.lang.String columnName, java.lang.String value)
          a routine to get an oracle clob stream and set the value here
 
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, getDeleteSql, getLastId, getObject, getObject, getObject, getPrimaryColumn, getResults, 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
a routine to get an oracle clob stream and set the value here

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
java.sql.SQLException

dbNeedsId

public boolean dbNeedsId()
Specified by:
dbNeedsId in class GenericFactoryBase

getLastId

protected int getLastId(DatabaseSession dbSess)
                 throws java.sql.SQLException
Specified by:
getLastId in class GenericFactoryBase
java.sql.SQLException