Class BinaryData<T extends Comet3Entity>
- java.lang.Object
-
- com.priint.pubserver.tagging.TaggingObject
-
- com.priint.pubserver.comet.bridge.Comet3Entity
-
- com.priint.pubserver.comet3.entity.BinaryData<T>
-
- Type Parameters:
T- the type parameter
- All Implemented Interfaces:
java.io.Serializable
public abstract class BinaryData<T extends Comet3Entity> extends Comet3Entity
The type Binary data. For internal use only- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.priint.pubserver.tagging.TaggingObject
TaggingObject.LinkedSetWrapper<T>
-
-
Field Summary
-
Fields inherited from class com.priint.pubserver.comet.bridge.Comet3Entity
id, timestamp
-
Fields inherited from class com.priint.pubserver.tagging.TaggingObject
tagsSet
-
-
Constructor Summary
Constructors Constructor Description BinaryData()Instantiates a new Binary data.BinaryData(java.lang.String session, T owner)Instantiates a new Binary data.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.StringcalculateFileId()Calculate file id string.byte[]getContent()Get content byte [ ].java.lang.StringgetContextSession()Gets context session.java.lang.StringgetFileId()Gets file id.intgetFileSize()Gets file size.intgetId()Gets id.java.lang.StringgetMimeType()Gets mime type.TgetOwner()Gets owner.java.lang.Class<?>getOwnerClass()Gets owner class.voidsetContent(byte[] content)Sets content.voidsetContextSession(java.lang.String contextSession)Sets context session.voidsetFileId(java.lang.String fileId)Sets file id.voidsetFileSize(int fileSize)Sets file size.voidsetId(int id)Sets id.voidsetMimeType(java.lang.String mimeType)Sets mime type.voidsetOwner(T owner)Sets owner.-
Methods inherited from class com.priint.pubserver.comet.bridge.Comet3Entity
entityEquals, entityEquals, getLastModificationTimestamp, info, postprocess, setLastModificationTimestamp
-
Methods inherited from class com.priint.pubserver.tagging.TaggingObject
addToTags, getTags, getTagValue, inTags, isA, removeFromTags, searchListByTags, setTags, setTags
-
-
-
-
Constructor Detail
-
BinaryData
public BinaryData()
Instantiates a new Binary data.
-
BinaryData
public BinaryData(java.lang.String session, T owner)Instantiates a new Binary data.- Parameters:
session- the sessionowner- the owner
-
-
Method Detail
-
calculateFileId
public abstract java.lang.String calculateFileId()
Calculate file id string.- Returns:
- the string
-
getFileId
public java.lang.String getFileId()
Gets file id.- Returns:
- the file id
-
setFileId
public void setFileId(java.lang.String fileId)
Sets file id.- Parameters:
fileId- the file id
-
getMimeType
public java.lang.String getMimeType()
Gets mime type.- Returns:
- the mime type
-
setMimeType
public void setMimeType(java.lang.String mimeType)
Sets mime type.- Parameters:
mimeType- the mime type
-
getFileSize
public int getFileSize()
Gets file size.- Returns:
- the file size
-
setFileSize
public void setFileSize(int fileSize)
Sets file size.- Parameters:
fileSize- the file size
-
getContent
public byte[] getContent()
Get content byte [ ].- Returns:
- the byte [ ]
-
setContent
public void setContent(byte[] content)
Sets content.- Parameters:
content- the content
-
getOwner
public T getOwner()
Gets owner.- Returns:
- the owner
-
setOwner
public void setOwner(T owner)
Sets owner.- Parameters:
owner- the owner
-
getContextSession
public java.lang.String getContextSession()
Gets context session.- Returns:
- the context session
-
setContextSession
public void setContextSession(java.lang.String contextSession)
Sets context session.- Parameters:
contextSession- the context session
-
getId
public int getId()
Description copied from class:Comet3EntityGets id.- Overrides:
getIdin classComet3Entity- Returns:
- the id
-
setId
public void setId(int id)
Description copied from class:Comet3EntitySets id.- Overrides:
setIdin classComet3Entity- Parameters:
id- the id
-
getOwnerClass
public java.lang.Class<?> getOwnerClass()
Gets owner class.- Returns:
- the owner class
-
-