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, waitallColumns, columnMap, dataColumnsWithParent, hasParentpublic RelativeDaoDescriptor(DaoDescriptor<T> originalDaoDescriptor, String newPrefix, Prefixer prefixer)
public String tableName()
DaoDescriptorTtableName in interface DaoDescriptor<T>public Supplier<T> supplier()
DaoDescriptorT,
generally a no-argument constructor of the class.supplier in interface DaoDescriptor<T>public List<TypedColumn<T>> dataColumns()
DaoDescriptordataColumns in interface DaoDescriptor<T>public List<JoinColumn<T,?>> joinColumns()
DaoDescriptorjoinColumns in interface DaoDescriptor<T>public PrimaryKey<T> primaryKey()
DaoDescriptorTprimaryKey in interface DaoDescriptor<T>public List<ChildrenDescriptor<T,?>> childrenDescriptors()
DaoDescriptorTchildrenDescriptors in interface DaoDescriptor<T>public ParentColumn<T,P> parentColumn()
parentColumn in interface DaoDescriptor<T>Copyright © 2018. All rights reserved.