|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.castor.ddlgen.schemaobject.AbstractSchemaObject
org.castor.ddlgen.schemaobject.PrimaryKey
public abstract class PrimaryKey
Abstract base class for all primary keys.
Field Summary |
---|
Fields inherited from class org.castor.ddlgen.schemaobject.AbstractSchemaObject |
---|
HASHFACTOR |
Constructor Summary | |
---|---|
PrimaryKey()
|
Method Summary | |
---|---|
void |
addField(Field field)
Add given field to list of primary key fields. |
boolean |
equals(java.lang.Object other)
|
protected void |
fieldNames(DDLWriter writer)
Concatenate all field names delimited by field delimiter and whitespace. |
Field |
getField(int index)
Get primary key field at given index. |
int |
getFieldCount()
Get number of primary key fields. |
Table |
getTable()
Get table the primary key is used for. |
int |
hashCode()
|
void |
setTable(Table table)
Set table the primary key is used for. |
void |
toDropDDL(DDLWriter writer)
Build drop script for the schema object. |
Methods inherited from class org.castor.ddlgen.schemaobject.AbstractSchemaObject |
---|
equals, getConfiguration, getName, setConfiguration, setName |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.castor.ddlgen.schemaobject.SchemaObject |
---|
toCreateDDL |
Constructor Detail |
---|
public PrimaryKey()
Method Detail |
---|
public final void addField(Field field)
field
- Field to add to list of primary key fields.public final int getFieldCount()
public final Field getField(int index)
index
- Index of primary key field to return.
public final void setTable(Table table)
table
- Table the primary key is used for.public final Table getTable()
protected final void fieldNames(DDLWriter writer)
writer
- DDLWriter to write schema objects to.public final void toDropDDL(DDLWriter writer)
writer
- DDLWriter to write schema objects to.public final boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public final int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |