2.17.2: 2011-06-17

net.sf.basedb.core.data
Class FileSetMemberData

java.lang.Object
  extended by net.sf.basedb.core.data.BasicData
      extended by 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, Data API - Experimental platforms
Last modified
$Date: 2009-08-19 13:31:03 +0200 (Wed, 19 Aug 2009) $
Hibernate: class
table="`FileSetMembers`" lazy="true"

Field Summary
private  String errorMessage
           
private  FileData file
           
private  FileSetData fileSet
           
private  DataFileTypeData fileType
           
private  Boolean valid
           
 
Constructor Summary
FileSetMemberData()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

fileSet

private FileSetData fileSet

fileType

private DataFileTypeData fileType

file

private FileData file

valid

private Boolean valid

errorMessage

private String errorMessage
Constructor Detail

FileSetMemberData

public FileSetMemberData()
Method Detail

getFileSet

public FileSetData getFileSet()
Get the file set this file belongs to.

Hibernate: column
name="`fileset_id`" not-null="true" unique-key="uniquetype"
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="uniquetype"
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"
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)

2.17.2: 2011-06-17