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

Nested Class Summary
static class StatementFactory.Test
          Unit tests.
 
Constructor Summary
StatementFactory()
           
 
Method Summary
static StatementFactory getInstance()
          Supports a singelton approach, but this is not how it is used.
protected  ExpandingSQLObjectCache getObjectCache(java.lang.ThreadLocal threadContext)
           
 ObjectFormatter getObjectFormatter()
           
protected  void initialize()
           
static void main(java.lang.String[] args)
           
 SQLDelete newDelete()
           
 SQLInsert newInsert()
           
 SQLSelect newSelect()
           
 SQLUpdate newUpdate()
           
 void returnDelete(SQLDelete del)
           
 void returnInsert(SQLInsert ins)
           
 void returnSelect(SQLSelect sel)
           
 void returnUpdate(SQLUpdate upd)
           
 void setObjectFormatter(ObjectFormatter formatter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatementFactory

public StatementFactory()
Method Detail

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 -