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

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


        mode = configureWizardMode();
        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


        });
    }

    @Override
    public void setSelectedLdapLocation(LdapLocation loc) {
        SourceId srcId = loc.getSourceId();
        if (srcId != null) {
            setSelectedEntity(srcId);
        } else {
            setSelectedEntity(loc.getTargetId());
        }
View Full Code Here

        });
    }

    @Override
    public void setSelectedLdapLocation(LdapLocation loc) {
        SourceId srcId = loc.getSourceId();
        if (srcId != null) {
            setSelectedEntity(srcId);
        } else {
            setSelectedEntity(loc.getTargetId());
        }
View Full Code Here

        resetTarget();
        resetTransformation();
    }

    private void resetSource() {
        SourceId srcId = operation.getSourceId();
        setSource(dataLookup.getEntity(srcId, Source.class));
    }
View Full Code Here

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

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

        }
    }

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

    @Before
    public void setup() {
        opId = new OperationId();
        expression = createFunctionCall("RunOperation", opId);
        expression += ";";
        sourceId = new SourceId();
        expression += createFunctionCall("ReadFile", sourceId);
        expression += ";";
        targetId = new TargetId();
        expression += createFunctionCall("WriteFile", targetId);
        expression += ";";
View Full Code Here

        Source source = getPreconfiguredSource();
        return getDataStructureTypeFromLocatable(source);
    }

    private Source getPreconfiguredSource() {
        SourceId sourceId = transformation.getSourceId();
        return itemLookup != null ? itemLookup.getEntity(sourceId, Source.class) : null;
    }
View Full Code Here

        assertTrue(original.equals(restored));
    }
   
    private LdapLocation createLocation() {
        LdapLocation loc = new LdapLocation();
        loc.setSourceId(new SourceId());
        return loc;
    }
View Full Code Here

TOP

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

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.