|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jso.sql.TableDescriptor
Class for table descritptors. Table descriptors represent tables in a relational database.
Constructor Summary | |
TableDescriptor()
Constructs the table descriptor. |
|
TableDescriptor(java.lang.String aName)
Constructs the table descriptor. |
|
TableDescriptor(java.lang.String aName,
java.util.Set aColumnSet)
Constructs the table descriptor. |
|
TableDescriptor(java.lang.String aName,
java.util.Set aColumnSet,
java.util.List aConstraintList)
Constructs the table descriptor. |
Method Summary | |
void |
addColumn(ColumnDescriptor aColumn)
Adds a column to the table. |
void |
addColumns(java.util.Set aColumnSet)
Adds a collection of columns to this table's column collection. |
void |
addConstraint(ConstraintDescriptor aConstraint)
Adds a constraint to the table. |
void |
addConstraints(java.util.List aConstraintList)
Adds a list of constraints to this table's constraint list. |
void |
clearColumns()
Clears the table's collection of columns. |
void |
clearConstraints()
Clears the table's list of constraints. |
boolean |
equals(java.lang.Object o)
Indicates whether some other table descriptor is "equal to" this one. |
java.util.Set |
getColumns()
Gets the table's collection of columns. |
java.util.List |
getConstraints()
Gets the table's list of constraints. |
java.lang.String |
getName()
Gets table's name. |
int |
hashCode()
Returns a hash code value for the table descriptor. |
void |
removeColumn(ColumnDescriptor aColumn)
Removes a column from the table. |
void |
removeConstraint(ConstraintDescriptor aConstraint)
Removes a constraint from the table. |
void |
setName(java.lang.String aName)
Sets table's name. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TableDescriptor()
public TableDescriptor(java.lang.String aName)
aName
- The table's name.public TableDescriptor(java.lang.String aName, java.util.Set aColumnSet)
aName
- The table's name.aColumnSet
- The set of columns of the table. Elements of the
set must be ColumnDescriptor
objects.public TableDescriptor(java.lang.String aName, java.util.Set aColumnSet, java.util.List aConstraintList)
aName
- The table's name.aColumnSet
- The set of columns of the table. Elements of the
set must be ColumnDescriptor
objects.aConstraintList
- List of constraints of the table. Elements of the list
must be ConstraintDescriptor
objects.Method Detail |
public void setName(java.lang.String aName)
aName
- A name for the table.public java.lang.String getName()
public void addColumn(ColumnDescriptor aColumn)
aColumn
- The column to be added.public void removeColumn(ColumnDescriptor aColumn)
aColumn
- The column to be removed.public void addColumns(java.util.Set aColumnSet)
aColumnSet
- The set of columns of the table. Elements of the
set must be ColumnDescriptor
objects.public void clearColumns()
public java.util.Set getColumns()
ColumnDescriptor
objects.public void addConstraint(ConstraintDescriptor aConstraint)
aConstraint
- The constraint to be added.public void removeConstraint(ConstraintDescriptor aConstraint)
aConstraint
- The constraint to be removed.public void addConstraints(java.util.List aConstraintList)
aConstraintList
- List of constraints to be added. Elements of the list
must be ConstraintDescriptor
objects.public void clearConstraints()
public java.util.List getConstraints()
ConstraintDescriptor
objects.public boolean equals(java.lang.Object o)
o
- The object with which to compare.
true
if the table descriptor is the same as the
table descriptor argument; false
otherwise.public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |