net.sf.jagzilla.hibernate
Class Token

java.lang.Object
  extended bynet.sf.jagzilla.hibernate.XmlObjectImpl
      extended bynet.sf.jagzilla.hibernate.Token
All Implemented Interfaces:
XmlObject

public class Token
extends XmlObjectImpl

represents a record in the table tokens.

Author:
mgriffa

Constructor Summary
Token()
           
 
Method Summary
 java.lang.String getEventData()
           
 java.util.Date getIssueDate()
           
 java.lang.String getToken()
           
 java.lang.String getTokenType()
           
 int getUserId()
           
 void loadFromXml(java.io.Reader reader)
          load the object data from xml.
 void setEventData(java.lang.String eventData)
           
 void setIssueDate(java.util.Date issueDate)
           
 void setToken(java.lang.String token)
           
 void setTokenType(java.lang.String tokenType)
           
 void setUserId(int userId)
           
 java.lang.String toString()
           
 
Methods inherited from class net.sf.jagzilla.hibernate.XmlObjectImpl
equals, getXmlString, loadObjectFromXml, setXmlString, toXml
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Token

public Token()
Method Detail

getEventData

public java.lang.String getEventData()
Returns:
Returns the eventData.

setEventData

public void setEventData(java.lang.String eventData)
Parameters:
eventData - The eventData to set.

getIssueDate

public java.util.Date getIssueDate()
Returns:
Returns the issueDate.

setIssueDate

public void setIssueDate(java.util.Date issueDate)
Parameters:
issueDate - The issueDate to set.

getToken

public java.lang.String getToken()
Returns:
Returns the token.

setToken

public void setToken(java.lang.String token)
Parameters:
token - The token to set.

getTokenType

public java.lang.String getTokenType()
Returns:
Returns the tokenType.

setTokenType

public void setTokenType(java.lang.String tokenType)
Parameters:
tokenType - The tokenType to set.

getUserId

public int getUserId()
Returns:
Returns the userId.

setUserId

public void setUserId(int userId)
Parameters:
userId - The userId to set.

toString

public java.lang.String toString()

loadFromXml

public void loadFromXml(java.io.Reader reader)
                 throws java.io.IOException,
                        MappingException,
                        MarshalException,
                        ValidationException
Description copied from interface: XmlObject
load the object data from xml. This method internally uses castor to unmarshall the object form XML.

Parameters:
reader - a reader containing a parseable xml
Throws:
java.io.IOException
MappingException
MarshalException
ValidationException


Distributed under the GPL. By Miguel Griffa. See the Jagzilla project page for more info.