com.jivesoftware.community
Class ContainerAwareEntityDescriptor
java.lang.Object
com.jivesoftware.community.EntityDescriptor
com.jivesoftware.community.ContainerAwareEntityDescriptor
- All Implemented Interfaces:
- JiveObject, com.tangosol.io.ExternalizableLite, Serializable
public class ContainerAwareEntityDescriptor
- extends EntityDescriptor
An entity descriptor that holds information about the container the entity belongs to (if any) at the time of
creation.
- See Also:
- Serialized Form
EMPTY_CONTAINER_ID
public static final long EMPTY_CONTAINER_ID
- See Also:
- Constant Field Values
EMPTY_CONTAINER_TYPE
public static final int EMPTY_CONTAINER_TYPE
- See Also:
- Constant Field Values
containerID
protected long containerID
containerType
protected int containerType
ContainerAwareEntityDescriptor
public ContainerAwareEntityDescriptor()
- No args constructor for serialization
ContainerAwareEntityDescriptor
public ContainerAwareEntityDescriptor(int objectType,
long objectID,
long containerID,
int containerType)
- Creates a new descriptor given an ID and type.
- Parameters:
objectType - the type of entity (or object) this is. This will be a constant from the JiveConstants
class.objectID - the ID of the entity (or object).containerType - the type of entity's (or object's) container. This will be a constant from the JiveConstants class.containerID - the ID of the entity's (or object's) container.
ContainerAwareEntityDescriptor
public ContainerAwareEntityDescriptor(JiveObject bean)
- Creates an
ContainerAwareEntityDescriptor instance from an existing JiveObject. If the JiveObject is an
instance of JiveContentObject or any other object with a container, container information is gathered for it.
- Parameters:
bean - The JiveObject to create a ContainerAwareEntityDescriptor for.- Since:
- 2.5
getContainerID
public long getContainerID()
getContainerType
public int getContainerType()
getCachedSize
public int getCachedSize()
- Overrides:
getCachedSize in class EntityDescriptor
readExternal
public void readExternal(DataInput dataInput)
throws IOException
- Specified by:
readExternal in interface com.tangosol.io.ExternalizableLite- Overrides:
readExternal in class EntityDescriptor
- Throws:
IOException
writeExternal
public void writeExternal(DataOutput dataOutput)
throws IOException
- Specified by:
writeExternal in interface com.tangosol.io.ExternalizableLite- Overrides:
writeExternal in class EntityDescriptor
- Throws:
IOException
equals
public boolean equals(Object o)
- Overrides:
equals in class EntityDescriptor
hashCode
public int hashCode()
- Overrides:
hashCode in class EntityDescriptor
toString
public String toString()
- Overrides:
toString in class EntityDescriptor
Copyright © 1999-2007 Jive Software.