net.sf.jagzilla.hibernate
Class LoginCookie

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

public class LoginCookie
extends XmlObjectImpl

represents a record in the table logincookies.

Author:
mgriffa

Constructor Summary
LoginCookie()
           
 
Method Summary
 int getCookie()
           
 java.lang.String getIpAddr()
           
 java.util.Date getLastUsed()
           
 int getUserId()
           
 void loadFromXml(java.io.Reader reader)
          load the object data from xml.
 void setCookie(int cookie)
           
 void setIpAddr(java.lang.String ipAddr)
           
 void setLastUsed(java.util.Date lastUsed)
           
 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

LoginCookie

public LoginCookie()
Method Detail

getCookie

public int getCookie()
Returns:
Returns the cookie.

setCookie

public void setCookie(int cookie)
Parameters:
cookie - The cookie to set.

getIpAddr

public java.lang.String getIpAddr()
Returns:
Returns the ipAddr.

setIpAddr

public void setIpAddr(java.lang.String ipAddr)
Parameters:
ipAddr - The ipAddr to set.

getLastUsed

public java.util.Date getLastUsed()
Returns:
Returns the lastUsed.

setLastUsed

public void setLastUsed(java.util.Date lastUsed)
Parameters:
lastUsed - The lastUsed 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.