Class ExpressionProperty
- java.lang.Object
-
- org.iplass.mtp.entity.definition.PropertyDefinition
-
- org.iplass.mtp.entity.definition.properties.ExpressionProperty
-
- All Implemented Interfaces:
java.io.Serializable
public class ExpressionProperty extends PropertyDefinition
数式により、プロパティの演算結果を返す、仮想的なプロパティを表す定義。 数式はEQL形式(ValueExpressionとして有効な式)にて記述。 自Entityの属性、関連定義されたEntityの属性を参照可能。 また、相関サブクエリの指定も可能。- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.iplass.mtp.entity.definition.PropertyDefinition
MULTIPLICITY_INFINITE
-
-
Constructor Summary
Constructors Constructor Description ExpressionProperty()ExpressionProperty(java.lang.String name)ExpressionProperty(java.lang.String name, java.lang.String expression)ExpressionProperty(java.lang.String name, java.lang.String expression, PropertyDefinitionType resultType)
-
Method Summary
Modifier and Type Method Description java.lang.StringgetExpression()java.lang.Class<?>getJavaType()PropertyDefinitionTypegetResultType()PropertyDefinitiongetResultTypeSpec()PropertyDefinitionTypegetType()enumでPropertyの型を返す。 switch/case文で利用可能なように。voidsetExpression(java.lang.String expression)voidsetResultType(PropertyDefinitionType resultType)voidsetResultTypeSpec(PropertyDefinition resultTypeSpec)-
Methods inherited from class org.iplass.mtp.entity.definition.PropertyDefinition
addLocalizedDisplayName, getDefaultValue, getDescription, getDisplayName, getIndexType, getLocalizedDisplayNameList, getMultiplicity, getName, getValidations, isInherited, isReadOnly, isUpdatable, setDefaultValue, setDescription, setDisplayName, setIndexType, setInherited, setLocalizedDisplayNameList, setMultiplicity, setName, setReadOnly, setUpdatable, setValidations
-
-
-
-
Constructor Detail
-
ExpressionProperty
public ExpressionProperty()
-
ExpressionProperty
public ExpressionProperty(java.lang.String name)
-
ExpressionProperty
public ExpressionProperty(java.lang.String name, java.lang.String expression)
-
ExpressionProperty
public ExpressionProperty(java.lang.String name, java.lang.String expression, PropertyDefinitionType resultType)
-
-
Method Detail
-
getResultTypeSpec
public PropertyDefinition getResultTypeSpec()
-
setResultTypeSpec
public void setResultTypeSpec(PropertyDefinition resultTypeSpec)
-
getResultType
public PropertyDefinitionType getResultType()
-
setResultType
public void setResultType(PropertyDefinitionType resultType)
-
getExpression
public java.lang.String getExpression()
-
setExpression
public void setExpression(java.lang.String expression)
-
getJavaType
public java.lang.Class<?> getJavaType()
- Specified by:
getJavaTypein classPropertyDefinition
-
getType
public PropertyDefinitionType getType()
Description copied from class:PropertyDefinitionenumでPropertyの型を返す。 switch/case文で利用可能なように。- Specified by:
getTypein classPropertyDefinition- Returns:
-
-