- All Known Implementing Classes:
BeanDescriptor
public interface STreeType
Bean type interface for Sql query tree.
-
Method Summary
Modifier and TypeMethodDescriptionbaseTable(SpiQuery.TemporalMode temporalMode) Return the base table to use given the temporalMode.contextPutIfAbsent(PersistenceContext persistenceContext, Object id, EntityBean localBean) Put the entity bean into the persistence context.Create a new entity bean instance.createEntityBean2(boolean readOnlyNoIntercept) Create a new entity bean instance with option for read only optimisation.Return an extra join if the property path requires it.findProperty(String propName) Find a known property.findPropertyFromPath(String property) Return the bean property traversing the object graph and taking into account inheritance.findPropertyWithDynamic(String baseName, String path) Find and return property allowing for dynamic formula properties.booleanhasId()Return true if the underlying type has an Id property.idBinder()Return the IdBinder for this type.voidinheritanceLoad(SqlBeanLoad sqlBeanLoad, STreeProperty property, DbReadContext ctx) Load the property taking into account inheritance.booleanisEmbeddedPath(String propertyPath) Return true if the given path is an embedded bean.booleanReturn true if the type uses history.booleanReturn true if the type is RawSql based.booleanReturn true if the type uses soft delete.voidmarkAsDeleted(EntityBean bean) Mark the bean as deleted by setting the softDelete property to true.name()Return the bean short name.Return the "path map" to toMany or toOne properties using the given prefix.voidInvoke any post load listeners.Return the scalar properties.Return the embedded bean properties.Return the associated many properties.propsOne()Return the associated one properties.softDeletePredicate(String baseTableAlias) Return the soft delete predicate using the given table alias.
-
Method Details
-
name
String name()Return the bean short name. -
hasId
boolean hasId()Return true if the underlying type has an Id property. -
isSoftDelete
boolean isSoftDelete()Return true if the type uses soft delete. -
isHistorySupport
boolean isHistorySupport()Return true if the type uses history. -
isRawSqlBased
boolean isRawSqlBased()Return true if the type is RawSql based. -
softDeletePredicate
Return the soft delete predicate using the given table alias. -
propsBaseScalar
STreeProperty[] propsBaseScalar()Return the scalar properties. -
propsEmbedded
STreePropertyAssoc[] propsEmbedded()Return the embedded bean properties. -
propsOne
STreePropertyAssocOne[] propsOne()Return the associated one properties. -
propsMany
STreePropertyAssocMany[] propsMany()Return the associated many properties. -
idBinder
IdBinder idBinder()Return the IdBinder for this type. -
createEntityBean
EntityBean createEntityBean()Create a new entity bean instance. -
createEntityBean2
Create a new entity bean instance with option for read only optimisation. -
contextPutIfAbsent
Put the entity bean into the persistence context. -
postLoad
Invoke any post load listeners. -
baseTable
Return the base table to use given the temporalMode. -
isEmbeddedPath
Return true if the given path is an embedded bean. -
findPropertyFromPath
Return the bean property traversing the object graph and taking into account inheritance. -
findProperty
Find a known property. -
findPropertyWithDynamic
Find and return property allowing for dynamic formula properties. -
extraJoin
Return an extra join if the property path requires it. -
inheritanceLoad
Load the property taking into account inheritance. -
markAsDeleted
Mark the bean as deleted by setting the softDelete property to true. This works also, if there is only a virtual softDelete property computed by a formula. If there is no soft delete property, it sets the lazyLoadFailure flag in EBI. -
pathMap
Return the "path map" to toMany or toOne properties using the given prefix.
-