Package net.sf.basedb.core.data
Class ContextIndex
java.lang.Object
net.sf.basedb.core.data.ContextIndex
- All Implemented Interfaces:
Serializable
- Version:
- 2.0
- Author:
- Nicklas
- See Also:
- Last modified
- $Date: 2015-04-16 13:47:41 +0200 (to, 16 apr 2015) $
-
Field Summary
Modifier and TypeFieldDescriptionprivate ClientData
private int
private String
private static final long
private String
-
Constructor Summary
ConstructorDescriptionContextIndex
(ClientData client, int itemType, String subContext, String name) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if this object is equal to anotherContextIndex
object.Get the client which uses this context.int
getName()
Get the name of thisContext
item.Get the subcontext thisContext
belongs to.int
hashCode()
Calculate the hash code for the object.private void
(package private) void
setClient
(ClientData client) (package private) void
setItemType
(int itemType) (package private) void
(package private) void
setSubContext
(String subContext) private void
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
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
-