public interface BeanType<T>
| Modifier and Type | Method and Description |
|---|---|
void |
addInheritanceWhere(com.avaje.ebeaninternal.api.SpiQuery<?> query)
Add the discriminator value to the query if needed.
|
Collection<? extends Property> |
allProperties()
Return all the properties for this bean type.
|
Object |
beanId(Object bean)
Return the bean id.
|
T |
createBean()
Create a new instance of the bean.
|
T |
createBeanUsingDisc(Object discValue)
Create a bean given the discriminator value.
|
BeanDocType<T> |
docStore()
Return the doc store support for this bean type.\
|
String |
getBaseTable()
Return the base table this bean type maps to.
|
Object |
getBeanId(T bean)
Return the id value for the given bean.
|
Class<T> |
getBeanType()
Return the class type this BeanDescriptor describes.
|
BeanType<?> |
getBeanTypeAtPath(String propertyName)
Return the type bean for an OneToMany or ManyToOne or ManyToMany property.
|
String |
getDiscColumn()
Return the discriminator column.
|
DocumentMapping |
getDocMapping()
Return the DocumentMapping for this bean type.
|
String |
getDocStoreQueueId()
Return the doc store queueId for this bean type.
|
ExpressionPath |
getExpressionPath(String path)
Return the ExpressionPath for a given property path.
|
BeanFindController |
getFindController()
Return the beanFinder.
|
String |
getFullName()
Return the full name of the bean type.
|
Property |
getIdProperty()
Return the Id property.
|
IdType |
getIdType()
Return the identity generation type.
|
String |
getName()
Return the short name of the bean type.
|
BeanPersistController |
getPersistController()
Return the bean persist controller.
|
BeanPersistListener |
getPersistListener()
Return the bean persist listener.
|
Property |
getProperty(String propertyName)
Return the Property to read values from a bean.
|
BeanQueryAdapter |
getQueryAdapter()
Return the BeanQueryAdapter or null if none is defined.
|
String |
getSequenceName()
Return the sequence name associated to this entity bean type (if there is one).
|
Property |
getWhenCreatedProperty()
Return the when created property if there is one defined.
|
Property |
getWhenModifiedProperty()
Return the when modified property if there is one defined.
|
boolean |
hasInheritance()
Return true if this bean type has an inheritance hierarchy.
|
boolean |
isDocStoreMapped()
Return true if this bean type has doc store backing.
|
boolean |
isValidExpression(String property)
Return true if the property is a valid known property or path for the given bean type.
|
BeanType<?> |
root()
Return the root bean type for an inheritance hierarchy.
|
void |
setBeanId(T bean,
Object idValue)
Set the id value to the bean.
|
String getFullName()
Class<T> getBeanType()
BeanType<?> getBeanTypeAtPath(String propertyName)
Collection<? extends Property> allProperties()
Property getIdProperty()
Property getWhenModifiedProperty()
Property getWhenCreatedProperty()
Property getProperty(String propertyName)
ExpressionPath getExpressionPath(String path)
This can return a property or nested property path.
boolean isValidExpression(String property)
String getBaseTable()
T createBean()
Object beanId(Object bean)
BeanPersistController getPersistController()
BeanPersistListener getPersistListener()
BeanFindController getFindController()
BeanQueryAdapter getQueryAdapter()
String getSequenceName()
boolean isDocStoreMapped()
DocumentMapping getDocMapping()
This is the document structure and mapping options for how this bean type is mapped for the document store.
String getDocStoreQueueId()
BeanDocType<T> docStore()
void addInheritanceWhere(com.avaje.ebeaninternal.api.SpiQuery<?> query)
boolean hasInheritance()
String getDiscColumn()
T createBeanUsingDisc(Object discValue)
Copyright © 2016. All rights reserved.