public class UpdateClause extends java.lang.Object implements SQLClause
SQLClause.SQLType
Constructor and Description |
---|
UpdateClause(java.lang.String column,
java.lang.Object value,
SQLClause.SQLType type) |
Modifier and Type | Method and Description |
---|---|
static UpdateClause |
getIfNotBlankValue(java.lang.String column,
java.lang.Object value,
SQLClause.SQLType type) |
java.lang.Object[] |
getValues()
Note: null value is accepted IF NULL is also set on the valueType map, otherwise behavior is undefined
The values will be added in-order in places designated by ? in the sql string
|
SQLClause.SQLType[] |
getValueTypes() |
void |
toSQLString(java.lang.StringBuilder sql)
print this clause the the given builder, the output should NOT include AND or OR keyword, this will be automatically added when needed
|
public UpdateClause(java.lang.String column, java.lang.Object value, SQLClause.SQLType type)
column
- value
- a single object or null, passing an array will create undefined behaviortype
- public static UpdateClause getIfNotBlankValue(java.lang.String column, java.lang.Object value, SQLClause.SQLType type)
column
- value
- a single object or null, passing an array will have undefined behaviortype
- the correct type of the value parameterpublic void toSQLString(java.lang.StringBuilder sql)
SQLClause
toSQLString
in interface SQLClause
public SQLClause.SQLType[] getValueTypes()
getValueTypes
in interface SQLClause
Copyright © 2015 Tampere University of Technology, Pori Department.