Package org.jitterbit.integration.data.entity.id

Examples of org.jitterbit.integration.data.entity.id.TargetId


        addStartPage();
    }

    private DatabaseStructureWizardPage createObjectSelectionPage(Wizard wizard, Locatable database, SourceTarget st) {
        SourceId sourceId = null;
        TargetId targetId = null;
        if (database instanceof Source) {
            sourceId = (SourceId) database.getID();
        } else {
            targetId = (TargetId) database.getID();
        }
View Full Code Here


        SourceId srcId = operation.getSourceId();
        setSource(dataLookup.getEntity(srcId, Source.class));
    }

    private void resetTarget() {
        TargetId tgtId = operation.getTargetId();
        setTarget(dataLookup.getEntity(tgtId, Target.class));
    }
View Full Code Here

    @Override
    public boolean isDeepCopyable() {
        DataLocation location = getLocation();
        if (location instanceof HttpLocation) {
            TargetId responseId = ((HttpLocation) location).getTargetIdForResponse();
            return responseId != null;
        }
        return false;
    }
View Full Code Here

     * @param targetId
     *            the <code>TargetId</code> of the target that is to receive the response; or
     *            <code>null</code> if the response should be ignored.
     */
    public void setTargetForResponse(TargetId targetId) {
        TargetId old;
        synchronized (getDataLock()) {
            old = getTargetIdForResponse();
            setProperty(PROPERTY_RESPONSE_TARGET_ID, targetId);
        }
        if (!KongaID.areEqual(targetId, old)) {
View Full Code Here

     */
    public TargetId getTargetIdForResponse() {
        String s = getProperty(PROPERTY_RESPONSE_TARGET_ID);
        if ((s != null) && (s.length() > 0)) {
            try {
                return new TargetId(s);
            } catch (IllegalArgumentException ex) {
                // This will happen if the fied contains "null" rather than
                // it being empty. We return null if this happens.
            }
        }
View Full Code Here

            collectLinkToResponseTarget((HttpLocation) loc);
        }
    }

    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 {
View Full Code Here

            replaceHttpResponseTarget((HttpLocation) location);
        }
    }

    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

     */
    public TargetId getTargetId() {
        String s = getProperty(TARGET_ID_PROPERTY);
        if (s != null) {
            try {
                return new TargetId(s);
            } catch (IllegalArgumentException ex) {
                // return null
            }
        }
        return null;
View Full Code Here

     * @param tgtId
     *            a <code>TargetId</code>, or <code>null</code> if this location should not be
     *            associated with a <code>Target</code>.
     */
    public void setTargetId(TargetId tgtId) {
        TargetId old;
        synchronized (getDataLock()) {
            old = getTargetId();
            setProperty(TARGET_ID_PROPERTY, tgtId);
            // If this location is used by a Target, we blank out the Source ID
            if (tgtId != null) {
View Full Code Here

        }
    }

    @Override
    public void setStructureToEdit(StructureToEdit toEdit) {
        TargetId tgtId = toEdit.getStructure().getTargetId();
        // XXX: This is a temporary hack. All database structures created in 1.3 and later
        // will have the TargetId set.
        if (tgtId == null) {
            tgtId = toEdit.getTransformation().getTargetId();
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.entity.id.TargetId

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.