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 Classes
    Modifier and Type
    Class
    Description
    static enum 
     

    Nested classes/interfaces inherited from class MatrixableCalculableObject

    MatrixableCalculableObject.ListType

    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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
    Override to define if an object instance should be really deleted (vs just marked as deleted) Default: soft-delete
     
    MatrixableCalculableObject.ListType
     
     
     
     
    JobStatusTracker.TrackerType
     
     
    Class<? extends ElementAttributeMeta>
     
    Class<? extends AbstractSimulationItem>
     
    static Class<? extends AbstractSimulationItem>
    getItemClassS(MatrixableCalculableObject.ListType type)
     
     
    static String
     
     
    MatrixableCalculableObject.ListType
     
    int
    getShotgunThreshold(PersistedObjectService objService, JobStatusTracker jst)
     
     
     
     
    boolean
     
     
     
    boolean
     
    boolean
     
    boolean
     
    int
    jobSize(PersistedObjectService objectService, JobStatusTracker tracker, int runNumber)
     
    void
    setBaseCO(String baseCO)
     
    void
    setBaseCOType(MatrixableCalculableObject.ListType baseCOType)
     
    void
    setBasePriceGridId(Long basePriceGridId)
     
    void
    setBasePricelistId(Long basePricelistId)
     
    void
    setCalculatedBaseTypedId(String calculatedBaseTypedId)
     
    void
    setIgnoreSecKeyFiltering(Boolean ignoreSecKeyFiltering)
     
    void
    setShotgunModeEnabled(Boolean shotgunModeEnabled)
     
    void
    setSimulationSet(String simulationSet)
     
    void
    setUsedSimulationFormulas(Set<Long> usedSimulationFormulas)
     
    void
    setUsedSimulationLookups(Set<Long> usedSimulationLookups)
     
    void
    setUseFilterCriteria(Boolean useFilterCriteria)
     
    void
     
    void
     
    boolean
    validate(ValidationVisitor validationVisitor, PersistedObjectService objService)
    Override to implement per-object validation rules

    Methods inherited from class MatrixableCalculableObject

    anyToRecalculation

    Methods inherited from class CalculableObject

    getEffectiveTargetDate, getKeepManualOverrides, getNumberOfItems, getWriteOnlyChangedItems, itemsStateChanged, setKeepManualOverrides, setNumberOfItems, setWriteOnlyChangedItems

    Methods inherited from class AbstractCalculable

    calculationDate, calculationStartDate, getCalculationConcurrencyKey, 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, onDelete, 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

    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

      public Long getBasePricelistId()
    • getBasePriceGridId

      public Long getBasePriceGridId()
    • setBasePriceGridId

      public void setBasePriceGridId(Long basePriceGridId)
    • setBasePricelistId

      public void setBasePricelistId(Long basePricelistId)
    • getBaseCO

      public String getBaseCO()
    • setBaseCO

      public void setBaseCO(String baseCO)
    • getBaseCOType

      public MatrixableCalculableObject.ListType getBaseCOType()
    • setBaseCOType

      public void setBaseCOType(MatrixableCalculableObject.ListType baseCOType)
    • baseCalculableType

      public Simulation.SimulationType baseCalculableType()
    • getListType

      public MatrixableCalculableObject.ListType getListType()
      Overrides:
      getListType in class MatrixableCalculableObject
    • getCalculatedBaseTypedId

      public String getCalculatedBaseTypedId()
    • setCalculatedBaseTypedId

      public void setCalculatedBaseTypedId(String calculatedBaseTypedId)
    • getSimulationSet

      public String getSimulationSet()
    • setSimulationSet

      public void setSimulationSet(String simulationSet)
    • getUsedSimulationFormulas

      public Set<Long> getUsedSimulationFormulas()
    • setUsedSimulationFormulas

      public void setUsedSimulationFormulas(Set<Long> usedSimulationFormulas)
    • getUsedSimulationLookups

      public Set<Long> getUsedSimulationLookups()
    • setUsedSimulationLookups

      public void setUsedSimulationLookups(Set<Long> usedSimulationLookups)
    • getUseFilterCriteria

      public boolean getUseFilterCriteria()
    • setUseFilterCriteria

      public void setUseFilterCriteria(Boolean useFilterCriteria)
    • isShotgunModeEnabled

      public boolean isShotgunModeEnabled()
    • setShotgunModeEnabled

      public void setShotgunModeEnabled(Boolean shotgunModeEnabled)
    • getUserGroupEdit

      public String getUserGroupEdit()
      Specified by:
      getUserGroupEdit in interface UserGroupRestrictedObject
    • setUserGroupEdit

      public void setUserGroupEdit(String userGroup)
      Specified by:
      setUserGroupEdit in interface UserGroupRestrictedObject
    • getUserGroupViewDetails

      public String getUserGroupViewDetails()
      Specified by:
      getUserGroupViewDetails in interface UserGroupRestrictedObject
    • setUserGroupViewDetails

      public void setUserGroupViewDetails(String userGroup)
      Specified by:
      setUserGroupViewDetails in interface UserGroupRestrictedObject
    • getIgnoreSecKeyFiltering

      public Boolean getIgnoreSecKeyFiltering()
    • setIgnoreSecKeyFiltering

      public void setIgnoreSecKeyFiltering(Boolean ignoreSecKeyFiltering)
    • isMatrix

      public boolean isMatrix()
      Overrides:
      isMatrix in class MatrixableCalculableObject
    • 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 interface Persistable
      Overrides:
      validate in class AbstractCalculable
      Parameters:
      validationVisitor - visitor object that receives validation error details
      objService - PersistedObjectService instance. May be null, so be cautious when requiring it
    • getItemClass

      public Class<? extends AbstractSimulationItem> getItemClass()
      Specified by:
      getItemClass in interface HasCalculableObjectItems
    • getItemClassS

      public static Class<? extends AbstractSimulationItem> getItemClassS(MatrixableCalculableObject.ListType type)
    • getItemListFilterField

      public String getItemListFilterField()
      Specified by:
      getItemListFilterField in interface HasCalculableObjectItems
    • getItemListFilterFieldS

      public static String getItemListFilterFieldS()
    • getItemAttributeMetaClass

      public Class<? extends ElementAttributeMeta> getItemAttributeMetaClass()
      Specified by:
      getItemAttributeMetaClass in interface HasCalculableObjectItems
    • getDefaultTrackerType

      public JobStatusTracker.TrackerType getDefaultTrackerType()
      Specified by:
      getDefaultTrackerType in class AbstractCalculable
    • doHardDelete

      public boolean doHardDelete()
      Description copied from class: net.pricefx.domain.PersistedObject
      Override to define if an object instance should be really deleted (vs just marked as deleted) Default: soft-delete
      Specified by:
      doHardDelete in interface Persistable
      Overrides:
      doHardDelete in class AbstractCalculable
    • getJobType

      public String getJobType()
      Specified by:
      getJobType in interface JobSettingsProvider
    • isShotgunEnabled

      public boolean isShotgunEnabled()
      Specified by:
      isShotgunEnabled in interface JobSettingsProvider
    • getShotgunThreshold

      public int getShotgunThreshold(PersistedObjectService objService, JobStatusTracker jst)
      Specified by:
      getShotgunThreshold in interface JobSettingsProvider
    • jobSize

      public int jobSize(PersistedObjectService objectService, JobStatusTracker tracker, int runNumber)
      Specified by:
      jobSize in interface JobSettingsProvider