Interface MainEntity
- All Superinterfaces:
Entity
,ValidationReportItemSubject
,ValueContext
Provides a facade to the main record of a business object. Since version 6.1.1,
this facade is no longer read-only, as it is possible to delete the business object from it.
- Since:
- 6.1.1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doDelete
(ProcedureContext aContext) Deletes the entire business object.Returns an up-to-date validation report of this business object.getValidationReport
(boolean ensureActivation, boolean upToDateValidationReport) Returns the validation report of this business object.getValidationReport
(ValidationSpec aValidationSpec) Returns the validation report of this business object according to the specified properties.Methods inherited from interface com.orchestranetworks.schema.businessObjects.Entity
getBusinessObjectModel, getChildEntities, getChildEntities, getChildEntity, getChildEntity, getRecord, getSessionOrNull
Methods inherited from interface com.orchestranetworks.service.ValidationReportItemSubject
isDatasetOrRecordSubject, isTableSubject
Methods inherited from interface com.orchestranetworks.instance.ValueContext
getAdaptationInstance, getAdaptationTable, getHome, getNode, getNode, getValue, getValue, getValue
-
Method Details
-
doDelete
Deletes the entire business object. This method performs a cascading delete of the records that compose the business object (records from the main and child entities).Warning
Access rights on the table node for the current session are not checked when calling this method, even in a context which is not with "all privileges".
SessionPermissions.getNodeAccessPermission(SchemaNode, Adaptation)
should be used before executing this method to explicitly perform this check if required.- Throws:
OperationException
- if an error occurs during the operation.ConstraintViolationException
- if one of the records that compose the business object is being referenced by a foreign key constraint (osd:tableRef
) in blocking mode.- See Also:
-
getValidationReport
ValidationReport getValidationReport()Returns an up-to-date validation report of this business object.This method is equivalent to:
MainEntity.getValidationReport(true, true);
- See Also:
-
getValidationReport
Returns the validation report of this business object.This method is equivalent to:
ValidationSpec spec = new ValidationSpec(); spec.setActivationEnsured(ensureActivation); spec.setRefreshPolicy(updateValidationReport ? RefreshPolicy.UP_TO_DATE : RefreshPolicy.AS_IS); MainEntity.getValidationReport(spec);
-
getValidationReport
Returns the validation report of this business object according to the specified properties.- See Also:
-