| java.lang.Object com.quadcap.sql.Constraint com.quadcap.sql.ForeignKeyConstraint
All known Subclasses: com.quadcap.sql.ExportedKeyConstraint, com.quadcap.sql.ImportedKeyConstraint,
ForeignKeyConstraint | abstract public class ForeignKeyConstraint extends Constraint implements Externalizable(Code) | | Abstract base class for imported and exported key constraints.
author: Stan Bailes |
Method Summary | |
public void | add(Session session) If you care, remember to 'extend' and embrace. | 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, Row row, long rowId) | abstract public void | delete(Session session) | final Comparator | getComparator() | public int[] | getFCols(Database db) | public Table | getFTable(Database db) | public String | getFTableName() | final public boolean | isDeferred() | boolean | isSelfReferencing(Database db) | public byte[] | makeFKey(Session session, Row row) | public byte[] | makeKey(Session session, Row row) | public void | readExternal(ObjectInput in) | public void | resetColumns() Reset any mapped columns (e.g. | public void | setFTableName(String s) | public void | setForeignColumn(String name) | public String | toString() | public void | writeExternal(ObjectOutput out) |
ForeignKeyConstraint | public ForeignKeyConstraint()(Code) | | Default constructor
|
isDeferred | final public boolean isDeferred()(Code) | | Is this constraint 'deferred'?
|
resetColumns | public void resetColumns() throws SQLException(Code) | | Reset any mapped columns (e.g. in case a column is added or deleted)
|
setForeignColumn | public void setForeignColumn(String name)(Code) | | |
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)
|
|
|