LEFT - The type of one of the entities being associatedRIGHT - The type of the other of the entities being associatedpublic class AssociationDaoBuilder<LEFT,RIGHT> extends Object implements DaoDescriptor<Association<LEFT,RIGHT>,Association<LEFT,RIGHT>>
AssociationDao.| Constructor and Description |
|---|
AssociationDaoBuilder(DaoDescriptor<LEFT,?> leftDaoDescriptor,
DaoDescriptor<RIGHT,?> 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. |
Function<Association<LEFT,RIGHT>,Association<LEFT,RIGHT>> |
buildFunction() |
List<ChildrenDescriptor<Association<LEFT,RIGHT>,?,Association<LEFT,RIGHT>,?>> |
childrenDescriptors()
The definitions of any entities that are owned by type
ENTITY |
List<Column<Association<LEFT,RIGHT>,Association<LEFT,RIGHT>>> |
dataColumns()
The columns that contain the data that make up the object
|
List<JoinColumn<Association<LEFT,RIGHT>,?,Association<LEFT,RIGHT>,?>> |
joinColumns()
The columns that contain references to foreign keys to other objects
|
ParentColumn<Association<LEFT,RIGHT>,?,Association<LEFT,RIGHT>,?> |
parentColumn() |
PrimaryKey<Association<LEFT,RIGHT>,Association<LEFT,RIGHT>> |
primaryKey()
The primary key for objects of type
ENTITY |
boolean |
ready()
Flag indicating whether or not all the necessary fields have been set.
|
Supplier<Association<LEFT,RIGHT>> |
supplier()
The mechanism to use to instantiate a new instance of type
ENTITY,
generally a no-argument constructor of the class. |
String |
tableName()
The name of the table that is used to persist type
ENTITY |
AssociationDaoBuilder<LEFT,RIGHT> |
withLeftColumnName(String leftColumnName)
The name of the column in the association table that references the
primary key of the left entity.
|
AssociationDaoBuilder<LEFT,RIGHT> |
withPrimaryKeyName(String primaryKeyName)
Setter for the primary key column name of the association table in the database.
|
AssociationDaoBuilder<LEFT,RIGHT> |
withRightColumnName(String rightColumnName)
The name of the column in the association table that references the
primary key of the right entity.
|
AssociationDaoBuilder<LEFT,RIGHT> |
withSequenceName(String sequenceName)
Setter for the name of the database sequence used to populate
the primary key of the association table
|
AssociationDaoBuilder<LEFT,RIGHT> |
withTableName(String tableName)
Setter for the name of the association table in the database.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallColumns, dataColumnsWithParent, dataColumnsWithParent, hasParent, selectpublic AssociationDaoBuilder(DaoDescriptor<LEFT,?> leftDaoDescriptor, DaoDescriptor<RIGHT,?> 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 AssociationDaoBuilder<LEFT,RIGHT> withTableName(String tableName)
tableName - the database table namepublic AssociationDaoBuilder<LEFT,RIGHT> withPrimaryKeyName(String primaryKeyName)
primaryKeyName - the database column representing the primary key in the association tablepublic AssociationDaoBuilder<LEFT,RIGHT> withSequenceName(String sequenceName)
sequenceName - the database sequence namepublic AssociationDaoBuilder<LEFT,RIGHT> withLeftColumnName(String leftColumnName)
leftColumnName - The column namepublic AssociationDaoBuilder<LEFT,RIGHT> withRightColumnName(String rightColumnName)
rightColumnName - The column namepublic boolean ready()
public PrimaryKey<Association<LEFT,RIGHT>,Association<LEFT,RIGHT>> primaryKey()
DaoDescriptorENTITYprimaryKey in interface DaoDescriptor<Association<LEFT,RIGHT>,Association<LEFT,RIGHT>>public String tableName()
KeylessDaoDescriptorENTITYtableName in interface KeylessDaoDescriptor<Association<LEFT,RIGHT>,Association<LEFT,RIGHT>>public Supplier<Association<LEFT,RIGHT>> supplier()
KeylessDaoDescriptorENTITY,
generally a no-argument constructor of the class.supplier in interface KeylessDaoDescriptor<Association<LEFT,RIGHT>,Association<LEFT,RIGHT>>public List<Column<Association<LEFT,RIGHT>,Association<LEFT,RIGHT>>> dataColumns()
KeylessDaoDescriptordataColumns in interface KeylessDaoDescriptor<Association<LEFT,RIGHT>,Association<LEFT,RIGHT>>public List<JoinColumn<Association<LEFT,RIGHT>,?,Association<LEFT,RIGHT>,?>> joinColumns()
KeylessDaoDescriptorjoinColumns in interface KeylessDaoDescriptor<Association<LEFT,RIGHT>,Association<LEFT,RIGHT>>public List<ChildrenDescriptor<Association<LEFT,RIGHT>,?,Association<LEFT,RIGHT>,?>> childrenDescriptors()
KeylessDaoDescriptorENTITYchildrenDescriptors in interface KeylessDaoDescriptor<Association<LEFT,RIGHT>,Association<LEFT,RIGHT>>public ParentColumn<Association<LEFT,RIGHT>,?,Association<LEFT,RIGHT>,?> parentColumn()
parentColumn in interface KeylessDaoDescriptor<Association<LEFT,RIGHT>,Association<LEFT,RIGHT>>public Function<Association<LEFT,RIGHT>,Association<LEFT,RIGHT>> buildFunction()
buildFunction in interface KeylessDaoDescriptor<Association<LEFT,RIGHT>,Association<LEFT,RIGHT>>Copyright © 2019. All rights reserved.