Package org.jitterbit.integration.data.entity

Examples of org.jitterbit.integration.data.entity.Target


            DataLocationType type = location.getDataLocationType();
            return StructureLocationAssociations.hasAssociatedStructure(type);
        }

        private static void checkTarget(Transformation tx, TransformationPipelineBrowser browser) {
            Target target = browser.getTarget();
            if (isApplicable(target)) {
                tx.setTargetId(target.getID());
            }
        }
View Full Code Here


    }

    private void collectLinkToResponseTarget(HttpLocation loc) {
        TargetId responseTargetId = loc.getTargetIdForResponse();
        if (responseTargetId != null) {
            Target responseTarget = dataLookup.getEntity(responseTargetId, Target.class);
            if (responseTarget != null) {
                links.add(new HttpTargetResponseLink(responseTarget, target));
            } else {
                LinkUtils.logMissingLink(target, EntityType.Target, responseTargetId);
            }
View Full Code Here

*/
public final class TargetListDecoratorFactory extends ListDecoratorFactory {

    @Override
    protected ListDecorator createListDecorator(IntegrationEntity e) {
        final Target target = (Target) e;
        return new IntegrationEntityListDecorator(target) {

            @Override
            protected Icon getDefaultIcon(IntegrationEntity entity) {
                if (LocationDecoratePageIconsPreference.value()) {
View Full Code Here

    }

    private void replaceHttpResponseTarget(HttpLocation location) {
        TargetId responseTargetId = location.getTargetIdForResponse();
        if (responseTargetId != null) {
            Target replacement = (Target) service.getReplacement(responseTargetId);
            if (replacement != null) {
                location.setTargetForResponse(replacement.getID());
            }
        }
    }
View Full Code Here

        Source src = (Source) sourceSelector.getSelectedEntity();
        op.setSource(src);
    }

    private void applySelectedTarget(Operation op) {
        Target tgt = (Target) targetSelector.getSelectedEntity();
        op.setTarget(tgt);
    }
View Full Code Here

    public void setTarget(Target t) {
        if (t == target) {
            return;
        }
        Target old = target;
        target = t;
        changeSupport.firePropertyChange(TARGET, old, t);
    }
View Full Code Here

            }
        });
    }

    public DatabaseLocation getSelectedLocation() {
        Target target = getSelectedEntity();
        if (target != null) {
            DataLocation dataLocation = target.getLocation();
            if (dataLocation instanceof DatabaseLocation) {
                return (DatabaseLocation) dataLocation;
            }
        }
        return null;
View Full Code Here

        }
        return nextPageCache.get(location);
    }

    private DatabaseTableSelectionPage createNewNextPage(DatabaseLocation location) {
        Target target = getSelectedEntity();
        DatabaseTableSelectionPage page = new DatabaseTableSelectionPage(
                        getWizard(), location, null, target.getID(), SourceTarget.Target, singleTableOnly);
        nextPageCache.put(location, page);
        return page;
    }
View Full Code Here

        return page;
    }

    @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.
            throw new RuntimeException("Tried to complete a database structure wizard without a DB Target. " +
                    "This is a bug.");
View Full Code Here

            if (tx.isXmlSourceEdi()) {
                Source s = browser.getSource();
                applyPluginToSourceOrTarget(s);
            }
            if (tx.isXmlTargetEdi()) {
                Target t = browser.getTarget();
                applyPluginToSourceOrTarget(t);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.entity.Target

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.