|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.access.trans.BatchQueryBuilder
public abstract class BatchQueryBuilder
Superclass of batch query translators.
Field Summary | |
---|---|
protected DbAdapter |
adapter
|
protected java.lang.String |
trimFunction
|
Constructor Summary | |
---|---|
BatchQueryBuilder()
|
|
BatchQueryBuilder(DbAdapter adapter)
|
Method Summary | |
---|---|
protected void |
appendDbAttribute(java.lang.StringBuffer buf,
DbAttribute dbAttribute)
Appends the name of the column to the query buffer. |
void |
bindParameters(java.sql.PreparedStatement statement,
BatchQuery query)
Binds parameters for the current batch iteration to the PreparedStatement. |
void |
bindParameters(java.sql.PreparedStatement statement,
BatchQuery query,
java.util.List dbAttributes)
Deprecated. since 1.1 use 'bindParameters' without dbAttributes argument. |
abstract java.lang.String |
createSqlString(BatchQuery batch)
Translates BatchQuery into an SQL string formatted to use in a PreparedStatement. |
DbAdapter |
getAdapter()
|
java.util.List |
getParameterValues(BatchQuery query)
Returns a list of values for the current batch iteration. |
java.lang.String |
getTrimFunction()
|
void |
setAdapter(DbAdapter adapter)
|
void |
setTrimFunction(java.lang.String string)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DbAdapter adapter
protected java.lang.String trimFunction
Constructor Detail |
---|
public BatchQueryBuilder()
public BatchQueryBuilder(DbAdapter adapter)
Method Detail |
---|
public abstract java.lang.String createSqlString(BatchQuery batch)
protected void appendDbAttribute(java.lang.StringBuffer buf, DbAttribute dbAttribute)
public void setAdapter(DbAdapter adapter)
public DbAdapter getAdapter()
public java.lang.String getTrimFunction()
public void setTrimFunction(java.lang.String string)
public void bindParameters(java.sql.PreparedStatement statement, BatchQuery query, java.util.List dbAttributes) throws java.sql.SQLException, java.lang.Exception
java.sql.SQLException
java.lang.Exception
public void bindParameters(java.sql.PreparedStatement statement, BatchQuery query) throws java.sql.SQLException, java.lang.Exception
java.sql.SQLException
java.lang.Exception
public java.util.List getParameterValues(BatchQuery query)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |