com.healthmarketscience.jackcess.impl
Class RelationshipImpl

java.lang.Object
  extended by com.healthmarketscience.jackcess.impl.RelationshipImpl
All Implemented Interfaces:
Relationship

public class RelationshipImpl
extends Object
implements Relationship

Information about a relationship between two tables in the database.

Author:
James Ahlborn

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.healthmarketscience.jackcess.Relationship
Relationship.JoinType
 
Field Summary
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 Summary
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)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ONE_TO_ONE_FLAG

public static final int ONE_TO_ONE_FLAG
flag indicating one-to-one relationship

See Also:
Constant Field Values

NO_REFERENTIAL_INTEGRITY_FLAG

public static final int NO_REFERENTIAL_INTEGRITY_FLAG
flag indicating no referential integrity

See Also:
Constant Field Values

CASCADE_UPDATES_FLAG

public static final int CASCADE_UPDATES_FLAG
flag indicating cascading updates (requires referential integrity)

See Also:
Constant Field Values

CASCADE_DELETES_FLAG

public static final int CASCADE_DELETES_FLAG
flag indicating cascading deletes (requires referential integrity)

See Also:
Constant Field Values

CASCADE_NULL_FLAG

public static final int CASCADE_NULL_FLAG
flag indicating cascading null on delete (requires referential integrity)

See Also:
Constant Field Values

LEFT_OUTER_JOIN_FLAG

public static final int LEFT_OUTER_JOIN_FLAG
flag indicating left outer join

See Also:
Constant Field Values

RIGHT_OUTER_JOIN_FLAG

public static final int RIGHT_OUTER_JOIN_FLAG
flag indicating right outer join

See Also:
Constant Field Values
Constructor Detail

RelationshipImpl

public RelationshipImpl(String name,
                        Table fromTable,
                        Table toTable,
                        int flags,
                        int numCols)

RelationshipImpl

public RelationshipImpl(String name,
                        Table fromTable,
                        Table toTable,
                        int flags,
                        List<? extends Column> fromCols,
                        List<? extends Column> toCols)
Method Detail

getName

public String getName()
Specified by:
getName in interface Relationship

getFromTable

public Table getFromTable()
Specified by:
getFromTable in interface Relationship

getFromColumns

public List<Column> getFromColumns()
Specified by:
getFromColumns in interface Relationship

getToTable

public Table getToTable()
Specified by:
getToTable in interface Relationship

getToColumns

public List<Column> getToColumns()
Specified by:
getToColumns in interface Relationship

getFlags

public int getFlags()

isOneToOne

public boolean isOneToOne()
Specified by:
isOneToOne in interface Relationship

hasReferentialIntegrity

public boolean hasReferentialIntegrity()
Specified by:
hasReferentialIntegrity in interface Relationship

cascadeUpdates

public boolean cascadeUpdates()
Specified by:
cascadeUpdates in interface Relationship

cascadeDeletes

public boolean cascadeDeletes()
Specified by:
cascadeDeletes in interface Relationship

cascadeNullOnDelete

public boolean cascadeNullOnDelete()
Specified by:
cascadeNullOnDelete in interface Relationship

isLeftOuterJoin

public boolean isLeftOuterJoin()
Specified by:
isLeftOuterJoin in interface Relationship

isRightOuterJoin

public boolean isRightOuterJoin()
Specified by:
isRightOuterJoin in interface Relationship

getJoinType

public Relationship.JoinType getJoinType()
Specified by:
getJoinType in interface Relationship

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005–2017 Health Market Science. All rights reserved.