Class FileSetMemberData

java.lang.Object
net.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.FileSetMemberData
All Implemented Interfaces:
IdentifiableData, LoggableData, NoAutoUnlinkAnyToAny

public class FileSetMemberData
extends BasicData
implements 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:
FileSetMember, Developer documentation: Experimental platforms and item subtypes
Last modified
$Date: 2023-11-21 10:31:51 +0100 (Tue, 21 Nov 2023) $
Hibernate: class
table="`FileSetMembers`" lazy="true"
  • Field Details

  • Constructor Details

    • FileSetMemberData

      public FileSetMemberData()
  • Method Details

    • getFileSet

      public FileSetData 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

      public void setFileSet​(FileSetData fileSet)
    • getDataFileType

      public DataFileTypeData 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

      public void setDataFileType​(DataFileTypeData fileType)
    • getFile

      public FileData getFile()
      Get the file.
      Hibernate: column
      name="`file_id`" not-null="true" unique-key="FileSetMember_uniquefile"
      Hibernate: many-to-one
      outer-join="false"
    • setFile

      public void setFile​(FileData file)
    • isValid

      public Boolean 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

      public void setValid​(Boolean valid)
    • getErrorMessage

      public String getErrorMessage()
      The error message if the file validation failed.
      Hibernate: property
      column="`error_message`" type="text"
    • setErrorMessage

      public void setErrorMessage​(String errorMessage)