| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private int | |
| private static final byte | |
| private static final byte | |
| private String | |
| private List | |
| private TableImpl | |
| private RelationshipBuilder | |
| private List | |
| private TableImpl |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private void | checkForCascadeCycle()
Verifies that enabling cascading updates/deletes for the relationship currently being created would not introduce a cascade cycle, i.e. a chain of cascading relationships (including this new one) that loops back to the primary table. |
| private IndexImpl. | |
| private static IndexBuilder | |
| private IndexBuilder | |
| private String | |
| public RelationshipImpl | |
| public RelationshipImpl | |
| private IndexBuilder | |
| private static List | |
| private static List | |
| public String | |
| public TableImpl | |
| public TableImpl | |
| private static String | getTableErrorContext(TableImpl table, List<ColumnImpl> cols, String tableName, Collection<String> colNames)
|
| private static IndexImpl | |
| public boolean | |
| private boolean | |
| private void | |
| private String |
| CASCADE_FLAGS | back to summary |
|---|---|
| private static final int CASCADE_FLAGS | |
| flags | back to summary |
|---|---|
| private int flags | |
| IGNORED_PRIMARY_INDEX_FLAGS | back to summary |
|---|---|
| private static final byte IGNORED_PRIMARY_INDEX_FLAGS | |
| IGNORED_SECONDARY_INDEX_FLAGS | back to summary |
|---|---|
| private static final byte IGNORED_SECONDARY_INDEX_FLAGS | |
| name | back to summary |
|---|---|
| private String name | |
| primaryCols | back to summary |
|---|---|
| private List<ColumnImpl> primaryCols | |
| primaryTable | back to summary |
|---|---|
| private TableImpl primaryTable | |
| relationship | back to summary |
|---|---|
| private RelationshipBuilder relationship | |
| secondaryCols | back to summary |
|---|---|
| private List<ColumnImpl> secondaryCols | |
| secondaryTable | back to summary |
|---|---|
| private TableImpl secondaryTable | |
| RelationshipCreator | back to summary |
|---|---|
| public RelationshipCreator(DatabaseImpl database) | |
| addPrimaryIndex | back to summary |
|---|---|
| private void addPrimaryIndex() throws IOException | |
| addSecondaryIndex | back to summary |
|---|---|
| private void addSecondaryIndex() throws IOException | |
| checkForCascadeCycle | back to summary |
|---|---|
| private void checkForCascadeCycle() throws IOException Verifies that enabling cascading updates/deletes for the relationship currently being created would not introduce a cascade cycle, i.e. a chain of cascading relationships (including this new one) that loops back to the primary table. Following such a cycle would cause an infinite cascade when the relationship is enforced. | |
| createFKReference | back to summary |
|---|---|
| private IndexImpl. | |
| createIndex | back to summary |
|---|---|
| private static IndexBuilder createIndex(String name, List<ColumnImpl> cols) | |
| createPrimaryIndex | back to summary |
|---|---|
| private IndexBuilder createPrimaryIndex() | |
| createPrimaryIndexName | back to summary |
|---|---|
| private String createPrimaryIndexName() | |
| createRelationship | back to summary |
|---|---|
| public RelationshipImpl createRelationship(RelationshipBuilder relBuilder) throws IOException Creates the relationship in the database. | |
| createRelationshipImpl | back to summary |
|---|---|
| public RelationshipImpl createRelationshipImpl(String relName) | |
| createSecondaryIndex | back to summary |
|---|---|
| private IndexBuilder createSecondaryIndex() | |
| getColumnNames | back to summary |
|---|---|
| private static List | |
| getColumns | back to summary |
|---|---|
| private static List | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getPrimaryTable | back to summary |
|---|---|
| public TableImpl getPrimaryTable() | |
| getSecondaryTable | back to summary |
|---|---|
| public TableImpl getSecondaryTable() | |
| getTableErrorContext | back to summary |
|---|---|
| private static String getTableErrorContext(TableImpl table, List<ColumnImpl> cols, String tableName, Collection<String> colNames) | |
| getUniqueIndex | back to summary |
|---|---|
| private static IndexImpl getUniqueIndex(TableImpl table, List<ColumnImpl> cols) | |
| hasReferentialIntegrity | back to summary |
|---|---|
| public boolean hasReferentialIntegrity() | |
| isOneToOne | back to summary |
|---|---|
| private boolean isOneToOne() | |
| validate | back to summary |
|---|---|
| private void validate() throws IOException | |
| withErrorContext | back to summary |
|---|---|
| private String withErrorContext(String msg) | |