| org.h2.constraint.Constraint org.h2.constraint.ConstraintReferential
ConstraintReferential | public class ConstraintReferential extends Constraint (Code) | | A referential constraint.
|
Method Summary | |
public void | checkExistingData(Session session) | public void | checkRow(Session session, Table t, Row oldRow, Row newRow) | public boolean | containsColumn(Column col) | public IndexColumn[] | getColumns() | public String | getConstraintType() | public String | getCreateSQL() | public String | getCreateSQLForCopy(Table table, String quotedName) Create the SQL statement of this object so a copy of the table can be made. | public String | getCreateSQLForCopy(Table table, Table refTable, String quotedName, boolean internalIndex) Create the SQL statement of this object so a copy of the table can be made. | public String | getCreateSQLWithoutIndexes() | public int | getDeleteAction() | public IndexColumn[] | getRefColumns() | public Table | getRefTable() | public String | getShortDescription() | public int | getUpdateAction() | public boolean | isBefore() | public void | removeChildrenAndResources(Session session) | public void | setColumns(IndexColumn[] cols) | public void | setDeleteAction(Session session, int action) | public void | setIndex(Index index, boolean isOwner) | public void | setIndexOwner(Index index) | public void | setRefColumns(IndexColumn[] refCols) | public void | setRefIndex(Index refIndex, boolean isRefOwner) | public void | setRefTable(Table refTable) | public void | setUpdateAction(Session session, int action) | void | setWhere(Prepared command, int pos, Row row) | public boolean | usesIndex(Index idx) |
RESTRICTCASCADESET_DEFAULTSET_NULL | final public static int RESTRICTCASCADESET_DEFAULTSET_NULL(Code) | | |
containsColumn | public boolean containsColumn(Column col)(Code) | | |
getCreateSQLForCopy | public String getCreateSQLForCopy(Table table, String quotedName)(Code) | | Create the SQL statement of this object so a copy of the table can be made.
Parameters: table - the table to create the object for Parameters: quotedName - the name of this object (quoted if necessary) the SQL statement |
getCreateSQLForCopy | public String getCreateSQLForCopy(Table table, Table refTable, String quotedName, boolean internalIndex)(Code) | | Create the SQL statement of this object so a copy of the table can be made.
Parameters: table - the table to create the object for Parameters: refTable - the referenced table Parameters: quotedName - the name of this object (quoted if necessary) Parameters: internalIndex - add the index name to the statement the SQL statement |
getCreateSQLWithoutIndexes | public String getCreateSQLWithoutIndexes()(Code) | | |
getDeleteAction | public int getDeleteAction()(Code) | | |
getShortDescription | public String getShortDescription()(Code) | | |
getUpdateAction | public int getUpdateAction()(Code) | | |
isBefore | public boolean isBefore()(Code) | | |
setIndex | public void setIndex(Index index, boolean isOwner)(Code) | | |
setIndexOwner | public void setIndexOwner(Index index)(Code) | | |
setRefIndex | public void setRefIndex(Index refIndex, boolean isRefOwner)(Code) | | |
setRefTable | public void setRefTable(Table refTable)(Code) | | |
|
|