rs.data.file.bo.AbstractFileBO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of data-file Show documentation
Show all versions of data-file Show documentation
Library for file-based data access
The newest version!
/*
* This file is part of RS Library (Data File Library).
*
* RS Library is free software: you can redistribute it
* and/or modify it under the terms of version 3 of the GNU
* Lesser General Public License as published by the Free Software
* Foundation.
*
* RS Library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with RS Library. If not, see
* .
*/
package rs.data.file.bo;
import java.beans.Transient;
import java.io.File;
import java.io.Serializable;
import rs.data.impl.bo.AbstractBO;
import rs.data.impl.dto.GeneralDTO;
/**
* A Business Object with a File underneath.
* @author ralph
*
*/
public abstract class AbstractFileBO extends AbstractBO> {
/** Serial UID */
private static final long serialVersionUID = 1L;
/** The file that we are connected with */
private File file;
/**
* Constructor.
*/
public AbstractFileBO() {
this(new GeneralDTO());
}
/**
* Constructor.
* @param dto - transfer file to be used
*/
public AbstractFileBO(GeneralDTO 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