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 the
PlatformData
item to
help with the Hibernate mapping to PlatformFileTypeData
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
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 Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
- Constant Field Values
-
variant
-
fileType
-
-
Constructor Details
-
FileTypeIndex
FileTypeIndex() -
FileTypeIndex
-
-
Method Details
-
getVariant
- Hibernate: many-to-one
- column="`variant_id`" outer-join="false"
-
setVariant
-
getDataFileType
- Hibernate: many-to-one
- column="`datafiletype_id`" outer-join="false"
-
setDataFileType
-
equals
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
- Throws:
ClassNotFoundException
IOException
-
writeObject
- Throws:
IOException
-