|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.rgma.ColumnDefinition
public class ColumnDefinition
Definition of a column in an SQL CREATE TABLE statement.
Constructor Summary | |
---|---|
ColumnDefinition()
Constructs an empty ColumnDefinition object. |
|
ColumnDefinition(java.lang.String columnName,
java.lang.String type,
int size,
boolean isNotNull,
boolean isPrimaryKey)
Constructs a ColumnDefinition object. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Gets a clone of this object. |
boolean |
containsValidSize()
Determines if the column has a size. |
boolean |
equals(java.lang.Object obj)
Compares this object with the specified object. |
java.lang.String |
getName()
Returns the name of the column. |
int |
getSize()
Returns the size of the column. |
java.lang.String |
getType()
Returns the type of the column. |
java.lang.String |
getTypeString()
Gets a String representation of the column type (including size, NOT NULL and PRIMARY KEY). |
int |
hashCode()
Returns a hash code value for the object. |
boolean |
isNotNull()
Returns the NOT NULL flag. |
boolean |
isPrimaryKey()
Returns the PRIMARY KEY flag. |
void |
setName(java.lang.String name)
Sets the name of the column. |
void |
setNotNull(boolean notNull)
Sets the NOT NULL flag. |
void |
setPrimaryKey(boolean primaryKey)
Sets the PRIMARY KEY flag. |
void |
setType(java.lang.String type)
Sets the type of the column. |
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 ColumnDefinition()
public ColumnDefinition(java.lang.String columnName, java.lang.String type, int size, boolean isNotNull, boolean isPrimaryKey)
columnName
- Name of column.type
- Type of column as a String.size
- Size of type (e.g. width of VARCHAR). 0
if not applicable.isNotNull
- NOT NULL flag.isPrimaryKey
- PRIMARY KEY flag.Types
Method Detail |
---|
public void setName(java.lang.String name)
name
- The name to set.public java.lang.String getName()
public void setNotNull(boolean notNull)
notNull
- The value to set.public boolean isNotNull()
public void setPrimaryKey(boolean primaryKey)
primaryKey
- The value to set.public boolean isPrimaryKey()
public void setType(java.lang.String type)
type
- The type to setpublic java.lang.String getType()
public int getSize()
public boolean containsValidSize()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Object to compare.
true
if this object and the specified object are
equal.Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public java.lang.String getTypeString()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- If this object does not support cloning.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |