equip.data
Class ItemBindingInfo

java.lang.Object
  extended byequip.runtime.Object
      extended byequip.runtime.ValueBase
          extended byequip.data.ItemBindingInfo
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
ItemBindingInfoImpl

public abstract class ItemBindingInfo
extends ValueBase

Metadata for an ItemBinding, which is the link between an ItemData and its dataspace. Embodies elements of the semantics of the data service.


Field Summary
 boolean deleting
          used internally for deleteItemOnMatch
 Lease itemLease
          lease for item
 boolean local
          whether the item should be kept exclusively within the local dataspace replica
 int locked
          kind of lock applied to the data item (not currently used)
 GUID owner
          unique id for the code fragment 'allowed' to update/mutate/delete
 boolean processBound
          whether the item should be deleted if its responsible disconnects or fails.
 GUID responsible
          id of database replica allowed/responsible for auto-deletes (on lease/pattern match)
 
Constructor Summary
ItemBindingInfo()
          Default no-arg constructor
 
Method Summary
 boolean _equals_helper(ItemBindingInfo c)
          Internal IDL-generated equality test helper
 boolean _matches_helper(ItemBindingInfo c)
          Internal IDL-generated match test helper
 boolean equals(java.lang.Object c)
          Standard IDL-generated equality test.
 java.lang.String getModuleName()
          IDL-generated helper routine to get module name (currently unimplemented).
abstract  void init(GUID agentId, int locked, boolean processBound, boolean local, Lease itemLease)
          initialisation helper
 boolean matches(java.lang.Object c)
          Standard IDL-generated template match test.
 void readObject(ObjectInputStream in)
          Internal IDL-generated serialisation helper.
 void writeObject(ObjectOutputStream out)
          Internal IDL-generated serialisation helper.
 
Methods inherited from class equip.runtime.ValueBase
_equals_helper, _matches_helper, clone
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

owner

public GUID owner
unique id for the code fragment 'allowed' to update/mutate/delete


responsible

public GUID responsible
id of database replica allowed/responsible for auto-deletes (on lease/pattern match)


locked

public int locked
kind of lock applied to the data item (not currently used)


processBound

public boolean processBound
whether the item should be deleted if its responsible disconnects or fails.


local

public boolean local
whether the item should be kept exclusively within the local dataspace replica


deleting

public boolean deleting
used internally for deleteItemOnMatch


itemLease

public Lease itemLease
lease for item

Constructor Detail

ItemBindingInfo

public ItemBindingInfo()
Default no-arg constructor

Method Detail

init

public abstract void init(GUID agentId,
                          int locked,
                          boolean processBound,
                          boolean local,
                          Lease itemLease)
initialisation helper


getModuleName

public java.lang.String getModuleName()
IDL-generated helper routine to get module name (currently unimplemented).

Overrides:
getModuleName in class Object
Returns:
name of this class's module

equals

public boolean equals(java.lang.Object c)
Standard IDL-generated equality test.

Overrides:
equals in class ValueBase
Parameters:
c - The object to be compared against this.
Returns:
true if this is equal to c

_equals_helper

public boolean _equals_helper(ItemBindingInfo c)
Internal IDL-generated equality test helper


matches

public boolean matches(java.lang.Object c)
Standard IDL-generated template match test.

Overrides:
matches in class ValueBase
Parameters:
c - The object to be checked against this template.
Returns:
true if this (as a template) matches the argument

_matches_helper

public boolean _matches_helper(ItemBindingInfo c)
Internal IDL-generated match test helper


writeObject

public void writeObject(ObjectOutputStream out)
                 throws java.io.IOException
Internal IDL-generated serialisation helper. Used by ObjectInputStream and ObjectOutputStream only.

Overrides:
writeObject in class ValueBase
Throws:
java.io.IOException

readObject

public void readObject(ObjectInputStream in)
                throws java.io.IOException,
                       java.lang.ClassNotFoundException,
                       java.lang.InstantiationException
Internal IDL-generated serialisation helper. Used by ObjectInputStream and ObjectOutputStream only.

Overrides:
readObject in class ValueBase
Throws:
java.io.IOException
java.lang.ClassNotFoundException
java.lang.InstantiationException