2.17.2: 2011-06-17

net.sf.basedb.core.data
Class ContextIndex

java.lang.Object
  extended by net.sf.basedb.core.data.ContextIndex
All Implemented Interfaces:
Serializable

public class ContextIndex
extends Object
implements Serializable

Version:
2.0
Author:
Nicklas
See Also:
Session and client overview, Serialized Form
Last modified
$Date: 2010-08-13 10:50:27 +0200 (Fri, 13 Aug 2010) $

Field Summary
private  ClientData client
           
private  int itemType
           
private  String name
           
private static long serialVersionUID
           
private  String subContext
           
 
Constructor Summary
ContextIndex()
           
ContextIndex(ClientData client, int itemType, String subContext, String name)
           
 
Method Summary
 boolean equals(Object o)
          Check if this object is equal to another ContextIndex object.
 ClientData getClient()
          Get the client which uses this context.
 int getItemType()
           
 String getName()
          Get the name of this Context item.
 String getSubContext()
          Get the subcontext this Context belongs to.
 int hashCode()
          Calculate the hash code for the object.
private  void readObject(ObjectInputStream ois)
           
(package private)  void setClient(ClientData client)
           
(package private)  void setItemType(int itemType)
           
(package private)  void setName(String name)
           
(package private)  void setSubContext(String subContext)
           
private  void writeObject(ObjectOutputStream ois)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

client

private transient ClientData client

itemType

private int itemType

subContext

private String subContext

name

private String name
Constructor Detail

ContextIndex

ContextIndex()

ContextIndex

public ContextIndex(ClientData client,
                    int itemType,
                    String subContext,
                    String name)
Method Detail

getClient

public ClientData getClient()
Get the client which uses this context.

Hibernate: many-to-one
column="`client_id`" update="false" insert="false"

setClient

void setClient(ClientData client)

getItemType

public int getItemType()
Hibernate: property
column="`item_type`" type="int" insert="false" update="false"

setItemType

void setItemType(int itemType)

getSubContext

public String getSubContext()
Get the subcontext this Context belongs to.

Hibernate: property
column="`subcontext`" type="string" length="255" insert="false" update="false"

setSubContext

void setSubContext(String subContext)

getName

public String getName()
Get the name of this Context item.

Hibernate: property
column="`name`" type="string" length="255" insert="false" update="false"

setName

void setName(String name)

equals

public boolean equals(Object o)
Check if this object is equal to another ContextIndex object. They are equal if both have the same client, item type and context type

Overrides:
equals in class Object

hashCode

public int hashCode()
Calculate the hash code for the object.

Overrides:
hashCode in class Object

readObject

private void readObject(ObjectInputStream ois)
                 throws ClassNotFoundException,
                        IOException
Throws:
ClassNotFoundException
IOException

writeObject

private void writeObject(ObjectOutputStream ois)
                  throws IOException
Throws:
IOException

2.17.2: 2011-06-17