Class ReadOnlyDAO
java.lang.Object
overit.geocall.da.DAO
overit.geocallapp.utilities.core.data.ReadOnlyDAO
- All Implemented Interfaces:
Serializable,DataAttributesHolder,EDMConfigurableBean,overit.geocall.marks.FieldExposer,overit.geocall.marks.NameExposer,DBFieldMapper,DBObjectMapper,Tool
- Direct Known Subclasses:
DAOAccountedActivityTooltipData,DAOAccountEntityType,DAOAccountStatusType,DAOAddressMicroClusterZones,DAOAgendaHistorySearch,DAOAgendaState,DAOAgendaStatus,DAOAppointmentScheduling,DAOAppointmentState,DAOAppointmentStatus,DAOAssetEntityType,DAOBundleOperationOrdering,DAOBundleOperationStatus,DAOBundleSearch,DAOBundleState,DAOBundleWorkOrderOperationSearch,DAOCatalogGroupEntityType,DAOCharacteristicClassType,DAOCharacteristicUsage,DAOClockingActionType,DAOContactType,DAOContactType,DAOContactType,DAOCounterDirection,DAOCountry,DAOCriticalActivityRuleCriterion,DAOCriticalActivityWorkOrderOperationSearch,DAODataCollectionSheetConversionSubsetSearch,DAODataCollectionSheetConverterMassiveSearch,DAODataCollectionTemplateConversionMassiveSearch,DAODataCollectionTemplateConversionSubsetSearch,DAODataType,DAODataType,DAODistrict,DAODistrict,DAOFeatureClassType,DAOFeatureUsage,DAOGeocodingState,DAOGeocodingStatus,DAOGeocodingType,DAOHourType,DAOIntervention,DAOInterventionGroupState,DAOInterventionScheduled,DAOInterventionStatus,DAOLogProcessing,DAOLogProcessing,DAOMeasureMode,DAOMeasureStatus,DAOMeasuringElementStatus,DAOMeterReadingState,DAOMeterReadingType,DAOMeterState,DAOMultistageGroupWorkOrder,DAONation,DAOOutcomeClass,DAOOutcomeValidationState,DAOPermitAttachmentToConvert,DAOPermitTypeToConvert,DAOPlannedActivityTooltipData,DAOPlannedActivityTooltipScheduledInterval,DAOPlanningActionHistoryType,DAOReadingMeterType,DAOReadingMeterType,DAORegion,DAORoughPlanningBucketMovementState,DAORUserTypesWOStatusSearch,DAOSchedulingMode,DAOSchedulingProposalState,DAOSchedulingProposalType,DAOSchedulingState,DAOSchedulingStatus,DAOSkillLevel,DAOTeamCardinality,DAOTeamCardinality,DAOTechnicalObjectEntityType,DAOTechnicalObjectStateType,DAOTransferTimeType,DAOValidationStatus,DAOWorkCycleOperationDataCollection,DAOWorkCyclePermitToConvert,DAOWorkCyclePermitType,DAOWorkCycleStructurePermitToConvert,DAOWorkCycleStructurePermitType,DAOWorkOrderEditableStatusForUserTypeSearch,DAOWorkOrderOperationMultistageGroup,DAOWorkOrderOperationSearch,DAOWorkOrderOrigin,DAOWorkOrderPermitToConvert,DAOWorkOrderStatusUserTypeSearch,DAOWorkShiftSearch
Abstract
This class extends the standard
DAO implementation that restricts operations to read-only queries. This class extends the standard
DAO functionality by adding validation to ensure that only
SELECT operations are permitted. Any attempt to perform INSERT, UPDATE, or DELETE operations will
result in a validation exception. - Since:
- 1.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class overit.geocall.da.DAO
DAO.Branch, DAO.Code, DAO.Distinct, DAO.Encrypt, DAO.Factory, DAO.Group, DAO.Level, DAO.Order, DAO.Pk, DAO.Pool, DAO.Sequence, DAO.Service, DAO.Star, DAO.Table, DAO.Transaction -
Field Summary
Fields inherited from class overit.geocall.da.DAO
_dbfm, _dbom, DELETE_FILTER, DELETE_PK, INSATE, INSERT, INSERT_ATTEMPT, SELECT_FILTER, SELECT_NONE, SELECT_PK, UPDATE_FILTER, UPDATE_PK, UPSERT, V_LEVEL_ENABLED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvalidate(CommandContext cc, PoolKit pk) Validates that only SELECT operations are permitted on this read-onlyDAO.Methods inherited from class overit.geocall.da.DAO
command, command, commandForName, defineParams, defineSql, defineStatement, defineValues, execute, execute, execute, execute, feedback, getBranch, getCode, getDataAttributes, getDBFieldMap, getDBObjectMap, getEncrypt, getFactory, getFilterCriterion, getGroup, getLevel, getOrder, getPk, getPool, getSequence, getStar, getTable, getTeacher, getTransaction, getValuesCriterion, hasNotBeenDecorated, haveDBFieldMap, haveDBObjectMap, isDistinct, isEncrypted, isService, markAsDecorated, query, query, scan, setDataAttributes, setDBFieldMap, setDBObjectMapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface overit.geocall.edm.model.DataAttributesHolder
getEntitiesMethods inherited from interface overit.geocall.edm.model.EDMConfigurableBean
getEntity, hasEntity
-
Constructor Details
-
ReadOnlyDAO
public ReadOnlyDAO()
-
-
Method Details
-
validate
Validates that only SELECT operations are permitted on this read-onlyDAO.- Overrides:
validatein classDAO- Parameters:
cc- theCommandContextcontaining the operation detailspk- thePoolKit- Throws:
DAException- if a data access error occurs during validationDAValidateException- if the operation is not a SELECT operation
-