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
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 Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
- Constant Field Values
-
client
-
itemType
private int itemType -
subContext
-
name
-
-
Constructor Details
-
ContextIndex
ContextIndex() -
ContextIndex
-
-
Method Details
-
getClient
Get the client which uses this context.- Hibernate: many-to-one
- column="`client_id`" update="false" insert="false"
-
setClient
-
getItemType
public int getItemType()- Hibernate: property
- column="`item_type`" type="int" insert="false" update="false"
-
setItemType
void setItemType(int itemType) -
getSubContext
Get the subcontext thisContext
belongs to.- Hibernate: property
- column="`subcontext`" type="string" length="255" insert="false" update="false"
-
setSubContext
-
getName
Get the name of thisContext
item.- Hibernate: property
- column="`name`" type="string" length="255" insert="false" update="false"
-
setName
-
equals
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
- Throws:
ClassNotFoundException
IOException
-
writeObject
- Throws:
IOException
-