public class RelationshipImpl extends Object implements Relationship
Relationship.JoinType| Modifier and Type | Field and Description |
|---|---|
static int |
CASCADE_DELETES_FLAG
flag indicating cascading deletes (requires referential integrity)
|
static int |
CASCADE_NULL_FLAG
flag indicating cascading null on delete (requires referential
integrity)
|
static int |
CASCADE_UPDATES_FLAG
flag indicating cascading updates (requires referential integrity)
|
static int |
LEFT_OUTER_JOIN_FLAG
flag indicating left outer join
|
static int |
NO_REFERENTIAL_INTEGRITY_FLAG
flag indicating no referential integrity
|
static int |
ONE_TO_ONE_FLAG
flag indicating one-to-one relationship
|
static int |
RIGHT_OUTER_JOIN_FLAG
flag indicating right outer join
|
| Constructor and Description |
|---|
RelationshipImpl(String name,
Table fromTable,
Table toTable,
int flags,
int numCols) |
RelationshipImpl(String name,
Table fromTable,
Table toTable,
int flags,
List<? extends Column> fromCols,
List<? extends Column> toCols) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cascadeDeletes() |
boolean |
cascadeNullOnDelete() |
boolean |
cascadeUpdates() |
int |
getFlags() |
List<Column> |
getFromColumns() |
Table |
getFromTable() |
Relationship.JoinType |
getJoinType() |
String |
getName() |
List<Column> |
getToColumns() |
Table |
getToTable() |
boolean |
hasReferentialIntegrity() |
boolean |
isLeftOuterJoin() |
boolean |
isOneToOne() |
boolean |
isRightOuterJoin() |
String |
toString() |
public static final int ONE_TO_ONE_FLAG
public static final int NO_REFERENTIAL_INTEGRITY_FLAG
public static final int CASCADE_UPDATES_FLAG
public static final int CASCADE_DELETES_FLAG
public static final int CASCADE_NULL_FLAG
public static final int LEFT_OUTER_JOIN_FLAG
public static final int RIGHT_OUTER_JOIN_FLAG
public RelationshipImpl(String name, Table fromTable, Table toTable, int flags, int numCols)
public String getName()
getName in interface Relationshippublic Table getFromTable()
getFromTable in interface Relationshippublic List<Column> getFromColumns()
getFromColumns in interface Relationshippublic Table getToTable()
getToTable in interface Relationshippublic 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 cascadeNullOnDelete()
cascadeNullOnDelete in interface Relationshippublic boolean isLeftOuterJoin()
isLeftOuterJoin in interface Relationshippublic boolean isRightOuterJoin()
isRightOuterJoin in interface Relationshippublic Relationship.JoinType getJoinType()
getJoinType in interface RelationshipCopyright © 2005–2025 OpenHMS. All rights reserved.