Package org.jitterbit.integration.data.location

Examples of org.jitterbit.integration.data.location.DatabaseLocation


     * If the checkbox for entering the SQL statement manually is selected, this method will return
     * a ManualSqlStatementPage. Otherwise it will return a <code>DatabaseObjectSelectionPage</code>.
     */
    @Override
    public WizardPage getNextPage() {
        DatabaseLocation location = getSelectedLocation();
        if (location == null) {
            // TODO: This should never happen since the Next Page button
            // will be disabled if a location has not been selected. But
            // just in case, maybe we should deal with this...
        }
View Full Code Here


    @Override
    public void applyTo(DatabaseStructure s) {
        Source source = getSelectedEntity();
        if (source != null) {
            // This cast is safe because we have filtered out all non-database sources:
            DatabaseLocation loc = (DatabaseLocation) source.getLocation();
            s.setDbLocation(loc);
            s.setSourceId(source.getID());
        } else {
            // This will never happen because a source must have been
            // specified before the wizard could leave this page.
View Full Code Here

     */
    private final class InputValidator implements SelectionListener {

        @Override
        public void selectionChanged(SelectionChangedEvent evt) {
            DatabaseLocation location = getSelectedLocation();
            setCanContinue(location != null);
            driverChangeListener.listenTo(location);
            manualModeSwitch.setDbLocation(location);
        }
View Full Code Here

            tearDown();
        }
    }
   
    private DatabaseLocation createLocation(int n) {
        DatabaseLocation loc = new DatabaseLocation();
        loc.setServer(SERVERS[n]);
        loc.setDatabase(DATABASES[n]);
        loc.setLogin(USER);
        return loc;
    }
View Full Code Here

* @since 1.3.0
*/
class ExportablePropertyCheckBoxSelectorTest {
   
    public static void main(String[] args) {
        DatabaseLocation loc = new DatabaseLocation();
        ExportablePropertySelector selector = new ExportablePropertyCheckBoxSelector(loc.getExportableProperties());
        UiProviderTestFrame.display(selector);
    }
View Full Code Here

                return KList.fromItems(http.getUrl(), http.getLogin());
            case LDAP:
                LdapLocation ldap = (LdapLocation) dl;
                return KList.fromItems(ldap.getLogin(), ldap.getBaseName(), ldap.getServer());
            case Database:
                DatabaseLocation db = (DatabaseLocation) dl;
                return KList.fromItems(
                                db.getDriverName(), db.getServer(), db.getDatabase(), db.getConnectionString(),
                                db.getManualConnectionString(), db.getLogin());
            default:
                // Return an empty list below
            }
        }
        return KList.newList();
View Full Code Here

     * copy of the data kept internal by this instance. Changing the returned object will not affect
     * this instance.
     */
    public DatabaseLocation getDbLocation() {
        synchronized (getDataLock()) {
            return (location == null) ? null : new DatabaseLocation(location);
        }
    }
View Full Code Here

    }

    @Override
    public void apply() throws IntegrationDataPanelException {
        vaildateInput();
        DatabaseLocation loc = getDisplayedObject();
        new PasswordLocationChecker().run();
        applyParts(loc);
        updateCache(loc);
    }
View Full Code Here

        private final DbLookupFilter wrappee = new DbLookupFilter();

        @Override
        public boolean apply(IntegrationEntity entity) {
            if (wrappee.apply(entity)) {
                DatabaseLocation loc = (DatabaseLocation) ((Locatable) entity).getLocation();
                DriverDescriptor driver = loc.getDriver();
                return driver != null && driver.getType() == DriverType.ODBC;
            }
            return false;
        }
View Full Code Here

        return s.toString();
    }
   
    public static void main(String[] args) throws Exception {
        JdbcDriverDescriptor driver = new JdbcDriverDescriptor("Postgres", "postgresql", "org.postgresql.Driver", new BeginEndQuote("\""));
        DatabaseLocation loc = new DatabaseLocation();
        loc.setServer("linuxdoc");
        loc.setDatabase("Test");
        loc.setDriver(driver);
        Connection conn = DriverManager.getConnection(loc.getConnectionString(), "user1", "kongaqapass");
        Statement delete = null;
        PreparedStatement parent = null;
        PreparedStatement child = null;
        try {
            delete = conn.createStatement();
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.location.DatabaseLocation

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.