|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.brains2b.sql.meta.IndexModel
public class IndexModel
Wrapper around the index definition from DatabaseMetaData
Class is read-only, use SquelerDDL:IndexDDL for changing columns
SQLMetaData
,
SQLRecord
Constructor Summary | |
---|---|
protected |
IndexModel()
Constructor only used by IndexDDL |
|
IndexModel(SQLRecord record)
Create an IndexModel on the basis of this SQLRecord |
Method Summary | |
---|---|
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 |
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 |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected IndexModel()
public IndexModel(SQLRecord record)
record
- SQLRecord, the record containing the
information on this columnMethod Detail |
---|
public java.lang.String getName()
This is equal to the name of the table,column, etc.
getName
in interface SQLMetaModel
public SQLRecord getRecord()
getRecord
in interface SQLMetaModel
public java.lang.String getType()
returned value depends on the model: TABLE,COLUMN,INDEX
getType
in interface SQLMetaModel
public 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.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |