|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.rgma.CreateTableStatement
A generic CREATE TABLE statement for R-GMA (non-database-specific).
Constructor Summary | |
CreateTableStatement(java.lang.String tableName)
Creates a new CreateTableStatement object with no columns from a table name. |
|
CreateTableStatement(java.lang.String tableName,
java.util.List columns)
Creates a new CreateTableStatement object from a table name and list of ColumnDefinitions. |
Method Summary | |
void |
addColumn(ColumnDefinition colDef)
Adds a column definition. |
java.lang.Object |
clone()
Gets a clone of this object. |
boolean |
equals(java.lang.Object obj)
Compares this object with the specified object. |
java.util.List |
getColumns()
Gets the list of column definitions. |
java.lang.String |
getTableName()
Gets the name of the table. |
int |
hashCode()
Returns a hash code value for the object. |
void |
setColumns(java.util.List columns)
Sets the columns for this CREATE TABLE statement. |
void |
setPrimaryKey(java.lang.String colName)
Sets the primary key of this table to the specified column. |
void |
setTableName(java.lang.String tableName)
Sets the table name for this CREATE TABLE statement. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CreateTableStatement(java.lang.String tableName, java.util.List columns)
tableName
- Name of table.columns
- List of ColumnDefinition objects.public CreateTableStatement(java.lang.String tableName)
tableName
- Name of table.Method Detail |
public java.util.List getColumns()
public java.lang.String getTableName()
public void addColumn(ColumnDefinition colDef)
colDef
- Definition to add.public java.lang.String toString()
Object.toString()
public boolean equals(java.lang.Object obj)
obj
- Object to compare.
true
if this object and the specified object are
equal.Object.equals(java.lang.Object)
public int hashCode()
Object.hashCode()
public void setColumns(java.util.List columns)
columns
- A List of ColumnDefinition objects.public void setTableName(java.lang.String tableName)
tableName
- Name of table to create.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
- If this object does not support cloning.public void setPrimaryKey(java.lang.String colName)
colName
- Column to use as primary key.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |