LEFT - The type of one of the entities being associatedLEFTBUILDER - The builder type for that entityRIGHT - The type of the other of the entities being associatedRIGHTBUILDER - The builder type for the other entitypublic class IndirectAssociationDaoBuilder<LEFT,LEFTBUILDER,RIGHT,RIGHTBUILDER> extends Object
AssociationDao for immutable
objects.| Constructor and Description |
|---|
IndirectAssociationDaoBuilder(DaoDescriptor<LEFT,LEFTBUILDER> leftDaoDescriptor,
DaoDescriptor<RIGHT,RIGHTBUILDER> rightDaoDescriptor)
Construct a new builder instance.
|
| Modifier and Type | Method and Description |
|---|---|
AssociationDao<LEFT,RIGHT> |
buildDao(Connection connection)
Creates a new
AssociationDao using the passed Connection. |
boolean |
ready()
Flag indicating whether or not all the necessary fields have been set.
|
IndirectAssociationDaoBuilder<LEFT,LEFTBUILDER,RIGHT,RIGHTBUILDER> |
withLeftColumnName(String leftColumnName)
The name of the column in the association table that references the
primary key of the left entity.
|
IndirectAssociationDaoBuilder<LEFT,LEFTBUILDER,RIGHT,RIGHTBUILDER> |
withPrimaryKeyName(String primaryKeyName)
Setter for the primary key column name of the association table in the database.
|
IndirectAssociationDaoBuilder<LEFT,LEFTBUILDER,RIGHT,RIGHTBUILDER> |
withRightColumnName(String rightColumnName)
The name of the column in the association table that references the
primary key of the right entity.
|
IndirectAssociationDaoBuilder<LEFT,LEFTBUILDER,RIGHT,RIGHTBUILDER> |
withSequenceName(String sequenceName)
Setter for the name of the database sequence used to populate
the primary key of the association table
|
IndirectAssociationDaoBuilder<LEFT,LEFTBUILDER,RIGHT,RIGHTBUILDER> |
withTableName(String tableName)
Setter for the name of the association table in the database.
|
public IndirectAssociationDaoBuilder(DaoDescriptor<LEFT,LEFTBUILDER> leftDaoDescriptor, DaoDescriptor<RIGHT,RIGHTBUILDER> rightDaoDescriptor)
leftDaoDescriptor - the DaoBuilder or other descriptor
of one of the entities being associatedrightDaoDescriptor - the DaoBuilder or other descriptor
of one of other of the entities being associatedpublic AssociationDao<LEFT,RIGHT> buildDao(Connection connection)
AssociationDao using the passed Connection.connection - a connection to the underlying data storepublic IndirectAssociationDaoBuilder<LEFT,LEFTBUILDER,RIGHT,RIGHTBUILDER> withTableName(String tableName)
tableName - the database table namepublic IndirectAssociationDaoBuilder<LEFT,LEFTBUILDER,RIGHT,RIGHTBUILDER> withPrimaryKeyName(String primaryKeyName)
primaryKeyName - the database column representing the primary key in the association tablepublic IndirectAssociationDaoBuilder<LEFT,LEFTBUILDER,RIGHT,RIGHTBUILDER> withSequenceName(String sequenceName)
sequenceName - the database sequence namepublic IndirectAssociationDaoBuilder<LEFT,LEFTBUILDER,RIGHT,RIGHTBUILDER> withLeftColumnName(String leftColumnName)
leftColumnName - The column namepublic IndirectAssociationDaoBuilder<LEFT,LEFTBUILDER,RIGHT,RIGHTBUILDER> withRightColumnName(String rightColumnName)
rightColumnName - The column namepublic boolean ready()
Copyright © 2019. All rights reserved.