rs.data.file.bo.AbstractFileBO Maven / Gradle / Ivy
/**
*
*/
package rs.data.file.bo;
import java.io.File;
import java.io.Serializable;
import javax.persistence.Transient;
import rs.data.impl.bo.AbstractMapBO;
import rs.data.impl.dto.MapDTO;
/**
* A Business Object with a File underneath.
* @author ralph
*
*/
public abstract class AbstractFileBO extends AbstractMapBO {
/** Serial UID */
private static final long serialVersionUID = 1L;
/** The file that we are connected with */
private File file;
/**
* Constructor.
*/
public AbstractFileBO() {
this(new MapDTO());
}
/**
* Constructor.
*/
public AbstractFileBO(MapDTO dto) {
super(dto);
}
/**
* Returns the {@link #file}.
* @return the file
*/
@Transient
public File getFile() {
return file;
}
/**
* Sets the {@link #file}.
* @param file the file to set
*/
public void setFile(File file) {
this.file = file;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy