public class RelationshipImpl extends java.lang.Object implements Relationship
| Modifier and Type | Field and Description |
|---|---|
private int |
_flags
the various flags describing this relationship
|
private java.util.List<Column> |
_fromColumns
the columns in the "to" table in this relationship (aligned w/
toColumns list)
|
private Table |
_fromTable
the "from" table in this relationship
|
private java.lang.String |
_name
the name of this relationship
|
private java.util.List<Column> |
_toColumns
the columns in the "from" table in this relationship (aligned w/
toColumns list)
|
private Table |
_toTable
the "to" table in this relationship
|
private static int |
CASCADE_DELETES_FLAG
flag indicating cascading deletes (requires referential integrity)
|
private static int |
CASCADE_UPDATES_FLAG
flag indicating cascading updates (requires referential integrity)
|
private static int |
LEFT_OUTER_JOIN_FLAG
flag indicating left outer join
|
private static int |
NO_REFERENTIAL_INTEGRITY_FLAG
flag indicating no referential integrity
|
private static int |
ONE_TO_ONE_FLAG
flag indicating one-to-one relationship
|
private static int |
RIGHT_OUTER_JOIN_FLAG
flag indicating right outer join
|
| Constructor and Description |
|---|
RelationshipImpl(java.lang.String name,
Table fromTable,
Table toTable,
int flags,
int numCols) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cascadeDeletes() |
boolean |
cascadeUpdates() |
int |
getFlags() |
java.util.List<Column> |
getFromColumns() |
Table |
getFromTable() |
java.lang.String |
getName() |
java.util.List<Column> |
getToColumns() |
Table |
getToTable() |
private boolean |
hasFlag(int flagMask) |
boolean |
hasReferentialIntegrity() |
boolean |
isLeftOuterJoin() |
boolean |
isOneToOne() |
boolean |
isRightOuterJoin() |
java.lang.String |
toString() |
private static final int ONE_TO_ONE_FLAG
private static final int NO_REFERENTIAL_INTEGRITY_FLAG
private static final int CASCADE_UPDATES_FLAG
private static final int CASCADE_DELETES_FLAG
private static final int LEFT_OUTER_JOIN_FLAG
private static final int RIGHT_OUTER_JOIN_FLAG
private final java.lang.String _name
private final Table _fromTable
private final Table _toTable
private final java.util.List<Column> _toColumns
private final java.util.List<Column> _fromColumns
private final int _flags
public java.lang.String getName()
getName in interface Relationshippublic Table getFromTable()
getFromTable in interface Relationshippublic java.util.List<Column> getFromColumns()
getFromColumns in interface Relationshippublic Table getToTable()
getToTable in interface Relationshippublic java.util.List<Column> getToColumns()
getToColumns in interface Relationshippublic int getFlags()
public boolean isOneToOne()
isOneToOne in interface Relationshippublic boolean hasReferentialIntegrity()
hasReferentialIntegrity in interface Relationshippublic boolean cascadeUpdates()
cascadeUpdates in interface Relationshippublic boolean cascadeDeletes()
cascadeDeletes in interface Relationshippublic boolean isLeftOuterJoin()
isLeftOuterJoin in interface Relationshippublic boolean isRightOuterJoin()
isRightOuterJoin in interface Relationshipprivate boolean hasFlag(int flagMask)
public java.lang.String toString()
toString in class java.lang.Object