|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jdbcimporter.EntityDef
The EntityDef class defines an entity (table). This definition includes:
ImportEntityDef
,
GenerateEntityDef
,
ExportEntityDef
Field Summary | |
protected java.util.List |
columns
The list of columns. |
Constructor Summary | |
EntityDef()
|
Method Summary | |
void |
addColumn(ColumnDef columnDef)
Adds a column definition. |
void |
addProperty(java.lang.String key,
java.lang.String value)
Add a property that is associated with the entity def. |
java.lang.String |
getCatalog()
Returns the name of the catalog. |
int |
getColumnCount()
Returns the number of columns |
java.util.Iterator |
getColumnIterator()
Returns the list of columns. |
java.lang.String |
getProperty(java.lang.String key)
Returns the value of a property that is associated with the entity def. |
java.lang.String |
getSchema()
Returns the name of the schema. |
java.lang.String |
getTable()
Returns the name of the table. |
void |
setCatalog(java.lang.String newCatalog)
Sets the name of the catalog that contains the table. |
void |
setSchema(java.lang.String newSchema)
Sets the name of the schema that owns the table. |
void |
setTable(java.lang.String newTable)
Sets the name of the table. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.List columns
Constructor Detail |
public EntityDef()
Method Detail |
public void setTable(java.lang.String newTable)
newTable
- name of the tablepublic java.lang.String getTable()
public void setCatalog(java.lang.String newCatalog)
newCatalog
- name of the catalogpublic java.lang.String getCatalog()
public void setSchema(java.lang.String newSchema)
newSchema
- name of the schemapublic java.lang.String getSchema()
public void addColumn(ColumnDef columnDef)
columnDef
- the definition of the columnpublic java.util.Iterator getColumnIterator()
public int getColumnCount()
public void addProperty(java.lang.String key, java.lang.String value)
key
- the name of the propertyvalue
- the value of the propertypublic java.lang.String getProperty(java.lang.String key)
key
- the name of the property
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |