Package net.pricefx.domain
Class DMTable
- Object
-
- DomainObject
-
- PersistedObject
-
- PartitionedObject
-
- NamedObject
-
- DMFieldCollection
-
- DMGenericFieldCollection<DMTable>
-
- 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 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
-
-
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 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
-
-
-
-
Field Detail
-
DMFIELD_OWNER
public static final String DMFIELD_OWNER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public DMFieldCollection.DMFCType getType()
- Specified by:
getType
in classDMFieldCollection
-
getSourceName
public String getSourceName()
-
update
public void update(DMTable tableDto)
- Overrides:
update
in classDMGenericFieldCollection<DMTable>
-
getOwner
public String getOwner()
-
setOwner
public void setOwner(String owner)
-
isQueryable
public boolean isQueryable()
- Overrides:
isQueryable
in classDMFieldCollection
-
getDefaultDataLoad
public DMDataLoad getDefaultDataLoad(PersistedObjectService objService)
- Specified by:
getDefaultDataLoad
in classDMFieldCollection
-
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 classDMFieldCollection
- Parameters:
validationVisitor
- visitor object that receives validation error detailsobjService
- PersistedObjectService instance. May be null, so be cautios when requiring it
-
validate
public boolean validate(ValidationVisitor validationVisitor, boolean updateMode, PersistedObjectService objService)
- Overrides:
validate
in classDMGenericFieldCollection<DMTable>
-
-