com.objectwave.persist.sqlConstruction
Class StatementFactory
java.lang.Object
|
+--com.objectwave.persist.sqlConstruction.StatementFactory
- public class StatementFactory
- extends java.lang.Object
Use this factory to create the instances of SQLInsert, SQLDelete, etc...
- Version:
- $Id: StatementFactory.java,v 2.1 2002/03/23 13:42:11 dave_hoag Exp $
- Author:
- Dave Hoag
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatementFactory
public StatementFactory()
getInstance
public static StatementFactory getInstance()
- Supports a singelton approach, but this is not how it is used.
- Returns:
- The Instance value
main
public static void main(java.lang.String[] args)
- Parameters:
args
- The command line arguments
setObjectFormatter
public final void setObjectFormatter(ObjectFormatter formatter)
- Parameters:
formatter
- The new ObjectFormatter value
getObjectFormatter
public final ObjectFormatter getObjectFormatter()
- Returns:
- The ObjectFormatter value
getObjectCache
protected final ExpandingSQLObjectCache getObjectCache(java.lang.ThreadLocal threadContext)
- Parameters:
threadContext
-
- Returns:
- The ObjectCache value
initialize
protected void initialize()
newInsert
public SQLInsert newInsert()
- Returns:
returnInsert
public void returnInsert(SQLInsert ins)
- Parameters:
ins
-
newUpdate
public SQLUpdate newUpdate()
- Returns:
returnUpdate
public void returnUpdate(SQLUpdate upd)
- Parameters:
upd
-
newSelect
public SQLSelect newSelect()
- Returns:
returnSelect
public void returnSelect(SQLSelect sel)
- Parameters:
sel
-
newDelete
public SQLDelete newDelete()
- Returns:
returnDelete
public void returnDelete(SQLDelete del)
- Parameters:
del
-