Examples of KamInfo


Examples of org.openbel.framework.api.internal.KAMCatalogDao.KamInfo

            } catch (InvalidIdException e) {
                throw new KamStoreServiceException("Error processing KAM edge",
                        e);
            }

            final KamInfo kamInfo =
                    getKamInfo(kamElementRef, "Error processing KAM edge");
            final org.openbel.framework.api.Kam objKam =
                    kamCacheService.getKam(kamInfo.getName());
            if (objKam == null) {
                throw new KamStoreServiceException(
                        new InvalidIdException(kamElementRef.getEncodedString()));
            }
View Full Code Here

Examples of org.openbel.framework.api.internal.KAMCatalogDao.KamInfo

            // Get the real Kam from the KamCache
            org.openbel.framework.api.Kam kam;
            try {
                KamStoreObjectRef ref = Converter.decodeEdge(first);
                final KamInfo info = getKamInfo(ref, "Error processing KAM edge");
                kam = kamCacheService.getKam(info.getName());
                if (kam == null) {
                    throw new KamStoreServiceException(new InvalidIdException(ref.getEncodedString()));
                }
            } catch (InvalidIdException e) {
                throw new KamStoreServiceException("Error processing KAM edge", e);
View Full Code Here

Examples of org.openbel.framework.api.internal.KAMCatalogDao.KamInfo

    private KamInfo getKamInfo(final KamStoreObjectRef kamElementRef,
            String errorMsg)
            throws KamStoreServiceException {

        final int kamInfoId = kamElementRef.getKamInfoId();
        KamInfo kamInfo = null;
        try {
            kamInfo = kamCatalogDao.getKamInfoById(kamInfoId);
        } catch (SQLException e) {
            throw new KamStoreServiceException(errorMsg, e);
        }
View Full Code Here

Examples of org.openbel.framework.api.internal.KAMCatalogDao.KamInfo

        } catch (InvalidIdException e) {
            throw new RequestException("Error processing KAM node", e);
        }

        org.openbel.framework.api.Kam objKam;
        final KamInfo kamInfo = getKamInfo(kamElementRef,
                "Error processing KAM node");
        objKam = kamCacheService.getKam(kamInfo.getName());

        // Get the Dialect (may be null)
        final Dialect dialect = getDialect(request.getDialect());
        if (dialect != null) {
            objKam = new KamDialect(objKam, dialect);
View Full Code Here

Examples of org.openbel.framework.api.internal.KAMCatalogDao.KamInfo

            kamElementRef = Converter.decodeNode(kamNode);
        } catch (InvalidIdException e) {
            throw new RequestException("Error processing KAM node", e);
        }

        final KamInfo kamInfo = getKamInfo(kamElementRef,
                "Error processing KAM node");
        org.openbel.framework.api.Kam objKam;
        objKam = kamCacheService.getKam(kamInfo.getName());
        if (objKam == null) {
            throw new RequestException("Error processing KAM node",
                    new InvalidIdException(kamElementRef.getEncodedString()));
        }
        // Get the Dialect (may be null)
View Full Code Here

Examples of org.openbel.framework.api.internal.KAMCatalogDao.KamInfo

        List<org.openbel.framework.api.Kam.KamNode> nodes = findKamNodesByNamespacevalues(
                request.getNamespaceValues(), request.getFilter(), objKam,
                kAMStore, equivalencer);

        KamInfo kamInfo = objKam.getKamInfo();
        FindKamNodesByNamespaceValuesResponse response =
                OBJECT_FACTORY.createFindKamNodesByNamespaceValuesResponse();
        for (org.openbel.framework.api.Kam.KamNode node : nodes) {
            response.getKamNodes().add(convert(kamInfo, node));
        }
View Full Code Here

Examples of org.openbel.framework.api.internal.KAMCatalogDao.KamInfo

        return convert(objKam, edgeFilter);
    }

    private KamInfo getKamInfo(final KamStoreObjectRef kamElementRef,
            final String errorMsg) throws RequestException {
        KamInfo kamInfo = null;
        try {
            kamInfo = kamCatalogDao
                    .getKamInfoById(kamElementRef.getKamInfoId());
        } catch (SQLException e) {
            throw new RequestException(errorMsg, e);
View Full Code Here

Examples of org.openbel.framework.api.internal.KAMCatalogDao.KamInfo

        }
        if (kam.getName() == null) {
            throw new RequestException(KAM_REQUEST_NO_NAME);
        }

        KamInfo kamInfo = null;
        List<KamInfo> catalog;
        try {
            catalog = kamCatalogDao.getCatalog();
        } catch (SQLException e) {
            String msg = getFirstMessage(e);
View Full Code Here

Examples of org.openbel.framework.api.internal.KAMCatalogDao.KamInfo

     * Create a test KAM for testing path finds.
     *
     * @return {@link Kam} the test KAM
     */
    private Kam createTestKAM() {
        KamInfo testKAMInfo = null;
        try {
            testKAMInfo = KamInfoUtil.createKamInfo();
        } catch (Exception e) {
            fail(e.getMessage());
        }
View Full Code Here

Examples of org.openbel.framework.api.internal.KAMCatalogDao.KamInfo

        testKAM = createTestKAM();
        assertNotNull(testKAM);
    }

    private static Kam createTestKAM() {
        KamInfo testKAMInfo = null;
        try {
            testKAMInfo = KamInfoUtil.createKamInfo();
        } catch (Exception e) {
            e.printStackTrace();
            fail(e.getMessage());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.