Interface STreeType

All Known Implementing Classes:
BeanDescriptor

public interface STreeType
Bean type interface for Sql query tree.
  • 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

      String softDeletePredicate(String baseTableAlias)
      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

      EntityBean createEntityBean2(boolean readOnlyNoIntercept)
      Create a new entity bean instance with option for read only optimisation.
    • contextPutIfAbsent

      Object contextPutIfAbsent(PersistenceContext persistenceContext, Object id, EntityBean localBean)
      Put the entity bean into the persistence context.
    • postLoad

      void postLoad(Object localBean)
      Invoke any post load listeners.
    • baseTable

      String baseTable(SpiQuery.TemporalMode temporalMode)
      Return the base table to use given the temporalMode.
    • isEmbeddedPath

      boolean isEmbeddedPath(String propertyPath)
      Return true if the given path is an embedded bean.
    • findPropertyFromPath

      STreeProperty findPropertyFromPath(String property)
      Return the bean property traversing the object graph and taking into account inheritance.
    • findProperty

      STreeProperty findProperty(String propName)
      Find a known property.
    • findPropertyWithDynamic

      STreeProperty findPropertyWithDynamic(String baseName, String path)
      Find and return property allowing for dynamic formula properties.
    • extraJoin

      ExtraJoin extraJoin(String propertyPath)
      Return an extra join if the property path requires it.
    • inheritanceLoad

      void inheritanceLoad(SqlBeanLoad sqlBeanLoad, STreeProperty property, DbReadContext ctx)
      Load the property taking into account inheritance.
    • markAsDeleted

      void markAsDeleted(EntityBean bean)
      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

      Map<String,String> pathMap(String prefix)
      Return the "path map" to toMany or toOne properties using the given prefix.