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

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


     * @see #setSourceId(SourceId)
     */
    public SourceId getSourceId() {
        String id = getProperty(SOURCE_SOURCE_ID, "");
        try {
            return new SourceId(id);
        } catch (IllegalArgumentException e) {
            return null;
        }
    }
View Full Code Here


     * This property corresponds to the <code>Source_SourceID</code> field in TransformationsTab.
     *
     * @see #setSourceId(SourceId)
     */
    public void setSourceId(SourceId id) {
        SourceId old = getSourceId();
        if (!KongaID.areEqual(id, old)) {
            if (id == null) {
                setProperty(SOURCE_SOURCE_ID, "");
            } else {
                setProperty(SOURCE_SOURCE_ID, id.toString());
View Full Code Here

    }

    private void restoreSourceId(Persistor p) {
        String value = p.getString("sourceId");
        if (value != null) {
            this.sourceId = new SourceId(value);
        }
    }
View Full Code Here

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

     *            having a source.
     * @see #setSource(Source)
     * @see #getSourceId()
     */
    public void setSourceId(SourceId id) {
        SourceId old = getSourceId();
        if (!KongaID.areEqual(id, old)) {
            setProperty(SOURCE_ID, id);
            firePropertyChange(SOURCE_ID, old, id);
        }
    }
View Full Code Here

            return getOperationType().isSchedulable() && isSourceSchedulable();
        }
    }

    private boolean isSourceSchedulable() {
        SourceId id = getSourceId();
        return id == null || Source.isSchedulable(id);
    }
View Full Code Here

     *
     */
    public static IntegrationEntityId createIdFromFunctionArg(String id, String prefix) {
        String strippedPrefix = StringUtils.removeEnd(prefix, ".");
        if ("s".equals(strippedPrefix)) {
            return new SourceId(id);
        } else if ("t".equals(strippedPrefix)) {
            return new TargetId(id);
        } else if ("op".equals(strippedPrefix)) {
            return new OperationId(id);
        } else if ("sc".equals(strippedPrefix)) {
            return new ScriptId(id);
        } else if ("m".equals(strippedPrefix)) {
            return new SourceId(id);
        } else {
            System.err.println("Unexpected id prefix: " + strippedPrefix);
            return null;
        }
    }
View Full Code Here

            fatal("The selected transformation requires a JMS source.");
        }
    }

    private boolean isOperationSourceJms() {
        SourceId srcId = operation.getSourceId();
        Source src = collector.context().getDataStore().getEntity(srcId, Source.class);
        return isJmsLocation(src);
    }
View Full Code Here

*/
public class DatabaseInfoRetrieverTest {

    public static void main(String[] args) throws Exception {
        ConnectionParams params = createParams();
        SourceId sourceGuid = new SourceId("475118e7-1b59-4371-bc09-598c19b12385");
        ConnectionFactory connectionFactory = new DefaultConnectionFactory(params, sourceGuid, null);
        DatabaseInfoRetriever r = new DatabaseInfoRetriever(connectionFactory);
        DatabaseInfo info = r.getInfo();
        System.out.println("Quote: " + info.getBeginEndQuote());
        System.out.println("Tables:");
View Full Code Here

*/
public class DatabaseColumnRetrieverTest {

    public static void main(String[] args) throws Exception {
        ConnectionParams params = createParams();
        SourceId sourceGuid = new SourceId("475118e7-1b59-4371-bc09-598c19b12385");
        ConnectionFactory connectionFactory = new DefaultConnectionFactory(params, sourceGuid, null);
        DatabaseColumnRetriever r = new DatabaseColumnRetriever(connectionFactory);
        DatabaseObject table = new DatabaseTable("OrderDetail", "public");
        r.populateColumns(new DatabaseObject[] { table });
        for (DatabaseColumn col : table.getAllColumns()) {
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.