Class Briefing
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.DatabaseBlobBean
org.deltava.beans.DatabaseDocumentBean
org.deltava.beans.event.Briefing
- All Implemented Interfaces:
Serializable, Comparable<Object>, IDBean, Cacheable
A bean to store an Online Event briefing.
- Since:
- 9.0
- Version:
- 10.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class DatabaseBlobBean
_buffer -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class DatabaseDocumentBean
getBuffer, getContentType, getExtension, getIsPDF, getSize, getText, load, setForcePDF, setForceSizeModifier and TypeMethodDescriptionbyte[]Returns the file buffer.Returns the document's MIME type.Returns the document's file extension.booleangetIsPDF()Returns if the briefing format is PDF.intgetSize()Returns the size of the image/file data.getText()Returns a text representation of the document.voidLoads a text document from a string.voidsetForcePDF(boolean isPDF) Forces the object type.voidsetForceSize(int size) Forces the object size.Methods inherited from class DatabaseBlobBean
clear, getInputStream, isLoaded, load, loadModifier and TypeMethodDescriptionvoidclear()Clears the buffer.Returns the content of the buffer.booleanisLoaded()Returns whether the buffer has been populated.voidload(byte[] buffer) Replaces the buffer data.voidload(InputStream is) Loads the contents of a stream into the buffer.Methods inherited from class DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateIDModifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.intbooleangetHexID()Returns the hexadecimal database ID of this object.intgetID()Returns the database ID of this object.inthashCode()voidsetID(int id) Update the database row ID of this bean.static voidvalidateID(int oldID, int newID) Validates a database ID.static voidvalidateID(int oldID, int newID, boolean allowZero) Validates a database ID.
-
Constructor Details
-
Briefing
public Briefing(byte[] data) Creates the bean from a binary blob.- Parameters:
data- the briefing data
-
Briefing
-