Package org.jitterbit.integration.data.location

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


                        sourceId, targetId, st, singleTableOnly);
    }

    private boolean isManualSqlStatementSupported(Locatable database) {
        if (database instanceof Source) {
            DatabaseLocation loc = (DatabaseLocation) database.getLocation();
            DriverDescriptor driver = loc.getDriver();
            if (driver != null) {
                return driver.isManualSqlStatementSupported();
            }
        }
        return false;
View Full Code Here


    private boolean isSchemaNameIncluded;

    public ExistingStructureProcessor(TableSelectionModel model, StructureToEdit toEdit) {
        this.model = model;
        this.toEdit = toEdit;
        DatabaseLocation location = toEdit.getStructure().getDbLocation();
        quotes = deriveBeginEndQuotesForEditedStructure(location);
        isSchemaNameIncluded = toEdit.getStructure().getIncludeSchemaName();
    }
View Full Code Here

        }
        return map;
    }

    private BeginEndQuote getBeginEndQuote(TransformationDatabaseInfo dbInfo) {
        DatabaseLocation dbLoc = dbInfo.getStructure().getDbLocation();
        return dbLoc.getBeginEndQuote();
    }
View Full Code Here

            }
        }

        private void visit(DatabaseStructure dbStruct) {
            StringBuilder s = new StringBuilder(DataStructureType.Database.toString());
            DatabaseLocation loc = dbStruct.getDbLocation();
            if (loc != null) {
                StringBuilder appendix = new StringBuilder();
                String db = loc.getDatabase();
                if (db != null && db.length() > 0) {
                    appendix.append(db).append(" on ");
                }
                String server = loc.getServer();
                if (server != null && server.length() > 0) {
                    appendix.append(server);
                } else if (appendix.length() > 0) {
                    appendix.append("?");
                }
View Full Code Here

        addSelectionListener(new InputValidator());
        setNewEntityVisitor(new Receiver<Target>() {

            @Override
            public void handle(Target target) {
                target.setLocation(new DatabaseLocation());
                target.setAllowedLocationTypes(EnumSet.of(DataLocationType.Database));
            }
        });
    }
View Full Code Here

        this.singleTableOnly = true;
    }

    @Override
    public boolean prepareForForwardNavigation() {
        DatabaseLocation loc = getSelectedLocation();
        if (loc == null) {
            Alert.error(getWindow().getFrame(), PackageResources.TargetStartPage.Errors.NO_TARGET, "");
            return false;
        }
        return DriverSanityChecker.isDriverValid(loc, SourceTarget.Target);
View Full Code Here

    /**
     * The following page will be a {@link DatabaseTableSelectionPage}.
     */
    @Override
    public DatabaseTableSelectionPage 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) {
        Target target = getSelectedEntity();
        if (target != null) {
            // This cast is safe because we filter out all non-database targets:
            DatabaseLocation loc = (DatabaseLocation) target.getLocation();
            s.setDbLocation(loc);
            s.setTargetId(target.getID());
        } else {
            // This will never happen because a target must have been
            // specified before the wizard could leave this page.
View Full Code Here

        addSelectionListener(new InputValidator());
        setNewEntityVisitor(new Receiver<Source>() {

            @Override
            public void handle(Source source) {
                source.setLocation(new DatabaseLocation());
                source.setAllowedLocationTypes(EnumSet.of(DataLocationType.Database));
            }
        });
    }
View Full Code Here

        return null;
    }

    @Override
    public boolean prepareForForwardNavigation() {
        DatabaseLocation loc = getSelectedLocation();
        if (loc == null) {
            Alert.error(getWindow().getFrame(), PackageResources.SourceStartPage.Errors.NO_SOURCE, "");
            return false;
        }
        return DriverSanityChecker.isDriverValid(loc, SourceTarget.Source);
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.