com.zphinx.spine.vo.dto
Class DTOWrapper

java.lang.Object
  extended by com.zphinx.spine.vo.dto.DTOWrapper
All Implemented Interfaces:
DataTransferObject, Serializable

public class DTOWrapper
extends Object
implements DataTransferObject

DTOWrapper serves as a wrapper for java objects. Objects encapsulated within this wrapper are provide with the means tp morph as a DataTransferObject and automatically possess the capability of DataTransferObjects and can be retrieved using the getObject() method.

Version:
$1.0

Copyright ©Zphinx Software Solutions

Author:
David Ladapo
See Also:
Serialized Form

Constructor Summary
DTOWrapper(Object object)
          Public Constructor
 
Method Summary
 Locale getLocale()
          Gets the Locale where the creator of this DTO is using the system
 Object getObject()
          Gets the wrapped object
 String getSessionId()
          Gets a unique ID for this transaction which is used to identify this object across multiple tiers
 void setLocale(Locale locale)
           
 void setSessionId(String sessionId)
          Sets this beans sessionId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTOWrapper

public DTOWrapper(Object object)
Public Constructor

Parameters:
object - The object which is wrapped within this object
Method Detail

getObject

public Object getObject()
Gets the wrapped object

Returns:
the object

getSessionId

public String getSessionId()
Description copied from interface: DataTransferObject
Gets a unique ID for this transaction which is used to identify this object across multiple tiers

Specified by:
getSessionId in interface DataTransferObject
Returns:
A unique ID useful for identifying this object

setSessionId

public void setSessionId(String sessionId)
Sets this beans sessionId

Parameters:
sessionId - the sessionId to set

getLocale

public Locale getLocale()
Description copied from interface: DataTransferObject
Gets the Locale where the creator of this DTO is using the system

Specified by:
getLocale in interface DataTransferObject
Returns:
The Locale of the user of this DTO

setLocale

public void setLocale(Locale locale)
Parameters:
locale - the locale to set