|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.empire.db.DBObject
org.apache.empire.db.DBIndex
org.apache.empire.db.DBExpressionIndex
public class DBExpressionIndex
This class handles the primary key for the tables. The primary key contains one or more columns.
Field Summary |
---|
Fields inherited from class org.apache.empire.db.DBIndex |
---|
PRIMARYKEY, STANDARD, UNIQUE |
Constructor Summary | |
---|---|
DBExpressionIndex(String name,
boolean unique,
DBColumnExpr expr)
Constructs a DBExpresionIndex |
|
DBExpressionIndex(String name,
boolean unique,
DBExpr[] columnExpressions)
Constructs a DBExpresionIndex |
Method Summary | |
---|---|
boolean |
contains(DBColumn col)
Checks if this index contains the column col |
int |
getColumnPos(DBColumn col)
Gets the position of a specified DBColumn object. |
DBDatabase |
getDatabase()
Returns the database object to which this object belongs to. |
DBExpr[] |
getExpressions()
Returns the columnExpressions belonging to this index. |
Methods inherited from class org.apache.empire.db.DBIndex |
---|
getColumns, getFullName, getName, getTable, getType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DBExpressionIndex(String name, boolean unique, DBExpr[] columnExpressions)
name
- the index nameunique
- true if the index has only unique values or false otherwisecolumnExpressions
- an array of one or more column expressions of the indexpublic DBExpressionIndex(String name, boolean unique, DBColumnExpr expr)
name
- the index nameunique
- true if the index has only unique values or false otherwisecolumnExpression
- an column expressions that defines the key values for the indexMethod Detail |
---|
public DBDatabase getDatabase()
DBObject
getDatabase
in class DBIndex
public DBExpr[] getExpressions()
getExpressions
in class DBIndex
public boolean contains(DBColumn col)
contains
in class DBIndex
col
- the column
public int getColumnPos(DBColumn col)
getColumnPos
in class DBIndex
col
- the column
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |