2.17.2: 2011-06-17

net.sf.basedb.core.data
Class FileTypeIndex

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

public class FileTypeIndex
extends Object
implements Serializable

This is a helper class for the PlatformData item to help with the Hibernate mapping to PlatformFileTypeData object.

Version:
2.5
Author:
Nicklas
See Also:
Data API - Experimental platforms, Serialized Form
Last modified
$Date: 2010-08-13 10:50:27 +0200 (Fri, 13 Aug 2010) $

Field Summary
private  DataFileTypeData fileType
           
private static long serialVersionUID
           
private  PlatformVariantData variant
           
 
Constructor Summary
FileTypeIndex()
           
FileTypeIndex(PlatformVariantData variant, DataFileTypeData fileType)
           
 
Method Summary
 boolean equals(Object o)
          Check if this object is equal to another FileTypeIndex object.
 DataFileTypeData getFileType()
           
 PlatformVariantData getVariant()
           
 int hashCode()
          Calculate the hash code for the object.
private  void readObject(ObjectInputStream ois)
           
(package private)  void setFileType(DataFileTypeData fileType)
           
(package private)  void setVariant(PlatformVariantData variant)
           
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

variant

private transient PlatformVariantData variant

fileType

private transient DataFileTypeData fileType
Constructor Detail

FileTypeIndex

FileTypeIndex()

FileTypeIndex

public FileTypeIndex(PlatformVariantData variant,
                     DataFileTypeData fileType)
Method Detail

getVariant

public PlatformVariantData getVariant()
Hibernate: many-to-one
column="`variant_id`" outer-join="false"

setVariant

void setVariant(PlatformVariantData variant)

getFileType

public DataFileTypeData getFileType()
Hibernate: many-to-one
column="`datafiletype_id`" outer-join="false"

setFileType

void setFileType(DataFileTypeData fileType)

equals

public boolean equals(Object o)
Check if this object is equal to another FileTypeIndex object. They are equal if both have the same fileType and variant id.

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