Examples of OzoneProxy


Examples of org.ozoneDB.OzoneProxy

            Collection col = DatabaseManager.getCollection(collectionURI);
            //Collection col = database.getCollection(collectionURI);
            Document doc = parseDocument();
            XMLResource resource = (XMLResource)col.getResource(resourceName);
            if (resource == null) {
                OzoneProxy o = db.objectForName(resourceName);
                if (o != null) {
                    System.out.println("Object found as db oject, deleting it..");
                    db.deleteObject(o);
                }
                System.out.println("resource is null, create the resource with name " + resourceName);
View Full Code Here

Examples of org.ozoneDB.OzoneProxy

    public void perform( Transaction ta ) throws Exception {
        // env.logWriter.newEntry (this, "DbCreateObj.perform()...", LogWriter.DEBUG);
        ObjectContainer container = ta.createObjectAndPin( className, access, objName, sig, args, null );

        try {
            OzoneProxy    resultingProxy  = container.ozoneProxy();

            getProxyObjectGate().addObjectReferencedByClient(resultingProxy);

            if (Env.selfCheck) {
                if (resultingProxy==null) { // The Proxy should never be null.
View Full Code Here

Examples of org.ozoneDB.OzoneProxy

    }
   
   
    public void perform( Transaction ta ) throws Exception {
        // env.logWriter.newEntry (this, "DbObjForName.perform()...", LogWriter.DEBUG);
        OzoneProxy    resultingProxy  = ta.objectForName(name);

        getProxyObjectGate().addObjectReferencedByClient(resultingProxy);

      result = resultingProxy;
    }
View Full Code Here

Examples of org.ozoneDB.OzoneProxy

        ObjectID objID = new ObjectID((new Long(href)).longValue());
       
        try {
           
            Class proxyClass = Thread.currentThread().getContextClassLoader().loadClass(proxyType);
            OzoneProxy proxy = (OzoneProxy)proxyClass.newInstance();

            Field remoteID = proxyClass.getField( REMOTE_ID );
            remoteID.set(proxy, objID);

            ValueObjElement voe = new ValueObjElement(proxy);
View Full Code Here

Examples of org.ozoneDB.OzoneProxy

    public boolean containsObject( Object obj ) {
        if (!(obj instanceof OzoneProxy)) {
            throw new ClassNotPersistenceCapableException( obj.getClass().getName() );
        }
       
        OzoneProxy proxy = (OzoneProxy)obj;
        return proxy.link == env.database;
    }
View Full Code Here

Examples of org.ozoneDB.OzoneProxy

       
        if (!(obj instanceof OzoneProxy)) {
            throw new ClassNotPersistenceCapableException( obj.getClass().getName() );
        }
       
        OzoneProxy proxy = (OzoneProxy)obj;
        return proxy.link == db;
    }
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.