Package net.pricefx.domain
Class CalculatedFieldSet
Object
DomainObject
PersistedObject
PartitionedObject
AbstractCalculable
CalculableObject
CalculatedFieldSet
- All Implemented Interfaces:
Calculable
,HasCalculableObjectItems
,JobNameProvider
,JobSettingsProvider
,Persistable
,UserGroupRestrictedObject
@Entity
public class CalculatedFieldSet
extends CalculableObject
implements UserGroupRestrictedObject, JobSettingsProvider
-
Nested Class Summary
Nested classes/interfaces inherited from class PersistedObject
PersistedObject.BatchDelete, PersistedObject.BulkloadFilterCheckCallback, PersistedObject.ComputedFieldMapping, PersistedObject.ComputedFields, PersistedObject.PersistedObjectMeta, PersistedObject.VirtualField, PersistedObject.VirtualFieldMapping, PersistedObject.VirtualSearchFields, PersistedObject.VirtualSortFields
-
Field Summary
Fields inherited from class AbstractCalculable
FIELD_CALCDATE, FIELD_CALCMESSAGES, FIELD_CALCSTARTDATE, FIELD_STATUS, MAX_CALCULATION_MESSAGE_THRESHOLD
Fields inherited from class PartitionedObject
FIELD_PARTITION, FIELD_PARTITIONID
Fields inherited from class PersistedObject
FIELD_CREATEDATE, FIELD_CREATEDBY, FIELD_DELETEDATE, FIELD_DELETEDBY, FIELD_ID, FIELD_ISDELETED, FIELD_LASTUPDATEDATE
Fields inherited from class DomainObject
DEFAULT_MAX_PACKET_SIZE
Fields inherited from interface UserGroupRestrictedObject
FIELD_USERGROUPEDIT, FIELD_USERGROUPVIEWDETAILS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCalculatedFieldSetConfiguration
JobStatusTracker.TrackerType
Class
<? extends ElementAttributeMeta> Class
<? extends PriceCalculableObjectItem> int
getShotgunThreshold
(PersistedObjectService objService, JobStatusTracker jst) boolean
int
jobSize
(PersistedObjectService objectService, JobStatusTracker jst, int runNumber) void
onDelete
(PersistedObjectService objService) Default does nothing.void
setCalculatedFieldSetConfiguration
(CalculatedFieldSetConfiguration config) void
setConfiguration
(String configuration) void
setNumberOfFailedItems
(Integer numberOfFailedItems) void
setRelativeTargetDateDays
(Integer relativeTargetDateDays) void
setUserGroupEdit
(String userGroup) void
setUserGroupViewDetails
(String userGroup) boolean
validate
(ValidationVisitor validationVisitor, PersistedObjectService objService) Override to implement per-object validation rulesMethods inherited from class CalculableObject
getEffectiveTargetDate, getKeepManualOverrides, getNumberOfItems, getWriteOnlyChangedItems, itemsStateChanged, setKeepManualOverrides, setNumberOfItems, setWriteOnlyChangedItems
Methods inherited from class AbstractCalculable
calculationDate, calculationStartDate, doHardDelete, getCalculationDate, getCalculationMessages, getCalculationStartDate, getJobName, getLabel, getLocale, getStatus, getTargetDate, setCalculationDate, setCalculationMessages, setCalculationMessages, setCalculationStartDate, setLabel, setLocale, setStatus, setTargetDate
Methods inherited from class PartitionedObject
addUniqueConstraint, getLoginNameByUserId, getPartition, setPartition, toString
Methods inherited from class PersistedObject
auditOperation, bumpVersion, canAdd, canDelete, canEdit, canEdit, canRead, createDate, entityIsSafeInserted, entityIsSafeInserted, findAnnotationRecursively, getBulkloadMap, getBusinessKey, getCreateDate, getCreatedBy, getDbColumnNameForField, getDefaultSortKey, getDeleteDate, getDeletedBy, getId, getLastUpdateBy, getLastUpdateDate, getSignificantFields, getTypeCode, getTypedId, getVersion, getVirtualFieldMappings, isAudited, isDeleted, isVirtualField, lastUpdateDate, notifyOnBusinessKeyChange, onBusinessKeyChange, onSavedOrUpdated, onSaveOrUpdate, setCreateDate, setCreateDateShouldBeIgnored, setCreateDateTime, setCreatedBy, setDeleted, setDeleteDate, setDeletedBy, setId, setLastUpdateBy, setLastUpdateDate, setLastUpdateDateTime, setTypedId, setVersion, userGroupEditBulkloadFilter, userGroupEditBulkloadFilter
Methods inherited from class DomainObject
deepCopy, getNewMidnightDate, getNewMidnightDateTime, isMidnight, isMidnight, jsonDeserialize, jsonDeserialize, jsonDeserialize, jsonDeserialize, jsonDeserialize, jsonDeserialize, jsonDeserialize, jsonDeserialize, jsonDeserialize, jsonDeserialize, jsonDeserialize, jsonDeserialize, jsonSerialize, jsonSerialize, jsonSerialize, jsonSerialize, jsonSerialize, jsonSerialize, jsonSerializedSizeOK, jsonSerializeToBytes, jsonSerializeToBytes, setToDayEnd, setToDayEnd, setToMidnight, setToMidnight, setToMidnightAsLocalDateTime, toPropertyMap
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface JobSettingsProvider
getAgentOption1
Methods inherited from interface Persistable
doHardDelete, getCreateDate, getCreatedBy, getDeleteDate, getDeletedBy, getId, getLastUpdateBy, getLastUpdateDate, getTypeCode, getTypedId, getVersion, isDeleted, setCreateDate, setCreatedBy, setDeleted, setDeleteDate, setDeletedBy, setId, setLastUpdateBy, setLastUpdateDate, setVersion
-
Constructor Details
-
CalculatedFieldSet
public CalculatedFieldSet()
-
-
Method Details
-
getConfiguration
-
setConfiguration
-
getRelativeTargetDateDays
-
setRelativeTargetDateDays
-
getNumberOfFailedItems
-
setNumberOfFailedItems
-
getCalculatedFieldSetConfiguration
public CalculatedFieldSetConfiguration getCalculatedFieldSetConfiguration() -
setCalculatedFieldSetConfiguration
public void setCalculatedFieldSetConfiguration(CalculatedFieldSetConfiguration config) -
getUserGroupEdit
- Specified by:
getUserGroupEdit
in interfaceUserGroupRestrictedObject
-
setUserGroupEdit
- Specified by:
setUserGroupEdit
in interfaceUserGroupRestrictedObject
-
getUserGroupViewDetails
- Specified by:
getUserGroupViewDetails
in interfaceUserGroupRestrictedObject
-
setUserGroupViewDetails
- Specified by:
setUserGroupViewDetails
in interfaceUserGroupRestrictedObject
-
validate
public boolean validate(ValidationVisitor validationVisitor, PersistedObjectService objService) Description copied from class:net.pricefx.domain.PersistedObject
Override to implement per-object validation rules- Specified by:
validate
in interfacePersistable
- Overrides:
validate
in classAbstractCalculable
- Parameters:
validationVisitor
- visitor object that receives validation error detailsobjService
- PersistedObjectService instance. May be null, so be cautious when requiring it
-
onDelete
public void onDelete(PersistedObjectService objService) Description copied from class:net.pricefx.domain.PersistedObject
Default does nothing. Method is called when object is about to be deleted Override point- Overrides:
onDelete
in classPersistedObject
-
getItemClass
- Specified by:
getItemClass
in interfaceHasCalculableObjectItems
-
getItemListFilterField
- Specified by:
getItemListFilterField
in interfaceHasCalculableObjectItems
-
getDefaultTrackerType
public JobStatusTracker.TrackerType getDefaultTrackerType()- Specified by:
getDefaultTrackerType
in classAbstractCalculable
-
getCalculationConcurrencyKey
- Overrides:
getCalculationConcurrencyKey
in classAbstractCalculable
-
getItemAttributeMetaClass
- Specified by:
getItemAttributeMetaClass
in interfaceHasCalculableObjectItems
-
getJobType
- Specified by:
getJobType
in interfaceJobSettingsProvider
-
isShotgunEnabled
public boolean isShotgunEnabled()- Specified by:
isShotgunEnabled
in interfaceJobSettingsProvider
-
getShotgunThreshold
public int getShotgunThreshold(PersistedObjectService objService, JobStatusTracker jst) - Specified by:
getShotgunThreshold
in interfaceJobSettingsProvider
-
jobSize
public int jobSize(PersistedObjectService objectService, JobStatusTracker jst, int runNumber) - Specified by:
jobSize
in interfaceJobSettingsProvider
-