|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjdbcadmin.core.data.Table
Represente une table
| Constructor Summary | |
Table(java.lang.String aNom,
Schema aSchema)
Constructor |
|
| Method Summary | |
void |
addColumn(Column aCol)
Adds a column |
void |
addPKColumn(java.lang.String aPKColName)
Adds a primarykey column |
int |
compareTo(java.lang.Object aObj)
|
boolean |
containsColumn(java.lang.String aColName)
Indicates whether or not the table contains the specified column |
java.util.List |
getColMap()
|
Column |
getColumn(java.lang.String aNom)
Retrieves a column |
java.util.List |
getColumnNames()
|
int |
getColumnNumber()
|
java.util.Map |
getColumnSizes()
Retrieves a Map associating column names with their display size. |
java.lang.String |
getCompleteName()
|
java.lang.String |
getHeaderString()
Retrieves a String with column namles, ready to display. |
java.lang.String |
getName()
|
java.util.List |
getPkColumns()
|
Schema |
getSchema()
|
boolean |
hasPrimaryKey()
Indicates whether or not the table has got a primary key |
boolean |
isFilled()
|
boolean |
isPKColumn(java.lang.String aColName)
Inidactes whether or not the specified column is part of the primary key |
java.util.Iterator |
iterateColumnNames()
Iterate the column names. |
java.util.Iterator |
iterateColumns()
Iterate the columns. |
void |
setFilled(boolean aFilled)
|
void |
setPkColumns(java.util.List aPkColumns)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Table(java.lang.String aNom,
Schema aSchema)
aNom - table nameaSchema - schema| Method Detail |
public java.lang.String toString()
public void addPKColumn(java.lang.String aPKColName)
throws java.lang.IllegalArgumentException
aPKColName - name of the pk column
java.lang.IllegalArgumentException - if there is no columns with this name in the tablepublic void addColumn(Column aCol)
aCol - the column to hadpublic boolean containsColumn(java.lang.String aColName)
aColName - name of the searched column
public boolean isPKColumn(java.lang.String aColName)
aColName - name of the searched column
public java.util.Iterator iterateColumns()
public java.util.Iterator iterateColumnNames()
public java.util.Map getColumnSizes()
public java.lang.String getHeaderString()
throws TechnicalException
TechnicalException - technical errorpublic int getColumnNumber()
public Column getColumn(java.lang.String aNom)
aNom - column name
public java.util.List getColumnNames()
public java.util.List getColMap()
public boolean hasPrimaryKey()
public java.lang.String getCompleteName()
public int compareTo(java.lang.Object aObj)
compareTo in interface java.lang.Comparablejava.lang.IllegalArgumentException - if aObj is not a Table
public boolean isFilled()
public void setFilled(boolean aFilled)
aFilled - The filled to set.public java.lang.String getName()
public java.util.List getPkColumns()
public void setPkColumns(java.util.List aPkColumns)
aPkColumns - The pkColumns to set.public Schema getSchema()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||