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 Link icon

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     

    Nested classes/interfaces inherited from class MatrixableCalculableObject Link icon

    MatrixableCalculableObject.ListType

    Nested classes/interfaces inherited from class PersistedObject Link icon

    PersistedObject.BatchDelete, PersistedObject.BulkloadFilterCheckCallback, PersistedObject.ComputedFieldMapping, PersistedObject.ComputedFields, PersistedObject.ImportManagerEnabled, PersistedObject.PersistedObjectMeta, PersistedObject.VirtualField, PersistedObject.VirtualFieldMapping, PersistedObject.VirtualFields, PersistedObject.VirtualSearchFields, PersistedObject.VirtualSortFields
  • Field Summary Link icon

    Fields inherited from class AbstractCalculable Link icon

    FIELD_CALCDATE, FIELD_CALCMESSAGES, FIELD_CALCSTARTDATE, FIELD_STATUS, MAX_CALCULATION_MESSAGE_THRESHOLD

    Fields inherited from class PartitionedObject Link icon

    FIELD_PARTITION, FIELD_PARTITIONID

    Fields inherited from class PersistedObject Link icon

    FIELD_CREATEDATE, FIELD_CREATEDBY, FIELD_DELETEDATE, FIELD_DELETEDBY, FIELD_ID, FIELD_ISDELETED, FIELD_LASTUPDATEDATE

    Fields inherited from class DomainObject Link icon

    DEFAULT_MAX_PACKET_SIZE

    Fields inherited from interface UserGroupRestrictedObject Link icon

    FIELD_USERGROUPEDIT, FIELD_USERGROUPVIEWDETAILS
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
     
  • Method Summary Link icon

    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 Link icon

    anyToRecalculation

    Methods inherited from class CalculableObject Link icon

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

    Methods inherited from class AbstractCalculable Link icon

    calculationDate, calculationStartDate, getCalculationConcurrencyKey, getCalculationDate, getCalculationMessages, getCalculationStartDate, getJobName, getLabel, getLocale, getStatus, getTargetDate, setCalculationDate, setCalculationMessages, setCalculationMessages, setCalculationStartDate, setLabel, setLocale, setStatus, setTargetDate

    Methods inherited from class PartitionedObject Link icon

    addUniqueConstraint, getLoginNameByUserId, getPartition, setPartition, toString

    Methods inherited from class PersistedObject Link icon

    auditOperation, bumpVersion, canAdd, canDelete, canEdit, canEdit, canRead, createDate, entityIsSafeInserted, entityIsSafeInserted, getBulkloadMap, getBusinessKey, getCreateDate, getCreatedBy, getDbColumnNameForField, getDefaultSortKey, getDeleteDate, getDeletedBy, getId, getLastUpdateBy, getLastUpdateDate, 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, userGroupEditBulkloadFilter

    Methods inherited from class DomainObject Link icon

    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, truncatedToString

    Methods inherited from class Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface JobSettingsProvider Link icon

    getAgentOption1

    Methods inherited from interface Persistable Link icon

    getCreateDate, getCreatedBy, getDeleteDate, getDeletedBy, getId, getLastUpdateBy, getLastUpdateDate, getTypeCode, getTypedId, getVersion, isDeleted, setCreateDate, setCreatedBy, setDeleted, setDeleteDate, setDeletedBy, setId, setLastUpdateBy, setLastUpdateDate, setVersion
  • Constructor Details Link icon

    • Simulation Link icon

      public Simulation()
  • Method Details Link icon

    • getBasePricelistId Link icon

      public Long getBasePricelistId()
    • getBasePriceGridId Link icon

      public Long getBasePriceGridId()
    • setBasePriceGridId Link icon

      public void setBasePriceGridId(Long basePriceGridId)
    • setBasePricelistId Link icon

      public void setBasePricelistId(Long basePricelistId)
    • getBaseCO Link icon

      public String getBaseCO()
    • setBaseCO Link icon

      public void setBaseCO(String baseCO)
    • getBaseCOType Link icon

      public MatrixableCalculableObject.ListType getBaseCOType()
    • setBaseCOType Link icon

      public void setBaseCOType(MatrixableCalculableObject.ListType baseCOType)
    • baseCalculableType Link icon

      public Simulation.SimulationType baseCalculableType()
    • getListType Link icon

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

      public String getCalculatedBaseTypedId()
    • setCalculatedBaseTypedId Link icon

      public void setCalculatedBaseTypedId(String calculatedBaseTypedId)
    • getSimulationSet Link icon

      public String getSimulationSet()
    • setSimulationSet Link icon

      public void setSimulationSet(String simulationSet)
    • getUsedSimulationFormulas Link icon

      public Set<Long> getUsedSimulationFormulas()
    • setUsedSimulationFormulas Link icon

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

      public Set<Long> getUsedSimulationLookups()
    • setUsedSimulationLookups Link icon

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

      public boolean getUseFilterCriteria()
    • setUseFilterCriteria Link icon

      public void setUseFilterCriteria(Boolean useFilterCriteria)
    • isShotgunModeEnabled Link icon

      public boolean isShotgunModeEnabled()
    • setShotgunModeEnabled Link icon

      public void setShotgunModeEnabled(Boolean shotgunModeEnabled)
    • getUserGroupEdit Link icon

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

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

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

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

      public Boolean getIgnoreSecKeyFiltering()
    • setIgnoreSecKeyFiltering Link icon

      public void setIgnoreSecKeyFiltering(Boolean ignoreSecKeyFiltering)
    • isMatrix Link icon

      public boolean isMatrix()
      Overrides:
      isMatrix in class MatrixableCalculableObject
    • validate Link icon

      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 Link icon

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

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

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

      public static String getItemListFilterFieldS()
    • getItemAttributeMetaClass Link icon

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

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

      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 Link icon

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

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

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

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