Package helma.objectmodel.db

Examples of helma.objectmodel.db.Node


        if (start < 0 || length < 0) {
            throw new EvaluatorException("Arguments must not be negative in HopObject.list(start, length)");
        }

        Node node = (Node) getNode();
        prefetchChildren(start, length);
        SubnodeList list = node.getSubnodeList();
        length = list == null ? 0 : Math.min(list.size() - start, length);
        if (length <= 0) {
            return Context.getCurrentContext().newArray(core.global, 0);
        }
        Object[] array = new Object[length];
View Full Code Here


            } catch (Exception x) {
                System.err.println("Error in Java constructor: "+x);
                throw new EvaluatorException(x.toString());
            }
        } else {
            INode node = new Node(protoname, protoname,
                    core.app.getWrappedNodeManager());
            Scriptable proto = core.getPrototype(protoname);
            HopObject hobj = new HopObject(protoname, core, node, proto);

            if (proto != null) {
View Full Code Here

            props.put("_children", childmapping);
            DbMapping dbmap = new DbMapping(core.app, null, props, true);
            dbmap.update();

            WrappedNodeManager nmgr = core.app.getWrappedNodeManager();
            Node node = new Node("HopQuery", Long.toString(collectionId++), null, nmgr);
            node.setDbMapping(dbmap);
            node.setState(Node.VIRTUAL);
            return new HopObject("HopQuery", core, node, core.hopObjectProto);
        }
View Full Code Here

TOP

Related Classes of helma.objectmodel.db.Node

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.