Package net.pricefx.domain
Class Simulation
Object
DomainObject
PersistedObject
PartitionedObject
AbstractCalculable
CalculableObject
MatrixableCalculableObject
Simulation
- All Implemented Interfaces:
Calculable,HasCalculableObjectItems,JobNameProvider,JobSettingsProvider,Persistable,UserGroupRestrictedObject
@Entity
public class Simulation
extends MatrixableCalculableObject
implements UserGroupRestrictedObject, JobSettingsProvider
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class MatrixableCalculableObject
MatrixableCalculableObject.ListTypeNested classes/interfaces inherited from class PersistedObject
PersistedObject.BatchDelete, PersistedObject.BulkloadFilterCheckCallback, PersistedObject.ComputedFieldMapping, PersistedObject.ComputedFields, PersistedObject.ImportManagerEnabled, PersistedObject.PersistedObjectMeta, PersistedObject.VirtualField, PersistedObject.VirtualFieldMapping, PersistedObject.VirtualFields, PersistedObject.VirtualSearchFields, PersistedObject.VirtualSortFields -
Field Summary
Fields inherited from class AbstractCalculable
FIELD_CALCDATE, FIELD_CALCMESSAGES, FIELD_CALCSTARTDATE, FIELD_STATUS, MAX_CALCULATION_MESSAGE_THRESHOLDFields inherited from class PartitionedObject
FIELD_PARTITION, FIELD_PARTITIONID, PARTITION_FILTER_NAME, PARTITION_FILTER_PARAMFields inherited from class PersistedObject
FIELD_CREATEDATE, FIELD_CREATEDBY, FIELD_DELETEDATE, FIELD_DELETEDBY, FIELD_ID, FIELD_ISDELETED, FIELD_LASTUPDATEBY, FIELD_LASTUPDATEDATE, FIELD_VERSIONFields inherited from class DomainObject
DEFAULT_MAX_PACKET_SIZEFields inherited from interface UserGroupRestrictedObject
FIELD_USERGROUPEDIT, FIELD_USERGROUPVIEWDETAILS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanOverride to define if an object instance should be really deleted (vs just marked as deleted) Default: soft-deleteMatrixableCalculableObject.ListTypeJobStatusTracker.TrackerTypeClass<? extends ElementAttributeMeta> Class<? extends AbstractSimulationItem> static Class<? extends AbstractSimulationItem> getItemClassS(MatrixableCalculableObject.ListType type) static StringMatrixableCalculableObject.ListTypeintgetShotgunThreshold(PersistedObjectService objService, JobStatusTracker jst) booleanbooleanisMatrix()booleanbooleanintjobSize(PersistedObjectService objectService, JobStatusTracker tracker, int runNumber) voidvoidsetBaseCOType(MatrixableCalculableObject.ListType baseCOType) voidsetBasePriceGridId(Long basePriceGridId) voidsetBasePricelistId(Long basePricelistId) voidsetCalculatedBaseTypedId(String calculatedBaseTypedId) voidsetIgnoreSecKeyFiltering(Boolean ignoreSecKeyFiltering) voidsetShotgunModeEnabled(Boolean shotgunModeEnabled) voidsetSimulationSet(String simulationSet) voidsetUsedSimulationFormulas(Set<Long> usedSimulationFormulas) voidsetUsedSimulationLookups(Set<Long> usedSimulationLookups) voidsetUseFilterCriteria(Boolean useFilterCriteria) voidsetUserGroupEdit(String userGroup) voidsetUserGroupViewDetails(String userGroup) booleanvalidate(ValidationVisitor validationVisitor, PersistedObjectService objService) Override to implement per-object validation rulesMethods inherited from class MatrixableCalculableObject
anyToRecalculationMethods inherited from class CalculableObject
getEffectiveTargetDate, getKeepManualOverrides, getNumberOfItems, getWriteOnlyChangedItems, itemsStateChanged, setKeepManualOverrides, setNumberOfItems, setWriteOnlyChangedItemsMethods inherited from class AbstractCalculable
calculationDate, calculationStartDate, getCalculationConcurrencyKey, getCalculationDate, getCalculationMessages, getCalculationStartDate, getJobName, getLabel, getLocale, getStatus, getTargetDate, isAnonymousCalculable, setCalculationDate, setCalculationMessages, setCalculationMessages, setCalculationStartDate, setLabel, setLocale, setStatus, setTargetDateMethods inherited from class PartitionedObject
addUniqueConstraint, getLoginNameByUserId, getPartition, setPartition, toStringMethods inherited from class PersistedObject
auditOperation, bumpVersion, canAdd, canDelete, canEdit, canEdit, canRead, createDate, entityIsSafeInserted, entityIsSafeInserted, getBulkloadMap, getBusinessKey, getCreateDate, getCreatedBy, getDbColumnNameForField, getDeleteDate, getDeletedBy, getId, getLastUpdateBy, getLastUpdateDate, getSensitiveFields, getSignificantFields, getTypeCode, getTypedId, getVersion, getVirtualSearchFieldMappings, getVirtualSortFieldMappings, isAudited, isDeleted, isVirtualSearchField, lastUpdateDate, notifyOnBusinessKeyChange, onBusinessKeyChange, onDelete, onRefreshed, onSavedOrUpdated, onSaveOrUpdate, setCreateDate, setCreateDateShouldBeIgnored, setCreateDateTime, setCreatedBy, setDeleted, setDeleteDate, setDeletedBy, setId, setLastUpdateBy, setLastUpdateDate, setLastUpdateDateTime, setTypedId, setVersion, userGroupEditBulkloadFilter, userGroupEditBulkloadFilterMethods 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, truncatedToStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface JobSettingsProvider
getAgentOption1Methods inherited from interface Persistable
getCreateDate, getCreatedBy, getDeleteDate, getDeletedBy, getId, getLastUpdateBy, getLastUpdateDate, getTypeCode, getTypedId, getVersion, isDeleted, setCreateDate, setCreatedBy, setDeleted, setDeleteDate, setDeletedBy, setId, setLastUpdateBy, setLastUpdateDate, setVersion
-
Constructor Details
-
Simulation
public Simulation()
-
-
Method Details
-
getBasePricelistId
-
getBasePriceGridId
-
setBasePriceGridId
-
setBasePricelistId
-
getBaseCO
-
setBaseCO
-
getBaseCOType
public MatrixableCalculableObject.ListType getBaseCOType() -
setBaseCOType
public void setBaseCOType(MatrixableCalculableObject.ListType baseCOType) -
baseCalculableType
-
getListType
public MatrixableCalculableObject.ListType getListType()- Overrides:
getListTypein classMatrixableCalculableObject
-
getCalculatedBaseTypedId
-
setCalculatedBaseTypedId
-
getSimulationSet
-
setSimulationSet
-
getUsedSimulationFormulas
-
setUsedSimulationFormulas
-
getUsedSimulationLookups
-
setUsedSimulationLookups
-
getUseFilterCriteria
public boolean getUseFilterCriteria() -
setUseFilterCriteria
-
isShotgunModeEnabled
public boolean isShotgunModeEnabled() -
setShotgunModeEnabled
-
getUserGroupEdit
- Specified by:
getUserGroupEditin interfaceUserGroupRestrictedObject
-
setUserGroupEdit
- Specified by:
setUserGroupEditin interfaceUserGroupRestrictedObject
-
getUserGroupViewDetails
- Specified by:
getUserGroupViewDetailsin interfaceUserGroupRestrictedObject
-
setUserGroupViewDetails
- Specified by:
setUserGroupViewDetailsin interfaceUserGroupRestrictedObject
-
getIgnoreSecKeyFiltering
-
setIgnoreSecKeyFiltering
-
isMatrix
public boolean isMatrix()- Overrides:
isMatrixin classMatrixableCalculableObject
-
validate
public boolean validate(ValidationVisitor validationVisitor, PersistedObjectService objService) Description copied from class:net.pricefx.domain.PersistedObjectOverride to implement per-object validation rules- Specified by:
validatein interfacePersistable- Overrides:
validatein classAbstractCalculable- Parameters:
validationVisitor- visitor object that receives validation error detailsobjService- PersistedObjectService instance. May be null, so be cautious when requiring it
-
getItemClass
- Specified by:
getItemClassin interfaceHasCalculableObjectItems
-
getItemClassS
public static Class<? extends AbstractSimulationItem> getItemClassS(MatrixableCalculableObject.ListType type) -
getItemListFilterField
- Specified by:
getItemListFilterFieldin interfaceHasCalculableObjectItems
-
getItemListFilterFieldS
-
getItemAttributeMetaClass
- Specified by:
getItemAttributeMetaClassin interfaceHasCalculableObjectItems
-
getDefaultTrackerType
public JobStatusTracker.TrackerType getDefaultTrackerType()- Specified by:
getDefaultTrackerTypein classAbstractCalculable
-
doHardDelete
public boolean doHardDelete()Description copied from class:net.pricefx.domain.PersistedObjectOverride to define if an object instance should be really deleted (vs just marked as deleted) Default: soft-delete- Specified by:
doHardDeletein interfacePersistable- Overrides:
doHardDeletein classAbstractCalculable
-
getJobType
- Specified by:
getJobTypein interfaceJobSettingsProvider
-
isShotgunEnabled
public boolean isShotgunEnabled()- Specified by:
isShotgunEnabledin interfaceJobSettingsProvider
-
getShotgunThreshold
public int getShotgunThreshold(PersistedObjectService objService, JobStatusTracker jst) - Specified by:
getShotgunThresholdin interfaceJobSettingsProvider
-
jobSize
public int jobSize(PersistedObjectService objectService, JobStatusTracker tracker, int runNumber) - Specified by:
jobSizein interfaceJobSettingsProvider
-