Package org.castor.ddlgen.schemaobject
Class Index
java.lang.Object
org.castor.ddlgen.schemaobject.AbstractSchemaObject
org.castor.ddlgen.schemaobject.Index
- All Implemented Interfaces:
SchemaObject
- Direct Known Subclasses:
DefaultIndex
Abstract base class for all indices.
- Since:
- 1.1
- Version:
- $Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
- Author:
- Le Duc Bao, Ralf Joachim
-
Field Summary
Fields inherited from class org.castor.ddlgen.schemaobject.AbstractSchemaObject
HASHFACTOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
Add given field to list of index fields.final boolean
protected final void
fieldNames
(DDLWriter writer) Concatenate all field names delimited by field delimiter and whitespace.final Field
getField
(int index) Get index field at given index.final int
Get number of index fields.final Table
getTable()
Get table the foreign key is used for.final int
hashCode()
final void
Set table the foreign key is used for.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, toDropDDL
-
Constructor Details
-
Index
public Index()
-
-
Method Details
-
addField
Add given field to list of index fields.- Parameters:
field
- Field to add to list of index fields.
-
getFieldCount
public final int getFieldCount()Get number of index fields.- Returns:
- Number of index fields.
-
getField
Get index field at given index.- Parameters:
index
- Index of index field to return.- Returns:
- Index field at given index.
-
setTable
Set table the foreign key is used for.- Parameters:
table
- Table the foreign key is used for.
-
getTable
Get table the foreign key is used for.- Returns:
- Table the foreign key is used for.
-
fieldNames
Concatenate all field names delimited by field delimiter and whitespace.- Parameters:
writer
- DDLWriter to write schema objects to.
-
equals
-
hashCode
public final int hashCode()
-