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

Examples of org.jitterbit.integration.server.engine.jdbc.JdbcEngine$EngineHolder


public final class Konga_jdbc_engineSoapBindingImpl implements org.jitterbit.integration.server.backend.webservice.jdbc.JdbcEngine{

    @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 closeSession(WsJdbcSessionId sessionId) throws RemoteException {
        try {
            JdbcEngine engine = JdbcEngine.getEngine();
            engine.closeSession(new JdbcSessionId(sessionId.getSessionGuid()),
                            sessionId.getJitterbitUser(), sessionId.getMd5Pwd());
            return createForSuccess();
        } catch (Exception e) {
          return createForException(e, "closeSession");
        }
View Full Code Here

    }

    @Override
    public WsDbLookupResult dbLookup(WsJdbcSessionId sessionId, WsDbLookupParams lookupParams) throws RemoteException {
        try {
            JdbcEngine engine = JdbcEngine.getEngine();
            DbLookupResult result = engine.dbLookup(
                            toCredentials(sessionId),
                            getSourceOrTargetId(lookupParams),
                            toConnectionParams(lookupParams.getConnectionParams()),
                            JdbcEngineUtils.getSqlStatement(lookupParams),
                            lookupParams.isAutoCommit());
View Full Code Here

    }

    @Override
    public WsDbLookupResult cachedDbLookup(WsJdbcSessionId sessionId, WsDbLookupParams lookupParams) throws RemoteException {
        try {
            JdbcEngine engine = JdbcEngine.getEngine();
            DbLookupResult result = engine.cachedDbLookup(
                            toCredentials(sessionId),
                            getSourceOrTargetId(lookupParams),
                            toConnectionParams(lookupParams.getConnectionParams()),
                            JdbcEngineUtils.getSqlStatement(lookupParams),
                            lookupParams.isAutoCommit());
View Full Code Here

    }

    @Override
    public WsDbExecuteResult dbExecute(WsJdbcSessionId sessionId, WsDbLookupParams lookupParams, int maxNumberOfRows) throws RemoteException {
        try {
            JdbcEngine engine = JdbcEngine.getEngine();
            DbExecuteResult result = engine.dbExecute(
                            toCredentials(sessionId),
                            getSourceOrTargetId(lookupParams),
                            toConnectionParams(lookupParams.getConnectionParams()),
                            JdbcEngineUtils.getSqlStatement(lookupParams),
                            maxNumberOfRows,
View Full Code Here

    }

    @Override
    public WsJdbcError readSource(WsJdbcSessionId sessionId, WsReadSourceParams params) throws RemoteException {
        try {
          JdbcEngine engine = JdbcEngine.getEngine();
          engine.readSource(toCredentials(sessionId), toReadSourceParams(params));
          return createForSuccess();
      } catch (Exception e) {
        return createForException(e, "readSource");
      }
    }
View Full Code Here

    }

    @Override
    public WsJdbcError writeTarget(WsJdbcSessionId sessionId, WsWriteTargetParams params) throws RemoteException {
        try {
            JdbcEngine engine = JdbcEngine.getEngine();
            StringBuilder warnings = new StringBuilder("");
            engine.writeTarget(toCredentials(sessionId), toWriteTargetParams(params), warnings);
            return createForSuccess(warnings.toString());
        } catch (Exception e) {
          return createForException(e, "writeTarget");
        }
    }
View Full Code Here

        }
        throw new IllegalArgumentException("Must specify a Source or Target GUID.");
    }

    private JdbcSession getSession(WsJdbcSessionId id) throws EngineSessionException {
        JdbcEngine engine = JdbcEngine.getEngine();
        JdbcSessionCredentials credentials = new JdbcSessionCredentials(new JdbcSessionId(id.getSessionGuid()), id.getJitterbitUser(), id.getMd5Pwd());
        return engine.getSession(credentials);
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.server.engine.jdbc.JdbcEngine$EngineHolder

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.