Package io.ebeaninternal.server.deploy
Class DynamicPropertyAggregationFormulaMTO
- java.lang.Object
-
- io.ebeaninternal.server.deploy.DynamicPropertyAggregationFormulaMTO
-
- All Implemented Interfaces:
STreeProperty
,ScalarDataReader<Object>
public class DynamicPropertyAggregationFormulaMTO extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendFrom(DbSqlContext ctx, SqlJoinType joinType)
Append to the from clause.void
appendSelect(DbSqlContext ctx, boolean subQuery)
Append to the select clause.void
buildRawSqlSelectChain(String prefix, List<String> selectChain)
For RawSql build the select chain.String
getElPrefix()
Return the Expression language prefix (join path).String
getEncryptKeyAsString()
Return the encryption key as a string value (when the property is encrypted).String
getFullBeanName()
Return the full property name (for error messages).String
getName()
Return the property name.ScalarType<?>
getScalarType()
Return the underlying scalar type for the property (for findSingleAttribute).boolean
isAggregation()
Return true if the property is an aggregation.boolean
isAggregationManyToOne()
Return true if the property is an aggregation on a ManyToOne.boolean
isEmbedded()
Return true if the property is an embedded type.boolean
isFormula()
Return true if the property is a formula.boolean
isId()
Return true if the property is the Id.void
load(SqlBeanLoad sqlBeanLoad)
Load into the bean (from the DataReader/ResultSet).void
loadIgnore(DbReadContext ctx)
Ignore the property (moving the column index position without reading).Object
read(DataReader dataReader)
Read and return the appropriate value from the dataReader.String
toString()
-
-
-
Method Detail
-
isAggregationManyToOne
public boolean isAggregationManyToOne()
Description copied from interface:STreeProperty
Return true if the property is an aggregation on a ManyToOne.
-
load
public void load(SqlBeanLoad sqlBeanLoad)
Description copied from interface:STreeProperty
Load into the bean (from the DataReader/ResultSet).- Specified by:
load
in interfaceSTreeProperty
-
isAggregation
public boolean isAggregation()
Description copied from interface:STreeProperty
Return true if the property is an aggregation.
-
read
public Object read(DataReader dataReader)
Description copied from interface:ScalarDataReader
Read and return the appropriate value from the dataReader.
-
appendSelect
public void appendSelect(DbSqlContext ctx, boolean subQuery)
Description copied from interface:STreeProperty
Append to the select clause.
-
getName
public String getName()
Description copied from interface:STreeProperty
Return the property name.- Specified by:
getName
in interfaceSTreeProperty
-
getFullBeanName
public String getFullBeanName()
Description copied from interface:STreeProperty
Return the full property name (for error messages).- Specified by:
getFullBeanName
in interfaceSTreeProperty
-
isId
public boolean isId()
Description copied from interface:STreeProperty
Return true if the property is the Id.- Specified by:
isId
in interfaceSTreeProperty
-
isEmbedded
public boolean isEmbedded()
Description copied from interface:STreeProperty
Return true if the property is an embedded type.- Specified by:
isEmbedded
in interfaceSTreeProperty
-
isFormula
public boolean isFormula()
Description copied from interface:STreeProperty
Return true if the property is a formula.- Specified by:
isFormula
in interfaceSTreeProperty
-
getElPrefix
public String getElPrefix()
Description copied from interface:STreeProperty
Return the Expression language prefix (join path).- Specified by:
getElPrefix
in interfaceSTreeProperty
-
getScalarType
public ScalarType<?> getScalarType()
Description copied from interface:STreeProperty
Return the underlying scalar type for the property (for findSingleAttribute).- Specified by:
getScalarType
in interfaceSTreeProperty
-
buildRawSqlSelectChain
public void buildRawSqlSelectChain(String prefix, List<String> selectChain)
Description copied from interface:STreeProperty
For RawSql build the select chain.- Specified by:
buildRawSqlSelectChain
in interfaceSTreeProperty
-
loadIgnore
public void loadIgnore(DbReadContext ctx)
Description copied from interface:STreeProperty
Ignore the property (moving the column index position without reading).- Specified by:
loadIgnore
in interfaceSTreeProperty
-
appendFrom
public void appendFrom(DbSqlContext ctx, SqlJoinType joinType)
Description copied from interface:STreeProperty
Append to the from clause.- Specified by:
appendFrom
in interfaceSTreeProperty
-
getEncryptKeyAsString
public String getEncryptKeyAsString()
Description copied from interface:STreeProperty
Return the encryption key as a string value (when the property is encrypted).- Specified by:
getEncryptKeyAsString
in interfaceSTreeProperty
-
-