com.trendmicro.grid.acl.ds.jpa.entities
Class JpaFileReport

java.lang.Object
  extended by com.trendmicro.grid.acl.l0.datatypes.FileIdentifier
      extended by com.trendmicro.grid.acl.l0.datatypes.FileReport
          extended by 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
 
Field Summary
 
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
 
Constructor Summary
JpaFileReport()
           
JpaFileReport(JpaFileDetails fileDetails, com.trendmicro.grid.acl.l0.datatypes.FileReport other)
           
 
Method Summary
 int getAccessCount()
           
 JpaFileDetails getFileDetails()
           
 JpaFileReport.ID getReportId()
           
 String getTimePeriod()
           
 void setAccessCount(int accessCount)
           
 String toString()
           
 void translateValues()
          Translate the table columns used to store the count into to the amount field value.
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JpaFileReport

public JpaFileReport()

JpaFileReport

public JpaFileReport(JpaFileDetails fileDetails,
                     com.trendmicro.grid.acl.l0.datatypes.FileReport other)
Method Detail

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