org.enableit.db
Class DBInsert
java.lang.Object
|
+--org.enableit.db.DBStatement
|
+--org.enableit.db.DBInsert
- public class DBInsert
- extends DBStatement
- Author:
- TimSt
Field Summary |
protected java.util.List |
joins
|
Constructor Summary |
DBInsert(java.lang.String baseSql)
|
Method Summary |
void |
addInsert(org.enableit.db.beans.Column col,
java.lang.Object val)
|
void |
addJoin(org.enableit.db.beans.ForeignKey fk)
|
java.lang.String |
getBaseSql()
|
java.util.List |
getParams()
|
void |
resetInsert()
Reset the INSERT clause, whilst leaving the base SQL and
any WHERE clause in place. |
Methods inherited from class org.enableit.db.DBStatement |
addFilter, appendWhereClause, getFilterIterator, getParam, getParameters, getSql, getWhereClause, setBaseSql, setDateFormat, setDateTimeFormat, setTimeFormat, setWhereClause |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
joins
protected java.util.List joins
DBInsert
public DBInsert(java.lang.String baseSql)
addInsert
public void addInsert(org.enableit.db.beans.Column col,
java.lang.Object val)
getParams
public java.util.List getParams()
- Returns:
- All parameters for INSERT clause and WHERE clause in order.
getBaseSql
public java.lang.String getBaseSql()
- Overrides:
getBaseSql
in class DBStatement
- Returns:
- The base SQL statement (up to the start of the WHERE clause)
- See Also:
DBStatement.getBaseSql()
resetInsert
public void resetInsert()
- Reset the INSERT clause, whilst leaving the base SQL and
any WHERE clause in place.
addJoin
public void addJoin(org.enableit.db.beans.ForeignKey fk)
- Parameters:
fk
- Encapsulates information on what to join to.
Copyright © 1999-2004 enableIT.org. All Rights Reserved.