| java.lang.Object com.jcorporate.expresso.core.dbobj.DBIndex
DBIndex | public class DBIndex implements Serializable(Code) | | Bean class that describes a database index. Kept internally for DBObject
author: Michael Rimov |
DBIndex | public DBIndex()(Code) | | Default Constructor - Sets everything to null
|
DBIndex | public DBIndex(String theIndexName, String theTableName, String theFieldNames, boolean isItUnique)(Code) | | All in one constructor
Parameters: theIndexName - The name you're going to call the index Parameters: theTableName - The name of the table this index is attached to Parameters: theFieldNames - A comma delimited list of fields in the table Parameters: isItUnique - Set it to true if you wish for the index to not haveduplicate entries |
constructSQL | public String constructSQL() throws DBException(Code) | | Constructs a SQL CREATE INDEX statement for use in the
DBCreate sequence
The constructed SQL string. throws: DBException - if there was an error constructing the sql or ifthere is a bad argument |
isUnique | public boolean isUnique()(Code) | | |
setFieldNames | public void setFieldNames(String newFieldNames)(Code) | | |
setIndexName | public void setIndexName(String newIndexName)(Code) | | |
setTableName | public void setTableName(String newTableName)(Code) | | |
setUnique | public void setUnique(boolean newUnique)(Code) | | |
|
|