Package org.ozoneDB.core

Examples of org.ozoneDB.core.ObjectID


        // out.writeObject (remoteID);
    }


    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
        remoteID = new ObjectID(in.readLong());
        // remoteID = (ObjectID)in.readObject();

        ExternalDatabase db = (ExternalDatabase) linkTable.elementForKey(in);
        if (db != null) {
            link = db.linkForProxy(this);
View Full Code Here


   
   
    public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException {
        byte c = in.readByte();
       
        ObjectID key = ((IDTable)grandParent).newObjectID();
        key.readExternal( in );
        ClusterID data = ((IDTable)grandParent).newClusterID();
        data.readExternal( in );
        element = grandParent.newKeyData();
        element.set( key, data );
       
        DxKeyData elem = element;
        for (int i = 1; i < c; i++) {
            key = ((IDTable)grandParent).newObjectID();
            key.readExternal( in );
            data = ((IDTable)grandParent).newClusterID();
            data.readExternal( in );
            elem.next = ((IDTable)grandParent).newKeyData();
            elem.next.set( key, data );
            elem = elem.next;
View Full Code Here

    }

    public void addObjectReferencedByClient(OzoneProxy proxy) {
        if (proxy!=null) {
            synchronized (objectsReferencesByClient) {
                ObjectID id = proxy.remoteID();

                if (garbageCollectorToBeNotifiedOfExportedReferences!=null) {
                    garbageCollectorToBeNotifiedOfExportedReferences.notifyDatabaseObjectIsAboutToBeExported(id);
                }
View Full Code Here

     */
    protected void handleOzoneProxyMember(Attributes atts) {
        String proxyType = atts.getValue(ATTR_PROXY_TYPE);
        String href = atts.getValue(ATTR_XLINK_HREF_RAW);

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

     * @return Attributes (the additionally attributes)
     */
    public Attributes additionallyAtts( Object obj ) {
       
        if (obj instanceof OzoneObject) {
            ObjectID objID = ((OzoneObject)obj).container().id();
            String name = ((OzoneObject)obj).container().name();
            AttributesImpl atts = new AttributesImpl();
            atts.addAttribute( "", ATTR_OBJID, ATTR_OBJID, "long", "" + objID.value() );
           
            if (name != null) {
                atts.addAttribute( "", ATTR_OBJID, ATTR_OBJNAME, "String", name );
            }
           
View Full Code Here

TOP

Related Classes of org.ozoneDB.core.ObjectID

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.