com.trendmicro.grid.acl.ds.jpa.entities
Class JpaFileReport
java.lang.Object
com.trendmicro.grid.acl.l0.datatypes.FileIdentifier
com.trendmicro.grid.acl.l0.datatypes.FileReport
com.trendmicro.grid.acl.ds.jpa.entities.JpaFileReport
- All Implemented Interfaces:
- com.trendmicro.grid.acl.l0.datatypes.Validatable, Serializable, Comparable<com.trendmicro.grid.acl.l0.datatypes.FileIdentifier>
@Entity(name="FILE_CONTENT_STATISTICS")
public class JpaFileReport
- extends com.trendmicro.grid.acl.l0.datatypes.FileReport
- implements Serializable
Implements a read and writeable statistics entry for the FILE_CONTENT_STATISTICS table.
- Version:
- 1.0
- Author:
- juergen_kellerer, 2010-06-08
- See Also:
- Serialized Form
Nested Class Summary |
static class |
JpaFileReport.ID
Defines the ID of a statistics. |
Nested classes/interfaces inherited from class com.trendmicro.grid.acl.l0.datatypes.FileReport |
com.trendmicro.grid.acl.l0.datatypes.FileReport.Type |
Fields inherited from class com.trendmicro.grid.acl.l0.datatypes.FileReport |
amount, reportType, sourceIdentifier, sourceLocale |
Fields inherited from class com.trendmicro.grid.acl.l0.datatypes.FileIdentifier |
md5, sha1 |
Methods inherited from class com.trendmicro.grid.acl.l0.datatypes.FileReport |
equals, getAmount, getReportType, getSourceIdentifier, getSourceLocale, hashCode, setAmount |
Methods inherited from class com.trendmicro.grid.acl.l0.datatypes.FileIdentifier |
assertIsValid, compareTo, equalsSHA1, getEncodedHash, getEncodedMD5Hash, getEncodedSHA1Hash, getHash, getMD5Hash, getSHA1Hash, getVariants, isCanonical, isMD5OnlyIdentifier, toSHA1OnlyIdentifier |
JpaFileReport
public JpaFileReport()
JpaFileReport
public JpaFileReport(JpaFileDetails fileDetails,
com.trendmicro.grid.acl.l0.datatypes.FileReport other)
translateValues
public void translateValues()
- Translate the table columns used to store the count into to the amount field value.
getAccessCount
public int getAccessCount()
setAccessCount
public void setAccessCount(int accessCount)
getReportId
public JpaFileReport.ID getReportId()
getFileDetails
public JpaFileDetails getFileDetails()
getTimePeriod
public String getTimePeriod()
toString
public String toString()
- Overrides:
toString
in class com.trendmicro.grid.acl.l0.datatypes.FileReport