model.domain.object.DomainObject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of abstract-domain Show documentation
Show all versions of abstract-domain Show documentation
A bunch of classes that help developers building their domain object classes.
package model.domain.object;
import java.io.Serializable;
import java.util.Date;
/**
* This interface describe the methods that all domain classes, from the same
* project, should have.
*
* @author Jhonathan Camacho
* @author Jhonys Camacho
*
*/
public interface DomainObject extends Serializable {
/**
* Returns the unique identifier of the object. Different kind of objects
* could have the same id.
*
* @return the unique identifier of the object
*/
public long getId();
/**
* Returns the creation date of the object.
*
* @return the creation date of the object.
*/
public Date getCreatedAt();
/**
* Sets the date on which the object was created.
*
* @param createdAt
* the date on which the object was created.
*/
public void setCreatedAt(Date createdAt);
/**
* Returns the date on which the object was updated.
*
* @return the date on which the object was updated.
*/
public Date getUpdatedAt();
/**
* Returns the date on which the object was updated.
*
* @param updatedAt
* the date on which the object was updated.
*/
public void setUpdatedAt(Date updatedAt);
}