ENTITY
- The type represented by this descriptorPARENT
- The type of the parent of type ENTITY
, if there is oneENTITYBUILDER
- The type that can build a ENTITY
public class RelativeDaoDescriptor<ENTITY,PARENT,ENTITYBUILDER> extends Object implements DaoDescriptor<ENTITY,ENTITYBUILDER>
DaoDescriptor
that has its
prefixes shifted. Used when two or more tables are joined.
Most users of hrorm will have no need to directly use this.
Constructor and Description |
---|
RelativeDaoDescriptor(DaoDescriptor<ENTITY,ENTITYBUILDER> originalDaoDescriptor,
String newPrefix,
Prefixer prefixer) |
Modifier and Type | Method and Description |
---|---|
Function<ENTITYBUILDER,ENTITY> |
buildFunction()
The mechanism for building a new entity instance.
|
List<ChildrenDescriptor<ENTITY,?,ENTITYBUILDER,?>> |
childrenDescriptors()
The definitions of any entities that are owned by type
ENTITY |
ChildSelectStrategy |
childSelectStrategy() |
ColumnCollection<ENTITY,ENTITYBUILDER> |
getColumnCollection() |
ParentColumn<ENTITY,?,ENTITYBUILDER,?> |
parentColumn()
The parent column, if there is one, of the
ENTITY . |
Supplier<ENTITYBUILDER> |
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasParent, parentColumnName, primaryKey, validateConsistencyOfJoinedSelectStrategies
allColumns, dataColumns, joinColumns, joinedSelectStrategies, nonJoinColumns, select
public RelativeDaoDescriptor(DaoDescriptor<ENTITY,ENTITYBUILDER> originalDaoDescriptor, String newPrefix, Prefixer prefixer)
public String tableName()
KeylessDaoDescriptor
ENTITY
tableName
in interface KeylessDaoDescriptor<ENTITY,ENTITYBUILDER>
public Supplier<ENTITYBUILDER> supplier()
KeylessDaoDescriptor
ENTITY
,
generally a no-argument constructor of the class.supplier
in interface KeylessDaoDescriptor<ENTITY,ENTITYBUILDER>
public ColumnCollection<ENTITY,ENTITYBUILDER> getColumnCollection()
getColumnCollection
in interface KeylessDaoDescriptor<ENTITY,ENTITYBUILDER>
public List<ChildrenDescriptor<ENTITY,?,ENTITYBUILDER,?>> childrenDescriptors()
DaoDescriptor
ENTITY
childrenDescriptors
in interface DaoDescriptor<ENTITY,ENTITYBUILDER>
public ParentColumn<ENTITY,?,ENTITYBUILDER,?> parentColumn()
DaoDescriptor
ENTITY
.parentColumn
in interface DaoDescriptor<ENTITY,ENTITYBUILDER>
public Function<ENTITYBUILDER,ENTITY> buildFunction()
KeylessDaoDescriptor
buildFunction
in interface KeylessDaoDescriptor<ENTITY,ENTITYBUILDER>
public ChildSelectStrategy childSelectStrategy()
childSelectStrategy
in interface DaoDescriptor<ENTITY,ENTITYBUILDER>
Copyright © 2019. All rights reserved.