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
This class hols information about which file types
can be used together with item subtypes.
- Since:
- 3.0
- Author:
- Nicklas
- See Also:
- Last modified
- $Date: 2014-06-10 13:27:02 +0200 (ti, 10 jun 2014) $
- Hibernate: class
- table="`ItemSubtypeFileTypes`" lazy="true"
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DataFileTypeData
private boolean
private boolean
private ItemSubtypeData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
If multiple files of this type are allowed in a file set or not.Get the file type.Get the item subtype.boolean
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 Details
-
fileType
-
subtype
-
required
private boolean required -
multiple
private boolean multiple
-
-
Constructor Details
-
ItemSubtypeFileTypeData
public ItemSubtypeFileTypeData()
-
-
Method Details
-
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
-
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
-
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)
-