public abstract class BatchQueryBuilder extends Object
Modifier and Type | Field and Description |
---|---|
protected DbAdapter |
adapter |
protected String |
trimFunction |
Constructor and Description |
---|
BatchQueryBuilder()
Deprecated.
since 3.1 unused
|
BatchQueryBuilder(DbAdapter adapter) |
Modifier and Type | Method and Description |
---|---|
protected void |
appendDbAttribute(StringBuffer buf,
DbAttribute dbAttribute)
Appends the name of the column to the query buffer.
|
void |
bindParameters(PreparedStatement statement,
BatchQuery query)
Binds parameters for the current batch iteration to the PreparedStatement.
|
abstract String |
createSqlString(BatchQuery batch)
Translates BatchQuery into an SQL string formatted to use in a PreparedStatement.
|
DbAdapter |
getAdapter() |
List<Object> |
getParameterValues(BatchQuery query)
Returns a list of values for the current batch iteration.
|
String |
getTrimFunction() |
void |
setAdapter(DbAdapter adapter) |
void |
setTrimFunction(String string) |
@Deprecated public BatchQueryBuilder()
public BatchQueryBuilder(DbAdapter adapter)
public abstract String createSqlString(BatchQuery batch) throws IOException
IOException
protected void appendDbAttribute(StringBuffer buf, DbAttribute dbAttribute)
public void setAdapter(DbAdapter adapter)
public DbAdapter getAdapter()
public String getTrimFunction()
public void setTrimFunction(String string)
public void bindParameters(PreparedStatement statement, BatchQuery query) throws SQLException, Exception
SQLException
Exception
public List<Object> getParameterValues(BatchQuery query)
Copyright © 2001–2018 Apache Cayenne. All rights reserved.