T
- The type represented by this descriptorP
- The type of the parent of type T
, if there is onepublic class RelativeDaoDescriptor<T,P> extends Object implements DaoDescriptor<T>
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<T> originalDaoDescriptor,
String newPrefix,
Prefixer prefixer) |
Modifier and Type | Method and Description |
---|---|
List<ChildrenDescriptor<T,?>> |
childrenDescriptors()
The definitions of any entities that are owned by type
T |
List<TypedColumn<T>> |
dataColumns()
The columns that contain the data that make up the object
|
List<JoinColumn<T,?>> |
joinColumns()
The columns that contain references to foreign keys to other objects
|
ParentColumn<T,P> |
parentColumn() |
PrimaryKey<T> |
primaryKey()
The primary key for objects of type
T |
Supplier<T> |
supplier()
The mechanism to use to instantiate a new instance of type
T ,
generally a no-argument constructor of the class. |
String |
tableName()
The name of the table that is used to persist type
T |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
allColumns, columnMap, dataColumnsWithParent, hasParent
public RelativeDaoDescriptor(DaoDescriptor<T> originalDaoDescriptor, String newPrefix, Prefixer prefixer)
public String tableName()
DaoDescriptor
T
tableName
in interface DaoDescriptor<T>
public Supplier<T> supplier()
DaoDescriptor
T
,
generally a no-argument constructor of the class.supplier
in interface DaoDescriptor<T>
public List<TypedColumn<T>> dataColumns()
DaoDescriptor
dataColumns
in interface DaoDescriptor<T>
public List<JoinColumn<T,?>> joinColumns()
DaoDescriptor
joinColumns
in interface DaoDescriptor<T>
public PrimaryKey<T> primaryKey()
DaoDescriptor
T
primaryKey
in interface DaoDescriptor<T>
public List<ChildrenDescriptor<T,?>> childrenDescriptors()
DaoDescriptor
T
childrenDescriptors
in interface DaoDescriptor<T>
public ParentColumn<T,P> parentColumn()
parentColumn
in interface DaoDescriptor<T>
Copyright © 2018. All rights reserved.