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() |
List<ChildrenDescriptor<ENTITY,?,ENTITYBUILDER,?>> |
childrenDescriptors()
The definitions of any entities that are owned by type
ENTITY |
List<Column<ENTITY,ENTITYBUILDER>> |
dataColumns()
The columns that contain the data that make up the object
|
List<JoinColumn<ENTITY,?,ENTITYBUILDER,?>> |
joinColumns()
The columns that contain references to foreign keys to other objects
|
ParentColumn<ENTITY,PARENT,ENTITYBUILDER,?> |
parentColumn() |
PrimaryKey<ENTITY,ENTITYBUILDER> |
primaryKey()
The primary key for objects of type
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
allColumns, dataColumnsWithParent, dataColumnsWithParent, hasParent, 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 List<Column<ENTITY,ENTITYBUILDER>> dataColumns()
KeylessDaoDescriptor
dataColumns
in interface KeylessDaoDescriptor<ENTITY,ENTITYBUILDER>
public List<JoinColumn<ENTITY,?,ENTITYBUILDER,?>> joinColumns()
KeylessDaoDescriptor
joinColumns
in interface KeylessDaoDescriptor<ENTITY,ENTITYBUILDER>
public PrimaryKey<ENTITY,ENTITYBUILDER> primaryKey()
DaoDescriptor
ENTITY
primaryKey
in interface DaoDescriptor<ENTITY,ENTITYBUILDER>
public List<ChildrenDescriptor<ENTITY,?,ENTITYBUILDER,?>> childrenDescriptors()
KeylessDaoDescriptor
ENTITY
childrenDescriptors
in interface KeylessDaoDescriptor<ENTITY,ENTITYBUILDER>
public ParentColumn<ENTITY,PARENT,ENTITYBUILDER,?> parentColumn()
parentColumn
in interface KeylessDaoDescriptor<ENTITY,ENTITYBUILDER>
public Function<ENTITYBUILDER,ENTITY> buildFunction()
buildFunction
in interface KeylessDaoDescriptor<ENTITY,ENTITYBUILDER>
Copyright © 2019. All rights reserved.