Package org.openbel.framework.common.protonetwork.model

Examples of org.openbel.framework.common.protonetwork.model.SkinnyUUID


                    break;
                }

                String value = clean(param.getValue());

                SkinnyUUID uuid = null;
                try {
                    uuid = equivalencer.getUUID(ns, value);
                } catch (EquivalencerException e) {
                    throw new ResolverException(e);
                }
View Full Code Here


                Set<SkinnyUUID> uuids = uuidmap.get(knid);
                if (uuids == null) {
                    uuids = new HashSet<SkinnyUUID>();
                    uuidmap.put(knid, uuids);
                }
                uuids.add(new SkinnyUUID(msb, lsb));
            }
        } finally {
            close(rset);
        }
        return uuidmap;
View Full Code Here

        ps.setInt(1, fx.getValue());
        ps.setString(2, term);

        int index = 3;
        for (int i = 0; i < u.length; i++) {
            SkinnyUUID item = u[i];
            ps.setLong(index, item.getMostSignificantBits());
            ps.setLong(index + 1, item.getLeastSignificantBits());
            index += 2;
        }

        ResultSet rset = null;
        try {
View Full Code Here

    @Override
    public NamespaceValue findNamespaceEquivalence(
            NamespaceValue sourceNamespaceValue, Namespace targetNamespace)
            throws EquivalencerException {
        String equivalenceValue;
        SkinnyUUID uuid;
        if (sourceNamespaceValue.getEquivalence() != null) {
            uuid = convert(sourceNamespaceValue.getEquivalence());
            equivalenceValue =
                    equivalencer.equivalence(uuid, convert(targetNamespace));
        } else {
View Full Code Here

     */
    @Override
    public List<NamespaceValue> findEquivalences(
            NamespaceValue sourceNamespaceValue) throws EquivalencerException {
        Map<org.openbel.framework.common.model.Namespace, String> equivalenceMap;
        SkinnyUUID uuid;
        if (sourceNamespaceValue.getEquivalence() != null) {
            uuid = convert(sourceNamespaceValue.getEquivalence());
            equivalenceMap = equivalencer.equivalence(uuid);
        } else {
            final Namespace sourceNs = sourceNamespaceValue.getNamespace();
View Full Code Here

     * {@inheritDoc}
     */
    @Override
    public EquivalenceId getEquivalenceId(final NamespaceValue nv)
            throws EquivalencerException {
        SkinnyUUID uuid =
                equivalencer.getUUID(convert(nv.getNamespace()), nv.getValue());
        return convert(uuid);
    }
View Full Code Here

        wsNs.setResourceLocation(ns.getResourceLocation());
        return wsNs;
    }

    private SkinnyUUID convert(final EquivalenceId equiv) {
        return new SkinnyUUID(equiv.getMsb(), equiv.getLsb());
    }
View Full Code Here

                continue;
            }

            final TableParameter param = params[i];
            final String value = param.getValue();
            final SkinnyUUID lookup = bucket.lookup(value);

            // Null lookup means no equivalence
            if (lookup == null) {
                // Parameter index gets the current gi
                globalIndex.put(pIndex, gi);
View Full Code Here

     * {@inheritDoc}
     */
    @Override
    public SkinnyUUID deserialize(SerializerInput in) throws IOException,
            ClassNotFoundException {
        return new SkinnyUUID(in.readLong(), in.readLong());
    }
View Full Code Here

        JDBMEquivalenceLookup sourceLookup =
                openEquivalences.get(sourceNamespace);
        if (sourceLookup == null) {
            return null;
        }
        final SkinnyUUID sourceUUID = sourceLookup.lookup(sourceValue);

        if (sourceUUID == null) {
            return null;
        }
        return doFindEquivalence(destinationNamespace, sourceUUID);
View Full Code Here

TOP

Related Classes of org.openbel.framework.common.protonetwork.model.SkinnyUUID

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.