|
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.insert.Values
Values represents an Insert
SQL statement VALUES clause. The VALUES
clause provides a row of values to be inserted. The number of values for a
row must equal the number of Column names in the Columns
list. The first value is inserted in the first column in the list, the second
value in the second column, and so on.
addValue methods as many times as is required to
create a list of Column values. Optionally, you may invoke
addValue(Object) to add an Object value to the Values
list. Refer to SQLClauseHelper.formatValue(Object) for
a list of Object types supported.
Insert,
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 | |
Values()
Constructs a new Values clause object. |
|
Values(String columnValues)
Constructs a new Values clause object for the specified
Database Table Column values. |
|
| Method Summary | |
Values |
addValue(boolean value)
Adds a Column boolean value to the list of
Column values. |
Values |
addValue(double value)
Adds a Column float or double
value to the list of Column values. |
Values |
addValue(long value)
Adds a Column int or long
value to the list of Column values. |
Values |
addValue(Object value)
Adds a Column value to the list of Column
values. |
String |
getKeyword()
Returns the Values clause keyword. |
String |
getValue()
Returns the Values clause. |
void |
setValue(String value)
Sets the Values clause. |
String |
toString()
Returns a String representation of this Values clause. |
| Methods inherited from class com.jdc.rdb.sql.dml.DMLClause |
getKeyword |
| Methods inherited from class com.jdc.rdb.sql.SQLClause |
contains, setKeyword |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Values()
Values clause object.
public Values(String columnValues)
Values clause object for the specified
Database Table Column values.
SQLInvalidException - No Column values are specified.#addValue(String, Object)| Method Detail |
public Values addValue(boolean value)
Column boolean value to the list of
Column values. The list of Column values is used
to create the Values clause. Invoke this method as many times
as is required to create a list of Column values.
Values clause object.public Values addValue(long value)
Column int or long
value to the list of Column values. The list of Column
values is used to create the Values clause. Invoke this method
as many times as is required to create a list of Column values.
Values clause object.public Values addValue(double value)
Column float or double
value to the list of Column values. The list of Column
values is used to create the Values clause. Invoke this method
as many times as is required to create a list of Column values.
Values clause object.public Values addValue(Object value)
Column value to the list of Column
values. The list of Column values is used to create the
Values clause. Invoke this method as many times as is required
to create a list of Column values.
Values clause object.public String getKeyword()
Values clause keyword.
getKeyword in class SQLClauseValues clause keyword.public String getValue()
Values clause.
getValue in class SQLClauseValues clause.public void setValue(String value)
Values clause. Use this method to specify a custom
Values clause.
setValue in class SQLClausepublic String toString()
String representation of this Values clause.
toString in interface InsertClausetoString in class SQLClauseString representation of this Values clause.
|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||