Package net.sf.basedb.core.data
Class ItemSubtypeFileTypeData
- java.lang.Object
-
- net.sf.basedb.core.data.BasicData
-
- net.sf.basedb.core.data.ItemSubtypeFileTypeData
-
- All Implemented Interfaces:
IdentifiableData
public class ItemSubtypeFileTypeData extends BasicData
This class hols information about which file types can be used together with item subtypes.- Since:
- 3.0
- Author:
- Nicklas
- See Also:
ItemSubtypeFileType
, Developer documentation: Experimental platforms and item subtypes- Last modified
- $Date: 2014-06-10 13:27:02 +0200 (ti, 10 jun 2014) $
- Hibernate: class
- table="`ItemSubtypeFileTypes`" lazy="true"
-
-
Field Summary
Fields Modifier and Type Field Description private DataFileTypeData
fileType
private boolean
multiple
private boolean
required
private ItemSubtypeData
subtype
-
Constructor Summary
Constructors Constructor Description ItemSubtypeFileTypeData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getAllowMultiple()
If multiple files of this type are allowed in a file set or not.DataFileTypeData
getDataFileType()
Get the file type.ItemSubtypeData
getItemSubtype()
Get the item subtype.boolean
isRequired()
If a file of this type is required or not.void
setAllowMultiple(boolean multiple)
void
setDataFileType(DataFileTypeData fileType)
void
setItemSubtype(ItemSubtypeData subtype)
void
setRequired(boolean required)
-
Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getId, getVersion, hashCode, setId, setVersion, toString
-
-
-
-
Field Detail
-
fileType
private DataFileTypeData fileType
-
subtype
private ItemSubtypeData subtype
-
required
private boolean required
-
multiple
private boolean multiple
-
-
Method Detail
-
getDataFileType
public DataFileTypeData getDataFileType()
Get the file type.- Hibernate: column
- name="`datafiletype_id`" not-null="true" unique-key="ItemSubtypeFileType_uniquefile"
- Hibernate: many-to-one
- outer-join="false" update="false"
-
setDataFileType
public void setDataFileType(DataFileTypeData fileType)
-
getItemSubtype
public ItemSubtypeData getItemSubtype()
Get the item subtype.- Hibernate: column
- name="`subtype_id`" not-null="true" unique-key="ItemSubtypeFileType_uniquefile"
- Hibernate: many-to-one
- outer-join="false" update="false"
-
setItemSubtype
public void setItemSubtype(ItemSubtypeData subtype)
-
isRequired
public boolean isRequired()
If a file of this type is required or not.- Hibernate: property
- column="`required`" type="boolean" not-null="true"
-
setRequired
public void setRequired(boolean required)
-
getAllowMultiple
public boolean getAllowMultiple()
If multiple files of this type are allowed in a file set or not.- Hibernate: property
- column="`allow_multiple`" type="boolean" not-null="true"
-
setAllowMultiple
public void setAllowMultiple(boolean multiple)
-
-