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:
Last modified
$Date: 2015-04-16 13:47:41 +0200 (to, 16 apr 2015) $
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • client

      private transient ClientData client
    • itemType

      private int itemType
    • subContext

      private String subContext
    • name

      private String name
  • Constructor Details

    • ContextIndex

      ContextIndex()
    • ContextIndex

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

    • 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