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 Relationship
public Table getFromTable()
getFromTable
in interface Relationship
public List<Column> getFromColumns()
getFromColumns
in interface Relationship
public Table getToTable()
getToTable
in interface Relationship
public List<Column> getToColumns()
getToColumns
in interface Relationship
public int getFlags()
public boolean isOneToOne()
isOneToOne
in interface Relationship
public boolean hasReferentialIntegrity()
hasReferentialIntegrity
in interface Relationship
public boolean cascadeUpdates()
cascadeUpdates
in interface Relationship
public boolean cascadeDeletes()
cascadeDeletes
in interface Relationship
public boolean cascadeNullOnDelete()
cascadeNullOnDelete
in interface Relationship
public boolean isLeftOuterJoin()
isLeftOuterJoin
in interface Relationship
public boolean isRightOuterJoin()
isRightOuterJoin
in interface Relationship
public Relationship.JoinType getJoinType()
getJoinType
in interface Relationship
Copyright © 2005–2024 OpenHMS. All rights reserved.