org.appfuse.model
Class UserCookie

java.lang.Object
  extended byorg.appfuse.model.BaseObject
      extended byorg.appfuse.model.UserCookie
All Implemented Interfaces:
Serializable

public class UserCookie
extends BaseObject

This class is used to manage cookie-based authentication.

View Source

Version:
$Revision: 1.1 $ $Date: 2004/03/31 13:04:16 $
Author:
Matt Raible
See Also:
Serialized Form
Class:
table="user_cookie"

Constructor Summary
UserCookie()
           
 
Method Summary
 String getCookieId()
          Returns the cookieId (a GUID).
 Date getDateCreated()
           
 Long getId()
          Returns the id.
 String getUsername()
          Returns the username.
 void setCookieId(String rolename)
          Sets the cookieId.
 void setDateCreated(Date dateCreated)
           
 void setId(Long id)
          Sets the id.
 void setUsername(String username)
          Sets the username.
 
Methods inherited from class org.appfuse.model.BaseObject
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserCookie

public UserCookie()
Method Detail

getId

public Long getId()
Returns the id.

Returns:
String
Id:
column="id" generator-class="increment" unsaved-value="null"

setId

public void setId(Long id)
Sets the id.

Parameters:
id - The id to set

getUsername

public String getUsername()
Returns the username.

Returns:
String
Property:
column="username" not-null="true" length="30"

setUsername

public void setUsername(String username)
Sets the username.

Parameters:
username - The username to set

getCookieId

public String getCookieId()
Returns the cookieId (a GUID).

Returns:
String
Property:
column="cookie_id" not-null="true" length="100"

setCookieId

public void setCookieId(String rolename)
Sets the cookieId.

Parameters:
rolename - The cookieId to set

getDateCreated

public Date getDateCreated()
Returns:
Returns the dateCreated.
Property:
column="date_created" not-null="true"

setDateCreated

public void setDateCreated(Date dateCreated)
Parameters:
dateCreated - The dateCreated to set.


Copyright © 2002-2004