public class SQLUpdateBuilder extends java.lang.Object
| Constructor and Description |
|---|
SQLUpdateBuilder(java.lang.String table) |
| Modifier and Type | Method and Description |
|---|---|
void |
addUpdateClause(UpdateClause clause)
null clause will be silently ignored
|
void |
addWhereClause(WhereClause clause) |
void |
clearUpdateClauses()
clear the list of update clauses if any
|
void |
clearWhereClauses()
clear the currently set list of where clauses
|
int |
execute(org.springframework.jdbc.core.JdbcTemplate template)
execute the statement on the given template
|
int |
execute(org.springframework.jdbc.core.JdbcTemplate template,
java.lang.String type)
execute the statement on the given template
|
int |
getUpdateClauseCount() |
java.lang.Object[] |
getValues() |
int[] |
getValueTypes() |
int |
getWhereClauseCount() |
void |
setLimits(Limits limits) |
void |
setMaxItems(int maxItems) |
void |
setStartItem(int startItem) |
java.lang.String |
toSQLString() |
java.lang.String |
toSQLString(java.lang.String type) |
public SQLUpdateBuilder(java.lang.String table)
table - public void clearWhereClauses()
public int getWhereClauseCount()
public void setStartItem(int startItem)
startItem - the startItem to set, negative value disables limitpublic void setMaxItems(int maxItems)
maxItems - the maxItems to set, negative value disables limitpublic int getUpdateClauseCount()
public void addUpdateClause(UpdateClause clause)
clause - public void clearUpdateClauses()
public void addWhereClause(WhereClause clause)
clause - public int execute(org.springframework.jdbc.core.JdbcTemplate template)
template - public int execute(org.springframework.jdbc.core.JdbcTemplate template, java.lang.String type)
template - type - public java.lang.Object[] getValues()
public int[] getValueTypes()
public java.lang.String toSQLString()
public java.lang.String toSQLString(java.lang.String type)
type - LimitsCopyright © 2015 Tampere University of Technology, Pori Department.