Ejemplo n.º 1
0
 public PersistentDebitGrant getThis() throws PersistenceException {
   if (this.This == null) {
     PersistentDebitGrant result = new DebitGrantProxi(this.getId());
     result.getTheObject();
     return result;
   }
   return (PersistentDebitGrant) this.This;
 }
Ejemplo n.º 2
0
 protected void setThis(PersistentDebitGrant newValue) throws PersistenceException {
   if (newValue == null) throw new PersistenceException("Null values not allowed!", 0);
   if (newValue.equals(this)) {
     this.This = null;
     return;
   }
   if (newValue.equals(this.This)) return;
   long objectId = newValue.getId();
   long classId = newValue.getClassId();
   this.This = (PersistentDebitGrant) PersistentProxi.createProxi(objectId, classId);
   if (!this.isDelayed$Persistence()) {
     newValue.store();
     ConnectionHandler.getTheConnectionHandler()
         .theDebitGrantFacade
         .ThisSet(this.getId(), newValue);
   }
 }
Ejemplo n.º 3
0
 public static PersistentDebitGrant createDebitGrant(
     PersistentAccountPx permittedAccount, PersistentLimitType limits, boolean delayed$Persistence)
     throws PersistenceException {
   PersistentDebitGrant result = null;
   if (delayed$Persistence) {
     result =
         ConnectionHandler.getTheConnectionHandler().theDebitGrantFacade.newDelayedDebitGrant();
     result.setDelayed$Persistence(true);
   } else {
     result = ConnectionHandler.getTheConnectionHandler().theDebitGrantFacade.newDebitGrant(-1);
   }
   java.util.HashMap<String, Object> final$$Fields = new java.util.HashMap<String, Object>();
   final$$Fields.put("permittedAccount", permittedAccount);
   final$$Fields.put("limits", limits);
   result.initialize(result, final$$Fields);
   result.initializeOnCreation();
   return result;
 }