Package net.sf.basedb.core.data
Class ContextIndex
- java.lang.Object
-
- net.sf.basedb.core.data.ContextIndex
-
- All Implemented Interfaces:
Serializable
public class ContextIndex extends Object implements Serializable
- Version:
- 2.0
- Author:
- Nicklas
- See Also:
- Developer documentation: Client, session and settings, Serialized Form
- Last modified
- $Date: 2015-04-16 13:47:41 +0200 (to, 16 apr 2015) $
-
-
Field Summary
Fields Modifier and Type Field Description private ClientData
client
private int
itemType
private String
name
private static long
serialVersionUID
private String
subContext
-
Constructor Summary
Constructors Constructor Description ContextIndex()
ContextIndex(ClientData client, int itemType, String subContext, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Check if this object is equal to anotherContextIndex
object.ClientData
getClient()
Get the client which uses this context.int
getItemType()
String
getName()
Get the name of thisContext
item.String
getSubContext()
Get the subcontext thisContext
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)
-
-
-
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 thisContext
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 thisContext
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 anotherContextIndex
object. They are equal if both have the same client, item type and context type
-
hashCode
public int hashCode()
Calculate the hash code for the object.
-
readObject
private void readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException
- Throws:
ClassNotFoundException
IOException
-
writeObject
private void writeObject(ObjectOutputStream ois) throws IOException
- Throws:
IOException
-
-