|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ujac.util.db.TableDefinition
public class TableDefinition
Name: TableDefinition.java
Description: Description of class.
Constructor Summary | |
---|---|
TableDefinition(String name)
Constructs a TableDefinition instance with specific attributes. |
|
TableDefinition(String name,
String schema)
Constructs a TableDefinition instance with specific attributes. |
Method Summary | |
---|---|
void |
addAttribute(AttributeDefinition attribute)
Adds an attribute. |
void |
clearAttributes()
Clears the attribute list. |
AttributeDefinition |
getAttributeByColumn(String columnName)
Gets an attribute by its column name. |
AttributeDefinition |
getAttributeByName(String name)
Gets an attribute by its name. |
List |
getAttributes()
Gets the attribute list. |
String |
getName()
Gets the table name. |
int |
getNumPrimaryKeys()
Gets the number of primary keys. |
AttributeDefinition[] |
getPrimaryKeys()
Gets the primary key attributes. |
String |
getSchema()
Gets the schema, the table is located at. |
String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TableDefinition(String name)
name
- The table name.public TableDefinition(String name, String schema)
name
- The table name.schema
- The schema, the table is located at.Method Detail |
---|
public String getName()
public String getSchema()
public void addAttribute(AttributeDefinition attribute)
attribute
- The attribute definition.public AttributeDefinition getAttributeByName(String name)
name
- The attribute name.
public AttributeDefinition getAttributeByColumn(String columnName)
columnName
- The attribute column name.
public void clearAttributes()
public List getAttributes()
public int getNumPrimaryKeys()
public AttributeDefinition[] getPrimaryKeys()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |