com.trendmicro.grid.acl.ds.jpa.entities
Class JpaFileHistory
java.lang.Object
com.trendmicro.grid.acl.ds.jpa.entities.JpaFileHistory
- All Implemented Interfaces:
- Serializable
@Entity(name="FILE_CONTENT_HISTORY")
public class JpaFileHistory
- extends Object
- implements Serializable
Implements a read and writeable history entry for the FILE_CONTENT_HISTORY table.
- Version:
- 1.0
- Author:
- juergen_kellerer, 2010-06-07
- See Also:
- Serialized Form
Nested Class Summary |
static class |
JpaFileHistory.ID
Implements the primary key of the table "FILE_CONTENT_HISTORY". |
JpaFileHistory
public JpaFileHistory()
JpaFileHistory
public JpaFileHistory(JpaFileDetails fileDetails)
- Creates a new history entry for the given file content entry.
- Parameters:
fileDetails
- the instance of fileDetails to create the history from.
wasChanged
public static boolean wasChanged(JpaFileDetails existingDetails,
com.trendmicro.grid.acl.l0.datatypes.FileDetails details,
boolean ignoreMetadata)
- Returns true if history relevant values differ.
- Parameters:
existingDetails
- the existing details.details
- the updated details.ignoreMetadata
- whether metadata is compared or not.
- Returns:
- true if history relevant values differ.
getHistoryId
public JpaFileHistory.ID getHistoryId()
getCreated
public Date getCreated()
isUnknown
public boolean isUnknown()
getTags
public String[] getTags()
getMetadata
public com.trendmicro.grid.acl.metadata.Metadata getMetadata()
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object