com.objectwave.persist.sqlConstruction
Class SQLObject
java.lang.Object
|
+--com.objectwave.persist.sqlConstruction.SQLObject
- Direct Known Subclasses:
- SQLDelete, SQLModifier, SQLSelect
- public abstract class SQLObject
- extends java.lang.Object
- Version:
- $Id: SQLObject.java,v 2.1 2001/08/10 20:30:32 dave_hoag Exp $
- Author:
- Dave Hoag
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
availableForPool
protected boolean availableForPool
table
protected java.lang.String table
SQLObject
public SQLObject()
getDefaultFormatter
public static ObjectFormatter getDefaultFormatter()
- Returns:
- The DefaultFormatter value
setAvailableForPool
public void setAvailableForPool(boolean canBeUsedInAnObjectPool)
- Parameters:
canBeUsedInAnObjectPool
- The new AvailableForPool value
setTableName
public void setTableName(java.lang.String tableName)
- Parameters:
tableName
- The name of the database table this object is to update.
setObjectFormatter
public void setObjectFormatter(ObjectFormatter of)
- Allow the changing of the formatter. This allows custom formatting to be
provided.
- Parameters:
of
- The new ObjectFormatter value
getObjectFormatter
public ObjectFormatter getObjectFormatter()
- Returns:
- ObjectFormatter knows how to convert Objects into string values.
isAvailableForPool
protected final boolean isAvailableForPool()
- Returns:
- The AvailableForPool value
clean
public void clean()
- Restore the object to the state it was in at instantiation time.
There is a statementFactory per broker. The broker will may override
the object formatter to use. Once set, its not subject to change, so
we don't need to clean it.
formatValue
public void formatValue(java.lang.Object value,
java.lang.StringBuffer buf)
- Use the default object formatter is none is set.
- Parameters:
value
- buf
-
insertWhereClause
public void insertWhereClause(java.lang.String column,
java.lang.Object value)
- Parameters:
column
- value
-