| java.lang.Object com.quadcap.sql.Constraint com.quadcap.sql.IndexConstraint
All known Subclasses: com.quadcap.sql.UniqueConstraint, com.quadcap.sql.NonUniqueIndexConstraint, com.quadcap.sql.DefaultTableConstraint,
IndexConstraint | abstract public class IndexConstraint extends Constraint implements Externalizable(Code) | | Base class for all index constraints.
author: Stan Bailes |
Method Summary | |
public void | add(Session session) | public void | applyDelete(Session session, Row row, long rowId, Constraint activeIndex) | public void | applyInsert(Session session, Row row, long rowId, Constraint activeIndex) | public void | applyUpdate(Session session, byte[] oldKey, Row row, Row oldRow, long rowId, Constraint activeIndex) | public void | checkDelete(Session session, Row row, long rowId) | public void | checkInsert(Session session, Row row) | public void | checkUpdate(Session session, byte[] oldKey, Row row, Row oldRow, long rowId, Constraint activeIndex) | abstract public String | constraintType() Derived classes must implement this function, which returns the
constraint type as a human readable string. | public void | delete(Session session) | public Btree | getIndex(Database db) | public int | getIndexColumnCount() | public boolean | isUnique() | abstract public byte[] | makeKey(Session session, Row row, long rowId) | public void | readExternal(ObjectInput in) | public String | toString() | public void | writeExternal(ObjectOutput out) |
indexRoot | long indexRoot(Code) | | |
useComparator | protected boolean useComparator(Code) | | |
IndexConstraint | public IndexConstraint()(Code) | | Default constructor (required for Externalizable)
|
IndexConstraint | public IndexConstraint(String name)(Code) | | Explicit constructor for named index
|
constraintType | abstract public String constraintType()(Code) | | Derived classes must implement this function, which returns the
constraint type as a human readable string.
|
getIndexColumnCount | public int getIndexColumnCount()(Code) | | Return the number of columns in the index implementing this constraint
|
isUnique | public boolean isUnique()(Code) | | Does this constraint have enough information to uniquely identify
each row?
|
makeKey | abstract public byte[] makeKey(Session session, Row row, long rowId) throws SQLException(Code) | | Make a serialized key appropriate to the constraint type, based on
the row and row id information
|
toString | public String toString()(Code) | | Return a string representation of the constraint
|
Methods inherited from com.quadcap.sql.Constraint | abstract public void add(Session session) throws SQLException, IOException(Code)(Java Doc) abstract public void applyDelete(Session session, Row row, long rowId, Constraint activeIndex) throws SQLException, IOException(Code)(Java Doc) abstract public void applyInsert(Session session, Row row, long rowId, Constraint activeIndex) throws SQLException, IOException(Code)(Java Doc) abstract public void applyUpdate(Session session, byte[] oldKey, Row row, Row oldRow, long rowId, Constraint activeIndex) throws SQLException, IOException(Code)(Java Doc) abstract public void checkDelete(Session session, Row row, long rowId) throws SQLException, IOException(Code)(Java Doc) abstract public void checkInsert(Session session, Row row) throws SQLException, IOException(Code)(Java Doc) abstract public void checkUpdate(Session session, byte[] oldKey, Row row, Row oldRow, long rowId, Constraint activeIndex) throws SQLException, IOException(Code)(Java Doc) abstract public void delete(Session session) throws SQLException, IOException(Code)(Java Doc) public Column getColumn() throws SQLException(Code)(Java Doc) public Column getColumn(int c) throws SQLException(Code)(Java Doc) public int getColumnCount()(Code)(Java Doc) public Vector getColumnNames() throws SQLException(Code)(Java Doc) public int[] getColumns() throws SQLException(Code)(Java Doc) public Btree getIndex(Database db) throws IOException(Code)(Java Doc) public String getName()(Code)(Java Doc) public int getPriority()(Code)(Java Doc) public int getRefAction(int opType)(Code)(Java Doc) public String getRefActionString(int opType)(Code)(Java Doc) public int getSpec()(Code)(Java Doc) public Table getTable()(Code)(Java Doc) public boolean isDeferred()(Code)(Java Doc) public boolean isGlobal()(Code)(Java Doc) public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException(Code)(Java Doc) public void resetColumns() throws SQLException(Code)(Java Doc) public void setColumn(Column column)(Code)(Java Doc) public void setDeferrable(int def)(Code)(Java Doc) public void setGlobal(boolean g)(Code)(Java Doc) public void setName(String name)(Code)(Java Doc) public void setRefSpec(int ref)(Code)(Java Doc) public void setTable(Table table) throws SQLException(Code)(Java Doc) public String toString()(Code)(Java Doc) public void undoAdd(Session session) throws SQLException, IOException(Code)(Java Doc) public void undoDelete(Session session) throws SQLException, IOException(Code)(Java Doc) public void writeExternal(ObjectOutput out) throws IOException(Code)(Java Doc)
|
|
|