Package org.springmodules.orm.orbroker

Examples of org.springmodules.orm.orbroker.BrokerCallback


    return new Integer(value.intValue());
  }

  protected Integer getSequenceNextValue(final String sequenceName) {
    // we need to cast to Number since some JDBC drivers return Integer and others return Long
    final Number value = (Number) getBrokerTemplate().execute(new BrokerCallback() {
      public Object doInBroker(Executable executable) throws BrokerException {
        executable.setTextReplacement(SEQUENCE_PARAMETER, sequenceName);
        return executable.selectOne(getSequenceStatementId());
      }
    });
View Full Code Here

TOP

Related Classes of org.springmodules.orm.orbroker.BrokerCallback

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.