Class DMTable

  • All Implemented Interfaces:
    DMEntityMap.DMEntity, DMExpression.DMExpressionContext, JobNameProvider, Persistable

    @Entity
    public class DMTable
    extends DMGenericFieldCollection<DMTable>
    • Nested Class Summary

      • Nested classes/interfaces inherited from class DMFieldCollection

        DMFieldCollection.DMFCType
      • 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 
      Modifier and Type Field Description
      static String DMFIELD_OWNER  
      • Fields inherited from class DMFieldCollection

        DMFIELD_ALERTS, DMFIELD_DELETED, DMFIELD_DETAILSAVAILABLE, DMFIELD_FORMULADETAILEDRESULTS, DMFIELD_FORMULARESULT, DMFIELD_ISDEPLOYED, DMFIELD_LASTUPDATEDATE, DMFIELD_WARNINGS, formulaName, isAuxiliary, isDeployed, isLocked, isValid, isView, lastUpdateByName, LOG_MARKER, queryDto, sourceFile, sourceQuery, sourceQueryJson, sourceSqlQuery, sourceSqlQueryJson, sQueryDto, VALID_IDENTIFIER_REGEX
      • Fields inherited from class NamedObject

        FIELD_LABEL, FIELD_UNIQUENAME
      • Fields inherited from class PartitionedObject

        FIELD_PARTITION, FIELD_PARTITIONID
      • Fields inherited from class PersistedObject

        FIELD_CREATEDATE, FIELD_ID, FIELD_ISDELETED, FIELD_LASTUPDATEDATE
      • Fields inherited from class DomainObject

        DEFAULT_MAX_PACKET_SIZE
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DMTable copy()  
      DMDataLoad getDefaultDataLoad​(PersistedObjectService objService)  
      String getOwner()  
      String getSourceName()  
      DMFieldCollection.DMFCType getType()  
      boolean isQueryable()  
      void setOwner​(String owner)  
      static String uniqueName​(String name, String owner)  
      void update​(DMTable tableDto)  
      boolean validate​(ValidationVisitor validationVisitor, boolean updateMode, PersistedObjectService objService)  
      boolean validate​(ValidationVisitor validationVisitor, PersistedObjectService objService)
      Override to implement per-object validation rules
      • Methods inherited from class DMGenericFieldCollection

        canDelete, copyAsDto, markDeployed, unmarkDeployed, update
      • Methods inherited from class DMFieldCollection

        addCalculatedField, addDerivedSystemField, addField, addField, addFormulaEvalFields, addFormulaFields, addMessage, addSystemAuxFields, addSystemField, addSystemField, addValidationError, addValidationError, addValidationErrors, asQuery, buildSearch, calculationDate, calculationStartDate, equals, getCalculatedFields, getCalculationMessages, getDateSystemFields, getDbKey, getDbTable, getDbView, getDefaultCalculable, getDefaultCalculationConfig, getField, getFieldByDbColumn, getFieldByIndex, getFieldByLabelIgnoreCase, getFieldByNameIgnoreCase, getFieldIndex, getFields, getFields, getFieldsOfType, getFlattenedDependencies, getForeignKeyFields, getFormulaEvalFields, getFormulaEvalFields, getFormulaName, getIndexFields, getKeyField, getKeyFields, getLastDataModificationDate, getLastUpdateByName, getLoadableFields, getLocalFields, getMessages, getMinimalKeySet, getNonAuxiliaryFields, getNonAuxSystemFields, getNumberOfFields, getNumberOfKeyFields, getOwnedFields, getPercentBasisField, getPersistedFields, getPerUnitBasisField, getPricingDateField, getQuantityField, getQueryDto, getReload, getReservedWords, getRowCount, getSchemaIdPrefix, getSourceField, getSourceFile, getSourceName, getSourceQuery, getSourceQueryJson, getSourceSqlQuery, getSourceSqlQueryJson, getStatus, getTargetDate, getVariable, getVariableByIndex, getVariableIndex, hasField, hasFields, hasFieldWithName, hashCode, hasKeyField, hasSameKey, hasSourceField, hasSourceQuery, hasSourceSqlQuery, initDefaultCalculable, initFieldCollectionFromQuery, initFromQuery, isAuxiliary, isDeployed, isLocked, isReservedWord, isValid, isValidIdentifier, isValidLabel, isView, jsonDeserializeFromFile, jsonSerializeTofile, lastDataModificationDate, modifyFieldName, modifyIsKey, newFieldLabel, newFieldLabel, newFieldName, newFieldName, ownsField, prepareAsDtoForUpdate, removeAllFields, removeDeletedFields, removeField, removeField, removeSystemFields, resolveExpression, safeSetLastDataModificationDate, setDbKey, setDbTable, setDbView, setDefaultCalculable, setFields, setFormulaName, setIsAuxiliary, setIsDeployed, setIsLocked, setIsQueryable, setIsValid, setIsView, setLastDataModificationDate, setMessages, setQueryDto, setReload, setReservedWords, setRowCount, setSourceFile, setSourceName, setSourceQuery, setSourceQueryJson, setSourceSqlQuery, setSourceSqlQueryJson, toLabel, toName, toString, toValidIdentifier, validateCalculatedField, validateCalculatedFields, validateField
      • Methods inherited from class NamedObject

        addUniqueConstraint, getLabel, getLabelOrUniqueName, getSignificantFields, getUniqueName, labelValid, setLabel, setUniqueName, uniqueNameValid
      • Methods inherited from class PartitionedObject

        getPartition, setPartition
      • Methods inherited from class PersistedObject

        auditOperation, bumpVersion, canAdd, canEdit, canEdit, createDate, doHardDelete, findAnnotationRecursivelly, getBulkloadMap, getBusinessKey, getCreateDate, getCreatedBy, getDbColumnNameForField, getDefaultSortKey, getDeleteDate, getDeletedBy, getId, getLastUpdateBy, getLastUpdateDate, getTypeCode, getTypedId, getVersion, getVirtualFieldMappings, hasSafeInsertConfigured, 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, deepCopyUsingJavaSerialization, getNewMidnightDate, getNewMidnightDateTime, isMidnight, isMidnight, jsonDeserialize, jsonDeserialize, jsonDeserialize, jsonDeserialize, jsonDeserialize, jsonDeserialize, jsonDeserialize, jsonDeserialize, jsonDeserialize, jsonDeserialize, jsonDeserialize, jsonDeserialize, jsonSerialize, jsonSerialize, jsonSerialize, jsonSerialize, jsonSerialize, jsonSerialize, jsonSerializedSizeOK, setToDayEnd, setToDayEnd, setToMidnight, setToMidnight, setToMidnightAsLocalDateTime, toPropertyMap
      • Methods inherited from interface DMEntityMap.DMEntity

        getUniqueName, getVersion
      • Methods inherited from interface JobNameProvider

        getJobName
    • Constructor Detail

      • DMTable

        protected DMTable()
      • DMTable

        public DMTable​(String name,
                       String owner,
                       DMFieldCollection template)
      • DMTable

        public DMTable​(String name,
                       String owner,
                       String label,
                       Partition partition)
    • Method Detail

      • getType

        public DMFieldCollection.DMFCType getType()
        Specified by:
        getType in class DMFieldCollection
      • getSourceName

        public String getSourceName()
      • copy

        public DMTable copy()
        Specified by:
        copy in class DMGenericFieldCollection<DMTable>
      • update

        public void update​(DMTable tableDto)
        Overrides:
        update in class DMGenericFieldCollection<DMTable>
      • getOwner

        public String getOwner()
      • setOwner

        public void setOwner​(String owner)
      • isQueryable

        public boolean isQueryable()
        Overrides:
        isQueryable in class DMFieldCollection
      • getDefaultDataLoad

        public DMDataLoad getDefaultDataLoad​(PersistedObjectService objService)
        Specified by:
        getDefaultDataLoad in class DMFieldCollection
      • 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 DMFieldCollection
        Parameters:
        validationVisitor - visitor object that receives validation error details
        objService - PersistedObjectService instance. May be null, so be cautios when requiring it
      • validate

        public boolean validate​(ValidationVisitor validationVisitor,
                                boolean updateMode,
                                PersistedObjectService objService)
        Overrides:
        validate in class DMGenericFieldCollection<DMTable>