Examples of TargetsTabRow


Examples of org.jitterbit.integration.server.db.trandb.TargetsTabRow

            Long id = mapper.getId(guid);
            if (id != null) {
                // No need to close srcTab in a finally block, since we are closing
                // the connection itself explicitly
                TargetsTab tgtTab = new TargetsTab(tranDbConnection);
                TargetsTabRow row = tgtTab.query(id.intValue());
                String encrypted = row.get_password();
                if (encrypted != null) {
                    verifyAccess(guid);
                    return Crypto.decryptString(encrypted);
                }
            }
View Full Code Here

Examples of org.jitterbit.integration.server.db.trandb.TargetsTabRow

            this.targetId = targetId;
        }

        public ConnectionParams getParams() throws ServerDbException {
            try {
                TargetsTabRow row = getDefinition();
                if (row == null) {
                    throw new ServerDbException("Could not find the deployed definition of the Target with GUID "
                                    + targetId);
                }
                ConnectionParams params = new ConnectionParams();
                params.setServer(row.get_locator())
                      .setDatabase(row.get_dbname())
                      .setUser(row.get_login())
                      .setPassword(decryptPassword(row.get_password()))
                      .setPort(Port.valueOf(row.get_port()))
                      .setDriverName(row.get_driver())
                      .setTransactionIsolationLevel(getTransactionIsolationLevel(row))
                      .setManualConnectionString(row.get_connectstring())
                      .setAdditionalParams(row.get_optional_connectstring());
                return params;
            } catch (SQLException ex) {
                throw new ServerDbException(ex.getMessage(), ex);
            }
        }
View Full Code Here

Examples of org.jitterbit.integration.server.db.trandb.TargetsTabRow

        }

        @Override
        public LdapConnectionInfo createConnectionInfo(int id) throws LdapException {
            try {
                TargetsTabRow row = targetsTab.query(id);
                if (row == null) {
                    throw new LdapException("The target with id " + id + " does not exist");
                }
                String server = row.get_locator();
                Integer portNumber = row.get_port();
                Port port = (portNumber != null) ? Port.valueOf(portNumber) : null;
                String login = row.get_login();
                String password = getPassword(row);
                LdapSecurityLevel secure = getSecurityLevel(row);
                return new LdapConnectionInfo(server, port, login, password, secure);
            } catch (SQLException ex) {
                throw new LdapException("Failed to create LdapConnectionInfo from the target with id " + id, ex);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.