|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FileAttachableData
A fileattachable item is an item which can have a File
attached to it.
This interface defines Hibernate database mapping for the
file property to the database column file_id.
If a subclass wants to map the property to another column,
it should override the getFile() method and add a
Hibernate tag in the comment.
Reference implementation
private FileData file;
public FileData getFile()
{
return file;
}
public void setFile(FileData file)
{
this.file = file;
}
BasicData,
Developer documentation: Basic classes and interfaces| Method Summary | |
|---|---|
FileData |
getFile()
Get the file that is attached to the item. |
void |
setFile(FileData file)
Attach a file to the item. |
| Methods inherited from interface net.sf.basedb.core.data.IdentifiableData |
|---|
getId, getVersion |
| Method Detail |
|---|
FileData getFile()
FileData object or null if no file is attachedvoid setFile(FileData file)
|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||