net.sf.basedb.core.data
Class FileTypeIndex
java.lang.Object
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) $
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
variant
private transient PlatformVariantData variant
fileType
private transient DataFileTypeData fileType
FileTypeIndex
FileTypeIndex()
FileTypeIndex
public FileTypeIndex(PlatformVariantData variant,
DataFileTypeData fileType)
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