com.healthmarketscience.jackcess.impl
Class RelationshipCreator

java.lang.Object
  extended by com.healthmarketscience.jackcess.impl.RelationshipCreator

public class RelationshipCreator
extends Object

Helper class used to maintain state during relationship creation.

Author:
James Ahlborn

Constructor Summary
RelationshipCreator(DatabaseImpl database)
           
 
Method Summary
static int calculateNameLength(String name)
           
 RelationshipImpl createRelationship(RelationshipBuilder relationship)
          Creates the relationship in the database.
 RelationshipImpl createRelationshipImpl(String name)
           
 Charset getCharset()
           
 DatabaseImpl getDatabase()
           
 JetFormat getFormat()
           
 String getName()
           
 PageChannel getPageChannel()
           
 TableImpl getPrimaryTable()
           
 TableImpl getSecondaryTable()
           
 boolean hasReferentialIntegrity()
           
 int reservePageNumber()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationshipCreator

public RelationshipCreator(DatabaseImpl database)
Method Detail

getName

public String getName()

getPrimaryTable

public TableImpl getPrimaryTable()

getSecondaryTable

public TableImpl getSecondaryTable()

hasReferentialIntegrity

public boolean hasReferentialIntegrity()

createRelationshipImpl

public RelationshipImpl createRelationshipImpl(String name)

createRelationship

public RelationshipImpl createRelationship(RelationshipBuilder relationship)
                                    throws IOException
Creates the relationship in the database.

Throws:
IOException
Usage:
Advanced: This method is for advanced/internal use.

getDatabase

public DatabaseImpl getDatabase()

getFormat

public JetFormat getFormat()

getPageChannel

public PageChannel getPageChannel()

getCharset

public Charset getCharset()

reservePageNumber

public int reservePageNumber()
                      throws IOException
Throws:
IOException

calculateNameLength

public static int calculateNameLength(String name)


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