Package org.cyclos.model.utils
Class StoredFileVO
- java.lang.Object
-
- org.cyclos.model.Bean
-
- org.cyclos.model.EntityModel
-
- org.cyclos.model.EntityVO
-
- org.cyclos.model.NamedEntityVO
-
- org.cyclos.model.utils.StoredFileVO
-
- All Implemented Interfaces:
Serializable,Comparable<NamedEntityVO>,IBinaryFile,IEntity,INamedEntity
public class StoredFileVO extends NamedEntityVO implements IBinaryFile
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLASS_NAMEstatic BasicProperty<String,StoredFileVO>CONTENT_TYPEstatic BasicProperty<DateTime,StoredFileVO>LAST_MODIFIEDstatic BasicProperty<String,StoredFileVO>LAST_MODIFIED_IN_MILLISstatic BasicProperty<Integer,StoredFileVO>LENGTH-
Fields inherited from class org.cyclos.model.NamedEntityVO
NAME
-
Fields inherited from class org.cyclos.model.EntityModel
ID
-
-
Constructor Summary
Constructors Constructor Description StoredFileVO()StoredFileVO(Long id)StoredFileVO(Property<T,? super StoredFileVO> property, T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringclassName()protected List<Property<?,?>>doGetProperties()StringgetContentType()DateTimegetLastModified()StringgetLastModifiedInMillis()intgetLength()voidsetContentType(String contentType)voidsetLastModified(DateTime lastModified)voidsetLastModifiedInMillis(String lastModifiedInMillis)voidsetLength(int length)StringtoString()-
Methods inherited from class org.cyclos.model.NamedEntityVO
compareTo, getName, setName
-
Methods inherited from class org.cyclos.model.EntityModel
getId, setId
-
Methods inherited from class org.cyclos.model.Bean
addPropertyChangeListener, addPropertyChangeListener, attributeNames, backup, changes, clearAttributes, copyPropertiesTo, copyPropertiesTo, copyPropertiesTo, dataAccessor, firePropertyChange, get, getAttribute, initDataAccessor, properties, property, propertyMap, removeAttribute, removePropertyChangeListener, removePropertyChangeListener, restore, set, set, setAttribute, setWithPropagationId, values
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.model.INamedEntity
getName, setName
-
-
-
-
Field Detail
-
CLASS_NAME
public static final String CLASS_NAME
-
CONTENT_TYPE
public static final BasicProperty<String,StoredFileVO> CONTENT_TYPE
-
LAST_MODIFIED
public static final BasicProperty<DateTime,StoredFileVO> LAST_MODIFIED
-
LAST_MODIFIED_IN_MILLIS
public static final BasicProperty<String,StoredFileVO> LAST_MODIFIED_IN_MILLIS
-
LENGTH
public static final BasicProperty<Integer,StoredFileVO> LENGTH
-
-
Constructor Detail
-
StoredFileVO
public StoredFileVO()
-
StoredFileVO
public StoredFileVO(Long id)
-
StoredFileVO
public StoredFileVO(Property<T,? super StoredFileVO> property, T value)
-
-
Method Detail
-
doGetProperties
protected List<Property<?,?>> doGetProperties()
- Overrides:
doGetPropertiesin classNamedEntityVO
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceIBinaryFile
-
setContentType
public void setContentType(String contentType)
-
getLastModified
public DateTime getLastModified()
-
setLastModified
public void setLastModified(DateTime lastModified)
-
getLastModifiedInMillis
public String getLastModifiedInMillis()
-
setLastModifiedInMillis
public void setLastModifiedInMillis(String lastModifiedInMillis)
-
getLength
public int getLength()
- Specified by:
getLengthin interfaceIBinaryFile
-
setLength
public void setLength(int length)
-
toString
public String toString()
- Overrides:
toStringin classNamedEntityVO
-
-