public abstract class BaseTO extends Object implements com.sohnar.transfer.BaseTOIF, Serializable
| Modifier and Type | Field and Description |
|---|---|
private Calendar |
dateCreated |
private Calendar |
dateModified |
private Long |
id |
private static long |
serialVersionUID
Generated serialId
|
private Integer |
version |
| Modifier and Type | Method and Description |
|---|---|
void |
clearPersistanceProps() |
boolean |
equals(Object obj) |
Calendar |
getDateCreated() |
Calendar |
getDateModified() |
Long |
getId() |
Integer |
getVersion() |
int |
hashCode() |
Boolean |
isPersisted() |
Boolean |
isUnpersisted() |
void |
nullMyIds() |
void |
setDateCreated(Calendar dateCreated) |
void |
setDateModified(Calendar dateModified) |
void |
setId(Long id) |
void |
setVersion(Integer version) |
String |
toString() |
private static final long serialVersionUID
@NotNull @XStreamAsAttribute private Long id
@NotNull @XStreamAsAttribute private Integer version
@XStreamAsAttribute @XStreamConverter(value=com.thoughtworks.xstream.converters.extended.ISO8601GregorianCalendarConverter.class) private Calendar dateCreated
@XStreamAsAttribute @XStreamConverter(value=com.thoughtworks.xstream.converters.extended.ISO8601GregorianCalendarConverter.class) private Calendar dateModified
public BaseTO()
public BaseTO(Long id)
public Long getId()
getId in interface com.sohnar.persistence.entity.HasIdpublic void setId(Long id)
setId in interface com.sohnar.persistence.entity.HasIdpublic Calendar getDateModified()
getDateModified in interface com.sohnar.transfer.BaseTOIFpublic void setDateModified(Calendar dateModified)
setDateModified in interface com.sohnar.transfer.BaseTOIFpublic Integer getVersion()
getVersion in interface com.sohnar.transfer.BaseTOIFpublic void setVersion(Integer version)
setVersion in interface com.sohnar.transfer.BaseTOIFpublic Calendar getDateCreated()
public void setDateCreated(Calendar dateCreated)
public void nullMyIds()
nullMyIds in interface com.sohnar.transfer.BaseTOIFpublic void clearPersistanceProps()
public Boolean isUnpersisted()
public Boolean isPersisted()
Copyright © 2008–2016 Sohnar Ltd.. All rights reserved.