Package com.tll.service.entity.account.AccountHistoryContext

Examples of com.tll.service.entity.account.AccountHistoryContext.AccountHistoryOp


      newmap.put(a, a.isNew()? Boolean.TRUE : Boolean.FALSE);
    }
    final Collection<Account> pec = super.persistAll(entities);
    if(pec != null && pec.size() > 0) {
      for(final Account a : pec) {
        final AccountHistoryOp op = newmap.get(a).booleanValue()? AccountHistoryOp.ACCOUNT_ADDED : AccountHistoryOp.ACCOUNT_UPDATED;
        addHistoryRecord(new AccountHistoryContext(op, a));
      }
    }
    return pec;
  }
View Full Code Here


    final Account pe = super.persist(entity);

    // handle account history
    if(pe != null) {
      final AccountHistoryOp op = isNew ? AccountHistoryOp.ACCOUNT_ADDED : AccountHistoryOp.ACCOUNT_UPDATED;
      addHistoryRecord(new AccountHistoryContext(op, pe));
    }

    return pe;
  }
View Full Code Here

  @Override
  public Collection<Account> persistAll(Collection<Account> entities) {
    final Collection<Account> pec = super.persistAll(entities);
    if(pec != null && pec.size() > 0) {
      for(final Account a : pec) {
        final AccountHistoryOp op = a.isNew() ? AccountHistoryOp.ACCOUNT_ADDED : AccountHistoryOp.ACCOUNT_UPDATED;
        addHistoryRecord(new AccountHistoryContext(op, a));
      }
    }
    return pec;
  }
View Full Code Here

    final Account pe = super.persist(entity);

    // handle account history
    if(pe != null) {
      final AccountHistoryOp op = entity.isNew() ? AccountHistoryOp.ACCOUNT_ADDED : AccountHistoryOp.ACCOUNT_UPDATED;
      addHistoryRecord(new AccountHistoryContext(op, pe));
    }

    return pe;
  }
View Full Code Here

TOP

Related Classes of com.tll.service.entity.account.AccountHistoryContext.AccountHistoryOp

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.