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

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


     * Checks if the operation uses JMS as source.
     *
     * @return <code>true</code> if the operation uses JMS as source
     */
    public boolean isJmsSource() {
        SourceId srcId = operation.getSourceId();
        if (srcId == null) {
            return false;
        }
        Source source = lookup.getEntity(srcId, Source.class);
        return isJmsLocation(source);
View Full Code Here


        accessController = controller;
    }

    public String lookupPassword(String sourceId, String targetId) throws ServerDbException, ServerAccessException {
        if (sourceId != null) {
            SourceId guid = null;
            try {
                guid = new SourceId(sourceId);
            } catch (IllegalArgumentException ex) {
                throw new ServerDbException("Invalid source ID: " + sourceId, ex);
            }
            return lookupPasswordFromDeployedSource(guid);
        } else if (targetId != null) {
View Full Code Here

        }
    }

    private IntegrationEntityId getSourceOrTargetId(WsDbLookupParams params) {
        if (StringUtils.isNotEmpty(params.getSourceGuid())) {
            return new SourceId(params.getSourceGuid());
        }
        if (StringUtils.isNotEmpty(params.getTargetGuid())) {
            return new TargetId(params.getTargetGuid());
        }
        throw new IllegalArgumentException("Must specify a Source or Target GUID.");
View Full Code Here

                        ws.getMd5Pwd());
    }

    private static ReadSourceParams toReadSourceParams(WsReadSourceParams ws) {
        ReadSourceParams params = new ReadSourceParams(
                        new SourceId(ws.getSourceGuid()),
                        toConnectionParams(ws.getConnectionParams()),
                        ws.getJtrFileName(),
                        ws.getDataFileName());
        params.adHocFilter = ws.getAdHocFilter();
        params.fetchSize = ws.getFetchSize();
View Full Code Here

            }
        }
    }

    private DatabaseSource(ReadSourceParams params) throws ExternalDatabaseException {
        SourceId sourceId=params.sourceId;
        ConnectionParams connParams=params.connectionParameters;
        attributeLists=Maps.newHashMap();
        statementCache = Maps.newHashMap();
        fetchSize = params.fetchSize;
        sourceValueReader = new SourceValueReader();
View Full Code Here

            setPreselectedSource(wizard);
        }

        private void setPreselectedSource(TransformationWizard wizard) {
            Transformation tx = wizard.getTransformation();
            SourceId sourceId = tx.getSourceId();
            if (sourceId != null) {
                IntegrationEntityLookup itemLookup = wizard.getItemLookup();
                Source src = itemLookup.getEntity(sourceId, Source.class);
                if (src != null) {
                    DataLocation location = src.getLocation();
View Full Code Here

                dataLookup);
        collectedLinks.addAll(factory.getLinks());
    }

    private void collectSourceLink() {
        SourceId srcId = transformation.getSourceId();
        if (srcId != null) {
            Source src = dataLookup.getEntity(srcId, Source.class);
            if (src != null) {
                collectedLinks.add(new StrongEntityLink(src, transformation));
                DataLocation loc = src.getLocation();
View Full Code Here

            return structureType == DataStructureType.WebServiceRequest;
        } else {
            // Databases are special, since the Database source itself
            // (rather than just a structure) is used when defining the
            // transformation:
            SourceId tfSrcId = transformation.getSourceId();
            if (tfSrcId != null) {
                return tfSrcId.equals(source.getID());
            }
            DataLocation loc = source.getLocation();
            return (loc != null) && input.isCompatibleWith(loc);
        }
    }
View Full Code Here

    public static void main(String[] args) throws Exception {
        SourcesTab tab = new SourcesTab();
        try {
            SourcesTabRow row = tab.query(-99);
            System.out.println(row.get_source_name());
            row = tab.query(new SourceId("d1b5723a-3aaa-4205-846d-dcca925e901e"));
            System.out.println(row.get_source_name());
        } finally {
            tab.close();
        }
    }
View Full Code Here

    private static DefaultConnectionFactory createConnectionFactory(ExternalApiSupport eas,
                                                             String driverName,
                                                             WsConnectionParams wsConnParams,
                                                             String sourceGuidAsString,
                                                             String targetGuidAsString) throws ServerAccessException {
        SourceId sourceGuid = null;
        if (sourceGuidAsString != null) {
            try {
                sourceGuid = new SourceId(sourceGuidAsString);
            } catch (Exception ex) {
                throw new RuntimeException("Invalid source GUID: " + sourceGuidAsString);
            }
        }
        TargetId targetGuid = null;
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.