public class IndexModel extends java.lang.Object implements SQLMetaModel
Class is read-only, use SquelerDDL:IndexDDL for changing columns
SQLMetaData,
SQLRecord,
Serialized Form| Modifier | Constructor and Description |
|---|---|
protected |
IndexModel()
Constructor
only used by IndexDDL
|
|
IndexModel(SQLRecord record)
Create an IndexModel on the basis of this SQLRecord
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addColumn(ColumnModel model)
add a ColumnModel as a part of this IndexModel
|
boolean |
equals(java.lang.Object obj) |
java.util.List |
getColumns()
get the columns involved in this Index
|
java.lang.String |
getName()
get the name for this model's instance
|
SQLRecord |
getRecord()
the record which defines all the values for the model
|
java.lang.String |
getTableName()
get the table for this index
|
java.lang.String |
getType()
get the type of Object defined by the meta model
|
int |
hashCode() |
boolean |
isUnique()
check if this is an unique index
|
protected void |
setColumns(java.util.List columns)
set the columns for this Model
|
protected void |
setRecord(SQLRecord record)
set the record for this Model
|
protected IndexModel()
public IndexModel(SQLRecord record)
record - SQLRecord, the record containing the
information on this columnpublic java.lang.String getName()
This is equal to the name of the table,column, etc.
getName in interface SQLMetaModelpublic SQLRecord getRecord()
getRecord in interface SQLMetaModelpublic java.lang.String getType()
returned value depends on the model: TABLE,COLUMN,INDEX
getType in interface SQLMetaModelpublic java.util.List getColumns()
protected void setColumns(java.util.List columns)
columns - Listpublic java.lang.String getTableName()
public boolean isUnique()
protected void addColumn(ColumnModel model)
model - ColumnModelprotected void setRecord(SQLRecord record)
record - SQLRecordpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object