de.iai.ilcd.model.common
Class XmlFile
java.lang.Object
de.iai.ilcd.model.common.XmlFile
- All Implemented Interfaces:
- java.io.Serializable
@Entity
public class XmlFile
- extends java.lang.Object
- implements java.io.Serializable
- Author:
- clemens.duepmeier
- See Also:
- Serialized Form
Field Summary |
protected java.lang.String |
content
Uncompressed version of XML content. |
Method Summary |
protected void |
compressContent()
Compress the content of XML file prior to persist/merge events in order to save database space and be compatible
with MySQL server default configurations as long as possible (1MB max package size) |
protected void |
decompressContent()
Decompress content of XML file after loading. |
boolean |
equals(java.lang.Object object)
|
java.lang.String |
getContent()
|
java.lang.Long |
getId()
|
int |
hashCode()
|
void |
setContent(java.lang.String content)
|
void |
setId(java.lang.Long id)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
content
protected java.lang.String content
- Uncompressed version of XML content. Is not stored in database, will be set automatically after loading
compressedContent
from database.
- See Also:
decompressContent()
XmlFile
public XmlFile()
getId
public java.lang.Long getId()
setId
public void setId(java.lang.Long id)
getContent
public java.lang.String getContent()
setContent
public void setContent(java.lang.String content)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in class java.lang.Object
compressContent
protected void compressContent()
throws java.lang.Exception
- Compress the content of XML file prior to persist/merge events in order to save database space and be compatible
with MySQL server default configurations as long as possible (1MB max package size)
- Throws:
java.lang.Exception
- if anything goes wrong, just in-memory IO operations, should not happen- See Also:
decompressContent()
decompressContent
protected void decompressContent()
throws java.lang.Exception
- Decompress content of XML file after loading. The reason for doing this, see
compressContent()
- Throws:
java.lang.Exception
- if anything goes wrong, just in-memory IO operations, should not happen- See Also:
compressContent()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object