Package com.im.df.impl.db.field
Class CalculatedField
- java.lang.Object
-
- com.chemaxon.dif.db.api.item.DBItemAbstractImpl
-
- com.chemaxon.dif.db.api.field.FieldAbstract
-
- com.chemaxon.dif.db.api.field.ColumnlessFieldAbstractImpl
-
- com.im.df.impl.db.field.CalculatedField
-
- All Implemented Interfaces:
com.im.df.api.capabilities.DFFieldCalcCapability,com.im.df.api.capabilities.DFFieldCalculatedCapability,com.im.df.api.capabilities.InfoCapability,com.im.df.api.ddl.DFCapability,com.im.df.api.ddl.DFField,com.im.df.api.ddl.DFItem,com.im.df.api.ddl.DFUserItem,com.im.df.api.support.PropertiesEditingConfigurable,com.im.df.api.support.PropertiesEditingConfigurable.Extra
public final class CalculatedField extends com.chemaxon.dif.db.api.field.ColumnlessFieldAbstractImpl implements com.im.df.api.capabilities.DFFieldCalculatedCapability, com.im.df.api.ddl.DFUserItem- Author:
- pzajac
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.chemaxon.dif.db.api.field.FieldAbstract
com.chemaxon.dif.db.api.field.FieldAbstract.FUpdater
-
Nested classes/interfaces inherited from class com.chemaxon.dif.db.api.item.DBItemAbstractImpl
com.chemaxon.dif.db.api.item.DBItemAbstractImpl.AbstractUpdater
-
Nested classes/interfaces inherited from interface com.im.df.api.ddl.DFField
com.im.df.api.ddl.DFField.Required
-
-
Field Summary
Fields Modifier and Type Field Description static StringGROOVY_LANGGroovy script constant.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringcheckReturnValue(com.im.df.api.util.CalculatedReturnType retType, Object val)protected com.chemaxon.dif.db.api.field.ColumnlessFieldDataTypeAbstractImplcreateFieldType(String type, com.im.df.api.ddl.DFEntity entity, List<com.im.ijcs.api.ddl.dto.PropInfo> xAttrs)static CalculatedFieldcreateInstance(com.chemaxon.dif.db.api.entity.DBEntityAbstractImpl parent, com.im.ijcs.api.ddl.dto.FieldInfo dto, com.im.commons.progress.DFEnvironmentRW env)static CalculatedFieldcreateInstance(com.im.df.api.ddl.DFEntity parent, String id, String name, String desc, String type, int tableIndex, com.im.commons.progress.DFEnvironmentRW rw, List<com.im.ijcs.api.ddl.dto.PropInfo> xAttrs, String owner, int sharing, boolean iAmOwner)com.chemaxon.dif.db.api.item.DBItemAbstractImpl.AbstractUpdatercreateUpdater()com.im.df.api.support.CalculablegetCalcTemplate()com.im.df.api.util.CalculatedReturnTypegetCalculatedReturnType()com.im.df.api.support.DFDataConvertorgetConvertor()ClassgetFieldClass()com.im.df.api.ddl.DFField[]getParams()static com.im.df.api.util.CalculatedReturnTypegetReturnTypeFromType(String type)com.im.df.api.support.ScriptablegetScriptable()com.im.df.api.capabilities.DFFieldDataTypeCapabilitygetTypeCapability()com.im.ijcs.api.ddl.dto.FieldInfogetXmlBean()voidhandleChanges(com.im.ijcs.api.ddl.dto.ItemPersistentInfo nue)voidinitCalcTemplate(com.im.df.api.support.CalculableGroovyTemplate template)booleanisQueryable()booleanisSortable()voidsetCalcTemplate(com.im.df.api.support.Calculable template, com.im.commons.progress.DFEnvironmentRW env)-
Methods inherited from class com.chemaxon.dif.db.api.field.ColumnlessFieldAbstractImpl
getDefaultValue, getEntity, getEntityImpl, getHandle, getNameValidator, getRequired, getSchema, getSchemaImpl, getTooltip, getType, getValidRequiredValues, init, initType, isDistinctValues, removeField, setDefaultValue, setDistinctValues, setRequired, updateFieldType
-
Methods inherited from class com.chemaxon.dif.db.api.field.FieldAbstract
getXAttributes, putXAttribute
-
Methods inherited from class com.chemaxon.dif.db.api.item.DBItemAbstractImpl
activateItem, addCapabilitiesFromCapabilityProviders, addCapability, addCommaSeparatedPropsForToString, addPropertyChangeListener, doGetHandle, ensureValid, equals, findOwner, firePropertyChange, firePropertyChange, getCapabilities, getDescription, getId, getName, getXAttributesImpl, handleOwner, handleUpdateDescription, handleUpdateName, handleXAttrs, hashCode, initXAttributes, invalidate, invalidateSubitems, isActive, isCapabilityProviderAllowed, isDifferent, isPropertyEditable, isValid, removeCapability, removePropertyChangeListener, replaceCapability, setDescription, setName, setPropertyEditable, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.im.df.api.ddl.DFItem
addPropertyChangeListener, getCapabilities, getDescription, getId, getName, getType, isValid, removePropertyChangeListener, setDescription, setName
-
-
-
-
Field Detail
-
GROOVY_LANG
public static final String GROOVY_LANG
Groovy script constant. ??- See Also:
- Constant Field Values
-
-
Method Detail
-
createFieldType
protected com.chemaxon.dif.db.api.field.ColumnlessFieldDataTypeAbstractImpl createFieldType(String type, com.im.df.api.ddl.DFEntity entity, List<com.im.ijcs.api.ddl.dto.PropInfo> xAttrs)
- Specified by:
createFieldTypein classcom.chemaxon.dif.db.api.field.ColumnlessFieldAbstractImpl
-
getXmlBean
public com.im.ijcs.api.ddl.dto.FieldInfo getXmlBean()
- Overrides:
getXmlBeanin classcom.chemaxon.dif.db.api.field.ColumnlessFieldAbstractImpl
-
getReturnTypeFromType
public static com.im.df.api.util.CalculatedReturnType getReturnTypeFromType(String type)
-
checkReturnValue
public static String checkReturnValue(com.im.df.api.util.CalculatedReturnType retType, Object val)
-
getCalculatedReturnType
public com.im.df.api.util.CalculatedReturnType getCalculatedReturnType()
-
initCalcTemplate
public void initCalcTemplate(com.im.df.api.support.CalculableGroovyTemplate template)
-
handleChanges
public void handleChanges(com.im.ijcs.api.ddl.dto.ItemPersistentInfo nue)
- Overrides:
handleChangesin classcom.chemaxon.dif.db.api.item.DBItemAbstractImpl
-
createInstance
public static CalculatedField createInstance(com.im.df.api.ddl.DFEntity parent, String id, String name, String desc, String type, int tableIndex, com.im.commons.progress.DFEnvironmentRW rw, List<com.im.ijcs.api.ddl.dto.PropInfo> xAttrs, String owner, int sharing, boolean iAmOwner)
-
createInstance
public static CalculatedField createInstance(com.chemaxon.dif.db.api.entity.DBEntityAbstractImpl parent, com.im.ijcs.api.ddl.dto.FieldInfo dto, com.im.commons.progress.DFEnvironmentRW env)
-
getParams
public com.im.df.api.ddl.DFField[] getParams()
- Returns:
- fields used in
CalculableGroovyTemplatescript which determines this calculated field value.
-
getScriptable
public com.im.df.api.support.Scriptable getScriptable()
-
getTypeCapability
public com.im.df.api.capabilities.DFFieldDataTypeCapability getTypeCapability()
- Specified by:
getTypeCapabilityin interfacecom.im.df.api.capabilities.DFFieldCalculatedCapability
-
getFieldClass
public Class getFieldClass()
- Specified by:
getFieldClassin interfacecom.im.df.api.ddl.DFField- Overrides:
getFieldClassin classcom.chemaxon.dif.db.api.field.ColumnlessFieldAbstractImpl
-
getConvertor
public com.im.df.api.support.DFDataConvertor getConvertor()
- Specified by:
getConvertorin interfacecom.im.df.api.ddl.DFField- Overrides:
getConvertorin classcom.chemaxon.dif.db.api.field.ColumnlessFieldAbstractImpl
-
isSortable
public boolean isSortable()
- Specified by:
isSortablein interfacecom.im.df.api.ddl.DFField- Overrides:
isSortablein classcom.chemaxon.dif.db.api.field.ColumnlessFieldAbstractImpl
-
isQueryable
public boolean isQueryable()
Calculated fields are queryable.
- Specified by:
isQueryablein interfacecom.im.df.api.ddl.DFField- Overrides:
isQueryablein classcom.chemaxon.dif.db.api.field.ColumnlessFieldAbstractImpl- Returns:
- true
- Since:
- 14.9.8
-
getCalcTemplate
public com.im.df.api.support.Calculable getCalcTemplate()
- Specified by:
getCalcTemplatein interfacecom.im.df.api.capabilities.DFFieldCalcCapability
-
setCalcTemplate
public void setCalcTemplate(com.im.df.api.support.Calculable template, com.im.commons.progress.DFEnvironmentRW env)- Specified by:
setCalcTemplatein interfacecom.im.df.api.capabilities.DFFieldCalcCapability
-
createUpdater
public com.chemaxon.dif.db.api.item.DBItemAbstractImpl.AbstractUpdater createUpdater()
- Specified by:
createUpdaterin classcom.chemaxon.dif.db.api.item.DBItemAbstractImpl
-
-