org.mod4j.runtime.dto
Class AbstractDto

java.lang.Object
  extended by org.mod4j.runtime.dto.AbstractDto
All Implemented Interfaces:
java.io.Serializable

public class AbstractDto
extends java.lang.Object
implements java.io.Serializable

Abstract base class for all Data Transfer Objects (DTO's), containing features that all DTO's have, like id and version properties.

Author:
Eric Jan Malotaux
See Also:
Serialized Form

Constructor Summary
AbstractDto()
          The default no-argument constructor.
AbstractDto(java.lang.Long id, java.lang.Integer version)
          Constructor for use by the DTO Translator.
 
Method Summary
 java.lang.Long getId()
           
 java.lang.Integer getVersion()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDto

public AbstractDto()
The default no-argument constructor.


AbstractDto

public AbstractDto(java.lang.Long id,
                   java.lang.Integer version)
Constructor for use by the DTO Translator.

Parameters:
id - The ID of the referenced business object.
version - The version of the referenced business object.
Method Detail

getId

public java.lang.Long getId()
Returns:
the id

getVersion

public java.lang.Integer getVersion()
Returns:
the version


Copyright © 2010 Mod4j. All Rights Reserved.