org.castor.ddlgen.schemaobject
Class PrimaryKey
- SchemaObject
public abstract class PrimaryKey
Abstract base class for all primary keys.
$Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
addField
public final void addField(Field field)
Add given field to list of primary key fields.
field
- Field to add to list of primary key fields.
equals
public final boolean equals(Object other)
fieldNames
protected final void fieldNames(DDLWriter writer)
Concatenate all field names delimited by field delimiter and whitespace.
writer
- DDLWriter to write schema objects to.
getField
public final Field getField(int index)
Get primary key field at given index.
index
- Index of primary key field to return.
- Primary key field at given index.
getFieldCount
public final int getFieldCount()
Get number of primary key fields.
- Number of primary key fields.
getTable
public final Table getTable()
Get table the primary key is used for.
- Table the primary key is used for.
hashCode
public final int hashCode()
setTable
public final void setTable(Table table)
Set table the primary key is used for.
table
- Table the primary key is used for.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com