Class RelationshipCreator
- java.lang.Object
-
- com.healthmarketscience.jackcess.impl.RelationshipCreator
-
public class RelationshipCreator extends Object
Helper class used to maintain state during relationship creation.- Author:
- James Ahlborn
-
-
Constructor Summary
Constructors Constructor Description RelationshipCreator(DatabaseImpl database)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static intcalculateNameLength(String name)RelationshipImplcreateRelationship(RelationshipBuilder relationship)Creates the relationship in the database.RelationshipImplcreateRelationshipImpl(String name)CharsetgetCharset()DatabaseImplgetDatabase()JetFormatgetFormat()StringgetName()PageChannelgetPageChannel()TableImplgetPrimaryTable()TableImplgetSecondaryTable()booleanhasReferentialIntegrity()intreservePageNumber()
-
-
-
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)
-
-