Package helma.objectmodel.db

Examples of helma.objectmodel.db.Relation


    private TransientProperty getProperty(String propname) {
        TransientProperty prop = (propMap == null) ? null : (TransientProperty) propMap.get(propname);

        // check if we have to create a virtual node
        if ((prop == null) && (dbmap != null)) {
            Relation rel = dbmap.getPropertyRelation(propname);

            if ((rel != null) && rel.isVirtual()) {
                prop = makeVirtualNode(propname, rel);
            }
        }

        return prop;
View Full Code Here


        // if this is a HopObject, check if the property is defined
        // in the type.properties db-mapping.
        if (obj instanceof INode && ! "hopobject".equalsIgnoreCase(prototypeName)) {
            DbMapping dbm = app.getDbMapping(prototypeName);
            if (dbm != null) {
                Relation rel = dbm.propertyToRelation(propname);
                if (rel != null && (rel.isPrimitive() || rel.isCollection()))
                    return true;
            }
        }
        Scriptable wrapped = Context.toObject(obj, global);
        return wrapped.has(propname, wrapped);
View Full Code Here

TOP

Related Classes of helma.objectmodel.db.Relation

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.