![]() |
Quadcap Embeddable Database |
Inheritance diagram for com.quadcap.sql.NotNullConstraint:

Definition at line 60 of file NotNullConstraint.java.
Public Member Functions | |
| NotNullConstraint () | |
| NotNullConstraint (String name) | |
| NotNullConstraint (String name, Vector names) | |
| void | add (Session session) |
| Called when the constraint is added. | |
| void | checkInsert (Session session, Row row) throws SQLException, IOException |
| ---INSERT Called before a row is INSERTED, with an opportunity to signal a constraint violation if one can be detected. | |
| void | applyInsert (Session session, Row row, long rowId, Constraint activeIndex) throws SQLException, IOException |
| Called after the specified row has been inserted, with the resulting row ID, and with the active index. | |
| void | checkUpdate (Session session, byte[] oldKey, Row row, Row oldRow, long rowId, Constraint activeIndex) throws SQLException, IOException |
| ----UPDATE Called before a row is UPDATED, with an opportunity to signal a constraint violation if one can be detected. | |
| void | applyUpdate (Session session, byte[] oldKey, Row row, Row oldRow, long rowId, Constraint activeIndex) throws SQLException, IOException |
| Called after a row has been updated, with the old row, old key, new row and row ID. | |
| void | checkDelete (Session session, Row row, long rowId) throws SQLException, IOException |
| ----DELETE Called before a row is DELETED, with an opportunity to signal a constraint violation if one can be detected. | |
| void | applyDelete (Session session, Row row, long rowId, Constraint activeIndex) throws SQLException, IOException |
| Called after a row has been deleted, with the old row and row ID. | |
| void | delete (Session session) |
| Called when the constraint itself is being removed. | |
| void | readExternal (ObjectInput in) throws IOException, ClassNotFoundException |
| Read me from a stream. | |
| void | writeExternal (ObjectOutput out) throws IOException |
| Write me to a stream. | |
| void | setTable (Table t) throws SQLException |
| Set the contstraint's table. | |
|
|
Definition at line 61 of file NotNullConstraint.java. |
|
|
Definition at line 63 of file NotNullConstraint.java. |
|
||||||||||||
|
Definition at line 67 of file NotNullConstraint.java. |
|
|
Called when the constraint is added. Constraints which maintain state (e.g., indexes) can build their initial data structures (or whatever it is that they do at this time) Implements com.quadcap.sql.Constraint. Definition at line 71 of file NotNullConstraint.java. References com.quadcap.sql.NotNullConstraint.add(). Referenced by com.quadcap.sql.NotNullConstraint.add(). |
|
||||||||||||||||||||
|
Called after a row has been deleted, with the old row and row ID. Constraints which maintain state (such as an index) would extend this class and implement this method to update the index. Implements com.quadcap.sql.Constraint. Definition at line 114 of file NotNullConstraint.java. References com.quadcap.sql.NotNullConstraint.applyDelete(). Referenced by com.quadcap.sql.NotNullConstraint.applyDelete(). |
|
||||||||||||||||||||
|
Called after the specified row has been inserted, with the resulting row ID, and with the active index. Constraints which maintain state (such as an index) would extend this class and implement this method to update the index Implements com.quadcap.sql.Constraint. Definition at line 90 of file NotNullConstraint.java. References com.quadcap.sql.NotNullConstraint.applyInsert(). Referenced by com.quadcap.sql.NotNullConstraint.applyInsert(). |
|
||||||||||||||||||||||||||||
|
Called after a row has been updated, with the old row, old key, new row and row ID. Constraints which maintain state (such as an index) would extend this class and implement this method to update the index. Implements com.quadcap.sql.Constraint. Definition at line 103 of file NotNullConstraint.java. References com.quadcap.sql.NotNullConstraint.applyUpdate(). Referenced by com.quadcap.sql.NotNullConstraint.applyUpdate(). |
|
||||||||||||||||
|
----DELETE Called before a row is DELETED, with an opportunity to signal a constraint violation if one can be detected.
Implements com.quadcap.sql.Constraint. Definition at line 109 of file NotNullConstraint.java. References com.quadcap.sql.NotNullConstraint.checkDelete(). Referenced by com.quadcap.sql.NotNullConstraint.checkDelete(). |
|
||||||||||||
|
---INSERT Called before a row is INSERTED, with an opportunity to signal a constraint violation if one can be detected.
Implements com.quadcap.sql.Constraint. Definition at line 74 of file NotNullConstraint.java. References com.quadcap.sql.NotNullConstraint.checkInsert(), com.quadcap.sql.TupleImpl.getColumn(), com.quadcap.sql.Constraint.getColumns(), com.quadcap.sql.TupleImpl.getName(), and com.quadcap.sql.Column.getShortName(). Referenced by com.quadcap.sql.NotNullConstraint.checkInsert(). |
|
||||||||||||||||||||||||||||
|
----UPDATE Called before a row is UPDATED, with an opportunity to signal a constraint violation if one can be detected. Because the oldRow may be 'lazy', it's important to instantiate whatever items are going to be needed later by applyUpdate *now*, otherwise, apply may get the 'new' versions of those items, because the underlying byte stream is modified by the time applyUpdate gets called. Implements com.quadcap.sql.Constraint. Definition at line 96 of file NotNullConstraint.java. References com.quadcap.sql.NotNullConstraint.checkUpdate(). Referenced by com.quadcap.sql.NotNullConstraint.checkUpdate(). |
|
|
Called when the constraint itself is being removed. Constraints which allocate resources of any kind should release them here since they are about to be discarded and gc'ed. Implements com.quadcap.sql.Constraint. Definition at line 120 of file NotNullConstraint.java. |
|
|
Read me from a stream.
Reimplemented from com.quadcap.sql.Constraint. Definition at line 122 of file NotNullConstraint.java. References com.quadcap.sql.NotNullConstraint.readExternal(). Referenced by com.quadcap.sql.NotNullConstraint.readExternal(). |
|
|
Set the contstraint's table.
Reimplemented from com.quadcap.sql.Constraint. Definition at line 132 of file NotNullConstraint.java. References com.quadcap.sql.Constraint.getColumns(), and com.quadcap.sql.NotNullConstraint.setTable(). Referenced by com.quadcap.sql.NotNullConstraint.setTable(). |
|
|
Write me to a stream.
Reimplemented from com.quadcap.sql.Constraint. Definition at line 128 of file NotNullConstraint.java. References com.quadcap.sql.NotNullConstraint.writeExternal(). Referenced by com.quadcap.sql.NotNullConstraint.writeExternal(). |