Package org.nuclos.api.transaction
Class CurrentTransaction
java.lang.Object
org.nuclos.api.transaction.CurrentTransaction
CurrentTransaction
provides methods for disabling Nuclos core features
This Class is usually used in Rule-classes and allows API access only
- Author:
- Kai Fibr
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
This method disables update of fieldsCHANGEDBY
,CHANGEDAT
andVERSION
by the system and enables the use ofsetCreatedBy
andsetChangedBy
in rulesstatic void
This method disables execution of any rules for the current transactionvoid
setTransactionService
(TransactionService service)
-
Constructor Details
-
CurrentTransaction
public CurrentTransaction()
-
-
Method Details
-
setTransactionService
-
disableRuleExecution
public static void disableRuleExecution()This method disables execution of any rules for the current transaction -
disableBusinessObjectMetaUpdate
public static void disableBusinessObjectMetaUpdate()This method disables update of fieldsCHANGEDBY
,CHANGEDAT
andVERSION
by the system and enables the use ofsetCreatedBy
andsetChangedBy
in rules
-