com.projectdarkstar.tools.dtc.data
Class LogFileDTO
java.lang.Object
com.projectdarkstar.tools.dtc.data.AbstractDTO
com.projectdarkstar.tools.dtc.data.LogFileDTO
- All Implemented Interfaces:
- Serializable
public class LogFileDTO
- extends AbstractDTO
Represents a log file
- See Also:
- Serialized Form
LogFileDTO
public LogFileDTO(Long id,
Long versionNumber,
String log)
getId
public Long getId()
- Returns the id of the entity in persistent storage
- Specified by:
getId in class AbstractDTO
- 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
getLog
public String getLog()
setLog
protected void setLog(String log)
updateLog
public void updateLog(String log)
throws DTCInvalidDataException
- Throws:
DTCInvalidDataException
validate
public void validate()
throws DTCInvalidDataException
- Description copied from class:
AbstractDTO
- Validates that each attribute and pending updated attribute (from the
updatedAttributes Map) has a valid value in the context of the
particular object.
- Specified by:
validate in class AbstractDTO
- Throws:
DTCInvalidDataException
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.