public interface BeanType<T>
Information and methods on BeanDescriptors made available to plugins.
-
Method Summary
Modifier and TypeMethodDescriptionCollection
<? extends Property> Return all the properties for this bean type.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.void
Clear the bean cache.void
Clear the query cache.Create a new instance of the bean.expressionPath
(String path) Return the ExpressionPath for a given property path.Return the beanFinder.fullName()
Return the full name of the bean type.Return the bean id.Return the Id property.idType()
Return the identity generation type.boolean
Return true if bean caching is on for this bean type.boolean
Return true if the type is document store only.boolean
Return true if query caching is on for this bean type.boolean
isValidExpression
(String property) Return true if the property is a valid known property or path for the given bean type.name()
Return the short name of the bean type.Return the bean persist controller.Return the bean persist listener.Return the Property to read values from a bean.Return the BeanQueryAdapter or null if none is defined.void
Set the id value to the bean.type()
Return the class type this BeanDescriptor describes.Return the when created property if there is one defined.Return the when modified property if there is one defined.
-
Method Details
-
name
String name()Return the short name of the bean type. -
fullName
String fullName()Return the full name of the bean type. -
type
Return the class type this BeanDescriptor describes. -
beanTypeAtPath
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. -
property
Return the Property to read values from a bean. -
expressionPath
Return the ExpressionPath for a given property path.This can return a property or nested property path.
-
isValidExpression
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
Return the bean id. This is the same as getBeanId() but without the generic type. -
setId
Set the id value to the bean. -
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.
-