示例#1
0
 /**
  * Return the Persistence Aspect instance based on the mode passed.
  *
  * @param iMode The mode between the MODE declared in {@link PersistenceConstants}
  * @return {@link PersistenceAspect}
  */
 public static PersistenceAspect persistence(String iMode) {
   return PersistenceAspectAbstract.getPersistenceComponent(iMode);
 }
示例#2
0
 /**
  * Return the Atomic Persistence Aspect instance. The instance is thread-safe and is shared by all
  * the requests.
  *
  * @return {@link PersistenceAspect}
  */
 public static PersistenceAspect persistence() {
   return PersistenceAspectAbstract.getPersistenceComponent(PersistenceConstants.MODE_ATOMIC);
 }