|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.core.dbobj.DBIndex
Bean class that describes a database index. Kept internally for DBObject
| Constructor Summary | |
DBIndex()
Default Constructor - Sets everything to null |
|
DBIndex(String theIndexName,
String theTableName,
String theFieldNames,
boolean isItUnique)
All in one constructor |
|
| Method Summary | |
String |
constructSQL()
Constructs a SQL CREATE INDEX statement for use in the DBCreate sequence |
String |
getFieldNames()
|
String |
getIndexName()
|
String |
getTableName()
|
boolean |
isUnique()
|
void |
setFieldNames(String newFieldNames)
|
void |
setIndexName(String newIndexName)
|
void |
setTableName(String newTableName)
|
void |
setUnique(boolean newUnique)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DBIndex()
public DBIndex(String theIndexName,
String theTableName,
String theFieldNames,
boolean isItUnique)
theIndexName - The name you're going to call the indextheTableName - The name of the table this index is attached totheFieldNames - A comma delimited list of fields in the tableisItUnique - Set it to true if you wish for the index to not have
duplicate entries| Method Detail |
public String getIndexName()
public void setIndexName(String newIndexName)
public String getFieldNames()
public boolean isUnique()
public void setFieldNames(String newFieldNames)
public void setUnique(boolean newUnique)
public String constructSQL()
throws DBException
DBException - if there was an error constructing the sql or if
there is a bad argumentpublic void setTableName(String newTableName)
public String getTableName()
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||