com.zphinx.spine.vo.dto
Class DataTransportBean

java.lang.Object
  extended by javax.management.Attribute
      extended by com.zphinx.spine.vo.dto.DataTransportBean
All Implemented Interfaces:
DataTransferObject, Serializable

public class DataTransportBean
extends Attribute
implements DataTransferObject

DataTransportBean extends Attribute to provide a String id for the java Attribute object

Version:
$1.0

Copyright ©Zphinx Software Solutions

Author:
David Ladapo
See Also:
Serialized Form

Constructor Summary
DataTransportBean(String name, Object value)
          Default Constructor
DataTransportBean(String name, Object value, String id)
          Constructor which accepts an id
 
Method Summary
 String getId()
          Gets the id of this Object
 Locale getLocale()
          Gets the Locale where the creator of this DTO is using the system
 String getSessionId()
          Gets a unique ID for this transaction which is used to identify this object across multiple tiers
 void setId(String id)
          Sets the id of this Object
 void setLocale(Locale locale)
           
 String toString()
           
 
Methods inherited from class javax.management.Attribute
equals, getName, getValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataTransportBean

public DataTransportBean(String name,
                         Object value)
Default Constructor

Parameters:
name - The name of this object
value - The object returned as this objects value

DataTransportBean

public DataTransportBean(String name,
                         Object value,
                         String id)
Constructor which accepts an id

Parameters:
name - The name of this object
value - The object returned as this objects value
id - The String identifier of the object
Method Detail

getId

public String getId()
Gets the id of this Object

Returns:
Returns the id.

setId

public void setId(String id)
Sets the id of this Object

Parameters:
id - The id to set.

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

toString

public String toString()
Overrides:
toString in class Object

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