|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.jdc.lang.Object
|
+--com.jdc.rdb.sql.SQLClause
|
+--com.jdc.rdb.sql.dml.DMLClause
|
+--com.jdc.rdb.sql.dml.update.Set
Set represents an Update
SQL statement SET clause. The SET
clause identifies the Column names and values to be updated.
Table or View. The object IDENTITY
column of a typed table is not updatable. Additionally, a column must
not be specified more than once.
Update,
Serialized Form| Field Summary |
| Fields inherited from class com.jdc.rdb.sql.dml.DMLClause |
sqlClause |
| Fields inherited from class com.jdc.lang.Object |
string |
| Constructor Summary | |
Set()
Constructs a new Set clause object. |
|
Set(String columnValues)
Constructs a new Set clause object for the specified
Database Table Column
names and values. |
|
| Method Summary | |
Set |
addDefault(String column)
Adds a DEFAULT value for the specified Column
name to this Set clause. |
Set |
addNull(String column)
Adds a NULL value for the specified Column
name to this Set clause. |
Set |
addValue(String column,
Object value)
Adds an Object value for the specified Column
name to this Set clause. |
boolean |
contains(String column)
Returns true if the Set list contains the
specified Column name. |
String |
getKeyword()
Returns the Set clause keyword. |
String |
getValue()
Returns the Set clause value. |
Set |
set(String setClause)
Sets a user-specified Set clause value. |
String |
toString()
Returns a String representation of this Set clause. |
| Methods inherited from class com.jdc.rdb.sql.dml.DMLClause |
getKeyword |
| Methods inherited from class com.jdc.rdb.sql.SQLClause |
contains, setKeyword, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Set()
Set clause object.
public Set(String columnValues)
Set clause object for the specified
Database Table Column
names and values.
SQLInvalidException - No column names and values are specified.addValue(String, Object)| Method Detail |
public Set addDefault(String column)
DEFAULT value for the specified Column
name to this Set clause. A column name is required.
Set clause object.
SQLInvalidException - No column name is specified or a
Set clause already exists.public Set addNull(String column)
NULL value for the specified Column
name to this Set clause. A column name is required.
Set clause object.
SQLInvalidException - No column name is specified or a
Set clause already exists.
public Set addValue(String column,
Object value)
Object value for the specified Column
name to this Set clause. A column name is required.
Set clause object.
SQLInvalidException - No column name is specified or a
Set clause already exists.public String getKeyword()
Set clause keyword.
getKeyword in class SQLClauseSet clause keyword.public boolean contains(String column)
true if the Set list contains the
specified Column name.
True if the list contains the Column name. False if the list does not contain the Column name.public String getValue()
Set clause value.
getValue in class SQLClauseSet clause value.public Set set(String setClause)
Set clause value. Use this method to
set a complex Set clause value.
SQLInvalidException - No where clause is specified or
where clause columnValues are already specified.public String toString()
String representation of this Set clause.
toString in interface UpdateClausetoString in class SQLClauseString representation of this Set clause.
|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||