Package net.sf.basedb.core.data
Class FileSetMemberData
java.lang.Object
net.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.FileSetMemberData
- All Implemented Interfaces:
IdentifiableData
,LoggableData
public class FileSetMemberData extends BasicData implements LoggableData
This class hols information about individual files attached
to items that store data in files instead of in the
database.
- Version:
- 2.5
- Author:
- Nicklas
- See Also:
FileSetMember
, Developer documentation: Experimental platforms and item subtypes- Last modified
- $Date: 2014-06-10 13:27:02 +0200 (ti, 10 jun 2014) $
- Hibernate: class
- table="`FileSetMembers`" lazy="true"
-
Field Summary
Fields Modifier and Type Field Description private String
errorMessage
private FileData
file
private FileSetData
fileSet
private DataFileTypeData
fileType
private Boolean
valid
-
Constructor Summary
Constructors Constructor Description FileSetMemberData()
-
Method Summary
Modifier and Type Method Description DataFileTypeData
getDataFileType()
Get the type of this file.String
getErrorMessage()
The error message if the file validation failed.FileData
getFile()
Get the file.FileSetData
getFileSet()
Get the file set this file belongs to.Boolean
isValid()
If the file has been validated or not.void
setDataFileType(DataFileTypeData fileType)
void
setErrorMessage(String errorMessage)
void
setFile(FileData file)
void
setFileSet(FileSetData fileSet)
void
setValid(Boolean valid)
Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getId, getVersion, hashCode, setId, setVersion, toString
-
Field Details
-
fileSet
-
fileType
-
file
-
valid
-
errorMessage
-
-
Constructor Details
-
FileSetMemberData
public FileSetMemberData()
-
-
Method Details
-
getFileSet
Get the file set this file belongs to.- Hibernate: column
- name="`fileset_id`" not-null="true" unique-key="FileSetMember_uniquefile"
- Hibernate: many-to-one
- outer-join="false" update="false"
-
setFileSet
-
getDataFileType
Get the type of this file. A set may only contain one file for each type.- Hibernate: column
- name="`datafiletype_id`" not-null="true" unique-key="FileSetMember_uniquefile"
- Hibernate: many-to-one
- outer-join="false" update="false"
-
setDataFileType
-
getFile
Get the file.- Hibernate: column
- name="`file_id`" not-null="true" unique-key="FileSetMember_uniquefile"
- Hibernate: many-to-one
- outer-join="false"
-
setFile
-
isValid
If the file has been validated or not. A null value indicates that the file hasn't been validated. A FALSE value indicates an invalid file.- Hibernate: property
- column="`valid`" type="boolean" not-null="false"
-
setValid
-
getErrorMessage
The error message if the file validation failed.- Hibernate: property
- column="`error_message`" type="text"
-
setErrorMessage
-