|
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.Columns
Columns represents an Insert
SQL statement columns clause. The columns clause
specifies the columns for which Insert values are provided. Each
name must be an unqualified name that identifies a Column
of the Table or View.
Column must not be identified more than once. A
View column that cannot accept inserted values (for example, a column
based on an expression) must not be identified.
Omission of the column list is an implicit specification of a list in which every
Column of the Table or View is identified
in left-to-right order. This list is established when the statement is prepared.
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 | |
Columns()
Constructs a new Columns clause object. |
|
Columns(String columns)
Constructs a new Columns clause object for the specified
Database Table Column
names. |
|
| Method Summary | |
Columns |
addName(String column)
Adds a Column name to the list of Column names. |
boolean |
contains(String column)
Returns true if the Columns list contains the
specified Column name. |
String |
getKeyword()
Returns the Columns clause keyword. |
String |
getValue()
Returns the Columns clause value. |
void |
setValue(String value)
Sets the Columns clause value. |
String |
toString()
Returns a String representation of this Columns 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 Columns()
Columns clause object.
public Columns(String columns)
Columns clause object for the specified
Database Table Column
names.
SQLInvalidException - No Column names are specified.#addName(String, Object)| Method Detail |
public Columns addName(String column)
Column name to the list of Column names.
The list of Column names is used to create the Columns
clause value. Invoke this method as many times as is required to create a
list of Column names.
Columns clause object.public boolean contains(String column)
true if the Columns 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 getKeyword()
Columns clause keyword.
getKeyword in class SQLClauseColumns clause keyword.public String getValue()
Columns clause value.
getValue in class SQLClauseColumns clause value.public void setValue(String value)
Columns clause value. Use this method to specify a
custom Columns clause value.
setValue in class SQLClausepublic String toString()
String representation of this Columns clause.
toString in interface InsertClausetoString in class SQLClauseString representation of this Columns clause.
|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||