Package org.jitterbit.integration.server.engine.jdbc

Examples of org.jitterbit.integration.server.engine.jdbc.JdbcSession$Key


    validateQuery(query);
    validateSplitSize(numSplits);

    List<Query> splits = new ArrayList<Query>(numSplits);
    List<Key> scatterKeys = getScatterKeys(numSplits, query, datastore);
    Key lastKey = null;
    for (Key nextKey : getSplitKey(scatterKeys, numSplits)) {
      splits.add(createSplit(lastKey, nextKey, query));
      lastKey = nextKey;
    }
    splits.add(createSplit(lastKey, null, query));
View Full Code Here


    @Override
    public WsJdbcStartNewSessionResult startNewSession(String jitterbitUser, String md5Pwd) throws RemoteException {
        try {
            JdbcEngine engine = JdbcEngine.getEngine();
            JdbcSession session = engine.newSession(jitterbitUser, md5Pwd);
            return new WsJdbcStartNewSessionResult(createForSuccess(), session.getId().toString());
        } catch (Exception e) {
          return new WsJdbcStartNewSessionResult(createForException(e, "startNewSession"), null);
        }
    }
View Full Code Here

    }

    @Override
    public WsJdbcError commitTransactions(WsJdbcSessionId sessionId) throws RemoteException {
        try {
            JdbcSession session = getSession(sessionId);
            session.commitTransactions();
            return createForSuccess();
        } catch (Exception e) {
          return createForException(e, "commitTransactions");
        }
    }
View Full Code Here

    }

    @Override
    public WsJdbcError rollbackTransactions(WsJdbcSessionId sessionId) throws RemoteException {
        try {
            JdbcSession session = getSession(sessionId);
            session.rollbackTransactions();
            return createForSuccess();
        } catch (Exception e) {
          return createForException(e, "rollbackTransactions");
        }
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.server.engine.jdbc.JdbcSession$Key

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.