Interface STreeProperty

All Superinterfaces:
io.ebean.core.type.ScalarDataReader<Object>
All Known Subinterfaces:
STreePropertyAssoc, STreePropertyAssocMany, STreePropertyAssocOne
All Known Implementing Classes:
BeanProperty, BeanPropertyAssoc, BeanPropertyAssocMany, BeanPropertyAssocOne, BeanPropertyIdClass, BeanPropertyJsonBasic, BeanPropertyJsonMapper, BeanPropertyOrderColumn, BeanPropertySimpleCollection, DynamicPropertyAggregationFormulaMTO

public interface STreeProperty extends io.ebean.core.type.ScalarDataReader<Object>
A property in the SQL Tree.

A BeanProperty or a dynamically created property based on formula.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    appendFrom(DbSqlContext ctx, SqlJoinType joinType, String manyWhere)
    Append to the from clause.
    default void
    appendGroupBy(DbSqlContext ctx, boolean subQuery)
    Append to group by.
    void
    appendSelect(DbSqlContext ctx, boolean subQuery)
    Append to the select clause.
    void
    buildRawSqlSelectChain(String prefix, List<String> selectChain)
    For RawSql build the select chain.
    Return the Expression language prefix (join path).
    Return the encryption key as a string value (when the property is encrypted).
    default void
    extraIncludes(Set<String> predicateIncludes)
     
    Return the full property name (for error messages).
    boolean
    Return true if the property is an aggregation.
    default boolean
    Return true if the property is an aggregation on a ManyToOne.
    boolean
    Return true if the property is an embedded type.
    boolean
    Return true if the property is a formula.
    boolean
    Return true if the property is the Id.
    boolean
    Returns true, if this is a lob property from db-perspective.
    void
    load(SqlBeanLoad sqlBeanLoad)
    Load into the bean (from the DataReader/ResultSet).
    void
    Ignore the property (moving the column index position without reading).
    Return the property name.
    io.ebean.core.type.ScalarType<?>
    Return the underlying scalar type for the property (for findSingleAttribute).

    Methods inherited from interface io.ebean.core.type.ScalarDataReader

    read
  • Method Details

    • name

      String name()
      Return the property name.
    • fullName

      String fullName()
      Return the full property name (for error messages).
    • isId

      boolean isId()
      Return true if the property is the Id.
    • isLobForPlatform

      boolean isLobForPlatform()
      Returns true, if this is a lob property from db-perspective.
    • isEmbedded

      boolean isEmbedded()
      Return true if the property is an embedded type.
    • isAggregation

      boolean isAggregation()
      Return true if the property is an aggregation.
    • isAggregationManyToOne

      default boolean isAggregationManyToOne()
      Return true if the property is an aggregation on a ManyToOne.
    • isFormula

      boolean isFormula()
      Return true if the property is a formula.
    • encryptKeyAsString

      String encryptKeyAsString()
      Return the encryption key as a string value (when the property is encrypted).
    • elPrefix

      String elPrefix()
      Return the Expression language prefix (join path).
    • scalarType

      io.ebean.core.type.ScalarType<?> scalarType()
      Return the underlying scalar type for the property (for findSingleAttribute).
    • buildRawSqlSelectChain

      void buildRawSqlSelectChain(String prefix, List<String> selectChain)
      For RawSql build the select chain.
    • load

      void load(SqlBeanLoad sqlBeanLoad)
      Load into the bean (from the DataReader/ResultSet).
    • loadIgnore

      void loadIgnore(DbReadContext ctx)
      Ignore the property (moving the column index position without reading).
    • appendSelect

      void appendSelect(DbSqlContext ctx, boolean subQuery)
      Append to the select clause.
    • appendGroupBy

      default void appendGroupBy(DbSqlContext ctx, boolean subQuery)
      Append to group by.
    • appendFrom

      void appendFrom(DbSqlContext ctx, SqlJoinType joinType, String manyWhere)
      Append to the from clause.
    • extraIncludes

      default void extraIncludes(Set<String> predicateIncludes)