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
,NoAutoUnlinkAnyToAny
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:
- Last modified
- $Date: 2023-11-21 10:31:51 +0100 (Tue, 21 Nov 2023) $
- Hibernate: class
- table="`FileSetMembers`" lazy="true"
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
private FileData
private FileSetData
private DataFileTypeData
private Boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the type of this file.The error message if the file validation failed.getFile()
Get the file.Get the file set this file belongs to.isValid()
If the file has been validated or not.void
setDataFileType
(DataFileTypeData fileType) void
setErrorMessage
(String errorMessage) void
void
setFileSet
(FileSetData fileSet) void
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
-