| java.lang.Object com.quadcap.sql.Constraint com.quadcap.sql.IndexConstraint com.quadcap.sql.UniqueConstraint
All known Subclasses: com.quadcap.sql.PrimaryKeyConstraint,
UniqueConstraint | public class UniqueConstraint extends IndexConstraint implements Externalizable(Code) | | Index constraint for indexes in which keys must be unique.
author: Stan Bailes |
UniqueConstraint | public UniqueConstraint()(Code) | | Default constraint (required for Externalizable)
|
UniqueConstraint | public UniqueConstraint(String name)(Code) | | Explicit constructor for named constraint
|
UniqueConstraint | public UniqueConstraint(String name, Vector names)(Code) | | Explicit constructor with name and columns
|
checkInsert | public void checkInsert(Session session, Row row) throws SQLException, IOException(Code) | | Constraint.checkInsert() We make sure the key isn't already in
the index.
XXX This implementation could be optimized if we could roll this up
XXX in the apply step
|
getIndexColumnCount | public int getIndexColumnCount()(Code) | | IndexConstraint.Return the number of columns in this index
|
Methods inherited from com.quadcap.sql.IndexConstraint | public void add(Session session) throws SQLException, IOException(Code)(Java Doc) public void applyDelete(Session session, Row row, long rowId, Constraint activeIndex) throws SQLException, IOException(Code)(Java Doc) public void applyInsert(Session session, Row row, long rowId, Constraint activeIndex) throws SQLException, IOException(Code)(Java Doc) public void applyUpdate(Session session, byte[] oldKey, Row row, Row oldRow, long rowId, Constraint activeIndex) throws SQLException, IOException(Code)(Java Doc) public void checkDelete(Session session, Row row, long rowId) throws SQLException, IOException(Code)(Java Doc) public void checkInsert(Session session, Row row) throws SQLException, IOException(Code)(Java Doc) public void checkUpdate(Session session, byte[] oldKey, Row row, Row oldRow, long rowId, Constraint activeIndex) throws SQLException, IOException(Code)(Java Doc) abstract public String constraintType()(Code)(Java Doc) public void delete(Session session) throws IOException(Code)(Java Doc) public Btree getIndex(Database db) throws IOException(Code)(Java Doc) public int getIndexColumnCount()(Code)(Java Doc) public boolean isUnique()(Code)(Java Doc) abstract public byte[] makeKey(Session session, Row row, long rowId) throws SQLException(Code)(Java Doc) public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException(Code)(Java Doc) public String toString()(Code)(Java Doc) public void writeExternal(ObjectOutput out) throws IOException(Code)(Java Doc)
|
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)
|
|
|