com.projectdarkstar.tools.dtc.domain
Class BinaryFile

java.lang.Object
  extended by com.projectdarkstar.tools.dtc.domain.BinaryFile
All Implemented Interfaces:
Serializable

public class BinaryFile
extends Object
implements Serializable

Represents a binary file

See Also:
Serialized Form

Constructor Summary
BinaryFile()
           
BinaryFile(byte[] file)
           
 
Method Summary
 boolean equals(Object o)
           
 byte[] getFile()
          Returns the contents of the actual binary file as an array of bytes.
 Long getId()
          Returns the id of the entity in persistent storage
 Long getVersionNumber()
          Returns the version number in the data store that this entity represents.
 int hashCode()
           
 void setFile(byte[] file)
           
 void setId(Long id)
           
 void setVersionNumber(Long versionNumber)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryFile

public BinaryFile()

BinaryFile

public BinaryFile(byte[] file)
Method Detail

getId

public Long getId()
Returns the id of the entity in persistent storage

Returns:
id of the entity

setId

public void setId(Long id)

getVersionNumber

public Long getVersionNumber()
Returns the version number in the data store that this entity represents. Whenever an update to an object is pushed to the persistent data store, the version number is incremented.

Returns:
version number of the entity

setVersionNumber

public void setVersionNumber(Long versionNumber)

getFile

public byte[] getFile()
Returns the contents of the actual binary file as an array of bytes.

Returns:
the binary file

setFile

public void setFile(byte[] file)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2013. All Rights Reserved.