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

java.lang.Object
  extended by com.trendmicro.grid.acl.l0.datatypes.FileIdentifier
      extended by com.trendmicro.grid.acl.ds.jpa.entities.JpaFileIdentifier
All Implemented Interfaces:
com.trendmicro.grid.acl.l0.datatypes.Validatable, Serializable, Comparable<com.trendmicro.grid.acl.l0.datatypes.FileIdentifier>

@Embeddable
public class JpaFileIdentifier
extends com.trendmicro.grid.acl.l0.datatypes.FileIdentifier

Defines the identifier of a file content entry.

Version:
1.0
Author:
juergen_kellerer, 2010-06-07
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.trendmicro.grid.acl.l0.datatypes.FileIdentifier
md5, sha1
 
Constructor Summary
JpaFileIdentifier()
           
JpaFileIdentifier(byte[] sha1)
           
JpaFileIdentifier(byte[] sha1, byte[] md5)
           
JpaFileIdentifier(com.trendmicro.grid.acl.l0.datatypes.FileIdentifier source, com.trendmicro.grid.acl.metadata.Metadata metadata)
           
 
Method Summary
 int getCrc32()
           
 byte[] getMd5()
           
 byte[] getSha1()
           
 void setCrc32(int crc32)
           
 void setMd5(byte[] md5)
           
 void setSha1(byte[] sha1)
           
 
Methods inherited from class com.trendmicro.grid.acl.l0.datatypes.FileIdentifier
assertIsValid, compareTo, equals, equalsSHA1, getEncodedHash, getEncodedMD5Hash, getEncodedSHA1Hash, getHash, getMD5Hash, getSHA1Hash, getVariants, hashCode, isCanonical, isMD5OnlyIdentifier, toSHA1OnlyIdentifier, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JpaFileIdentifier

public JpaFileIdentifier()

JpaFileIdentifier

public JpaFileIdentifier(com.trendmicro.grid.acl.l0.datatypes.FileIdentifier source,
                         com.trendmicro.grid.acl.metadata.Metadata metadata)

JpaFileIdentifier

public JpaFileIdentifier(byte[] sha1)

JpaFileIdentifier

public JpaFileIdentifier(byte[] sha1,
                         byte[] md5)
Method Detail

getSha1

@Field(bridge=@FieldBridge(impl=TwoWayByteArrayFieldBridge.class),
       store=YES,
       index=NO,
       analyze=NO,
       norms=NO,
       termVector=NO)
public byte[] getSha1()

setSha1

public void setSha1(byte[] sha1)

getMd5

@Field(bridge=@FieldBridge(impl=TwoWayByteArrayFieldBridge.class),
       store=YES,
       index=NO,
       analyze=NO,
       norms=NO,
       termVector=NO)
public byte[] getMd5()

setMd5

public void setMd5(byte[] md5)

getCrc32

public int getCrc32()

setCrc32

public void setCrc32(int crc32)