com.trendmicro.grid.acl.ds.jpa.entities
Class JpaFileIdentifier
java.lang.Object
com.trendmicro.grid.acl.l0.datatypes.FileIdentifier
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
Fields inherited from class com.trendmicro.grid.acl.l0.datatypes.FileIdentifier |
md5, 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 |
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)
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)