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

Constructor Summary
RelationshipImpl(String name, Table fromTable, Table toTable, int flags, int numCols)
           
 
Method Summary
 boolean cascadeDeletes()
           
 boolean cascadeUpdates()
           
 int getFlags()
           
 List<Column> getFromColumns()
           
 Table getFromTable()
           
 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
 

Constructor Detail

RelationshipImpl

public RelationshipImpl(String name,
                        Table fromTable,
                        Table toTable,
                        int flags,
                        int numCols)
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

isLeftOuterJoin

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

isRightOuterJoin

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005-2015 Health Market Science. All Rights Reserved.