Package de.scoopgmbh.copper.spring

Examples of de.scoopgmbh.copper.spring.SpringTransaction


  public void synchLog(final AuditTrailEvent e) {
    if ( isEnabled(e.getLogLevel()) ) {
      logger.debug("doLog({})",e);
      e.setMessage(messagePostProcessor.serialize(e.getMessage()));
      try {
        new SpringTransaction() {
          @Override
          protected void execute(Connection con) throws Exception {
            @SuppressWarnings("unchecked")
            BatchCommand<Executor, Command> cmd = createBatchCommand(e, true, NullCallback.instance);
            @SuppressWarnings("unchecked")
View Full Code Here


 
  @SuppressWarnings("unchecked")
  @Override
  public <T> T run(final DatabaseTransaction<T> txn) throws Exception {
    final T[] t = (T[]) new Object[1];
    new SpringTransaction() {
      @Override
      protected void execute(Connection con) throws Exception {
        t[0] = txn.run(con);
      }
    }.run(transactionManager, dataSource, new DefaultTransactionDefinition());
View Full Code Here

TOP

Related Classes of de.scoopgmbh.copper.spring.SpringTransaction

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.