Package 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 thePlatformData
item to help with the Hibernate mapping toPlatformFileTypeData
object.- Version:
- 2.5
- Author:
- Nicklas
- See Also:
- Developer documentation: Experimental platforms and item subtypes, 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 DataFileTypeData
fileType
private static long
serialVersionUID
private PlatformVariantData
variant
-
Constructor Summary
Constructors Constructor Description FileTypeIndex()
FileTypeIndex(PlatformVariantData variant, DataFileTypeData fileType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Check if this object is equal to anotherFileTypeIndex
object.DataFileTypeData
getDataFileType()
PlatformVariantData
getVariant()
int
hashCode()
Calculate the hash code for the object.private void
readObject(ObjectInputStream ois)
(package private) void
setDataFileType(DataFileTypeData fileType)
(package private) void
setVariant(PlatformVariantData variant)
private void
writeObject(ObjectOutputStream ois)
-
-
-
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)
-
getDataFileType
public DataFileTypeData getDataFileType()
- Hibernate: many-to-one
- column="`datafiletype_id`" outer-join="false"
-
setDataFileType
void setDataFileType(DataFileTypeData fileType)
-
equals
public boolean equals(Object o)
Check if this object is equal to anotherFileTypeIndex
object. They are equal if both have the same fileType and variant id.
-
hashCode
public int hashCode()
Calculate the hash code for the object.
-
readObject
private void readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException
- Throws:
ClassNotFoundException
IOException
-
writeObject
private void writeObject(ObjectOutputStream ois) throws IOException
- Throws:
IOException
-
-