-
public interface BeanType<T>Information and methods on BeanDescriptors made available to plugins.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddInheritanceWhere(Query<?> query)Add the discriminator value to the query if needed.Collection<? extends Property>allProperties()Return all the properties for this bean type.StringbaseTable()Return the base table this bean type maps to.BeanType<?>beanTypeAtPath(String propertyName)Return the type bean for an OneToMany or ManyToOne or ManyToMany property.voidclearBeanCache()Clear the bean cache.voidclearQueryCache()Clear the query cache.TcreateBean()Create a new instance of the bean.TcreateBeanUsingDisc(Object discValue)Create a bean given the discriminator value.StringdiscColumn()Return the discriminator column.DocMappingdocMapping()Return the DocumentMapping for this bean type.BeanDocType<T>docStore()Return the doc store support for this bean type.\StringdocStoreQueueId()Return the doc store queueId for this bean type.ExpressionPathexpressionPath(String path)Return the ExpressionPath for a given property path.BeanFindControllerfindController()Return the beanFinder.StringfullName()Return the full name of the bean type.booleanhasInheritance()Return true if this bean type has an inheritance hierarchy.Objectid(Object bean)Return the bean id.PropertyidProperty()Return the Id property.IdTypeidType()Return the identity generation type.List<BeanType<?>>inheritanceChildren()Returns all direct children of this beantypeBeanType<?>inheritanceParent()Returns the parent in inheritance hierarchybooleanisBeanCaching()Return true if bean caching is on for this bean type.booleanisDocStoreMapped()Return true if this bean type has doc store backing.booleanisDocStoreOnly()Return true if the type is document store only.booleanisInheritanceRoot()Return true if this object is the root level object in its entity inheritance.booleanisQueryCaching()Return true if query caching is on for this bean type.booleanisValidExpression(String property)Return true if the property is a valid known property or path for the given bean type.Stringname()Return the short name of the bean type.BeanPersistControllerpersistController()Return the bean persist controller.BeanPersistListenerpersistListener()Return the bean persist listener.Propertyproperty(String propertyName)Return the Property to read values from a bean.BeanQueryAdapterqueryAdapter()Return the BeanQueryAdapter or null if none is defined.BeanType<?>root()Return the root bean type for an inheritance hierarchy.voidsetId(T bean, Object idValue)Set the id value to the bean.Class<T>type()Return the class type this BeanDescriptor describes.voidvisitAllInheritanceChildren(Consumer<BeanType<?>> visitor)Visit all children recursivelyPropertywhenCreatedProperty()Return the when created property if there is one defined.PropertywhenModifiedProperty()Return the when modified property if there is one defined.
-
-
-
Method Detail
-
name
String name()
Return the short name of the bean type.
-
fullName
String fullName()
Return the full name of the bean type.
-
beanTypeAtPath
BeanType<?> beanTypeAtPath(String propertyName)
Return the type bean for an OneToMany or ManyToOne or ManyToMany property.
-
allProperties
Collection<? extends Property> allProperties()
Return all the properties for this bean type.
-
idProperty
Property idProperty()
Return the Id property.
-
whenModifiedProperty
Property whenModifiedProperty()
Return the when modified property if there is one defined.
-
whenCreatedProperty
Property whenCreatedProperty()
Return the when created property if there is one defined.
-
expressionPath
ExpressionPath expressionPath(String path)
Return the ExpressionPath for a given property path.This can return a property or nested property path.
-
isValidExpression
boolean isValidExpression(String property)
Return true if the property is a valid known property or path for the given bean type.
-
isBeanCaching
boolean isBeanCaching()
Return true if bean caching is on for this bean type.
-
isQueryCaching
boolean isQueryCaching()
Return true if query caching is on for this bean type.
-
clearBeanCache
void clearBeanCache()
Clear the bean cache.
-
clearQueryCache
void clearQueryCache()
Clear the query cache.
-
isDocStoreOnly
boolean isDocStoreOnly()
Return true if the type is document store only.
-
baseTable
String baseTable()
Return the base table this bean type maps to.
-
createBean
T createBean()
Create a new instance of the bean.
-
id
Object id(Object bean)
Return the bean id. This is the same as getBeanId() but without the generic type.
-
persistController
BeanPersistController persistController()
Return the bean persist controller.
-
persistListener
BeanPersistListener persistListener()
Return the bean persist listener.
-
findController
BeanFindController findController()
Return the beanFinder. Usually null unless overriding the finder.
-
queryAdapter
BeanQueryAdapter queryAdapter()
Return the BeanQueryAdapter or null if none is defined.
-
idType
IdType idType()
Return the identity generation type.
-
isDocStoreMapped
boolean isDocStoreMapped()
Return true if this bean type has doc store backing.
-
docMapping
DocMapping docMapping()
Return the DocumentMapping for this bean type.This is the document structure and mapping options for how this bean type is mapped for the document store.
-
docStoreQueueId
String docStoreQueueId()
Return the doc store queueId for this bean type.
-
docStore
BeanDocType<T> docStore()
Return the doc store support for this bean type.\
-
addInheritanceWhere
void addInheritanceWhere(Query<?> query)
Add the discriminator value to the query if needed.
-
root
BeanType<?> root()
Return the root bean type for an inheritance hierarchy.
-
hasInheritance
boolean hasInheritance()
Return true if this bean type has an inheritance hierarchy.
-
isInheritanceRoot
boolean isInheritanceRoot()
Return true if this object is the root level object in its entity inheritance.
-
inheritanceChildren
List<BeanType<?>> inheritanceChildren()
Returns all direct children of this beantype
-
inheritanceParent
BeanType<?> inheritanceParent()
Returns the parent in inheritance hierarchy
-
visitAllInheritanceChildren
void visitAllInheritanceChildren(Consumer<BeanType<?>> visitor)
Visit all children recursively
-
discColumn
String discColumn()
Return the discriminator column.
-
-