org.argosfields.persistence
Class Account

java.lang.Object
  extended byorg.argosfields.persistence.PersistentEntity
      extended byorg.argosfields.persistence.Account
All Implemented Interfaces:
net.sf.hibernate.Lifecycle, Serializable

public class Account
extends PersistentEntity

Account.java

Version:
$Revision: 1.1 $ $Date: 2004/04/15 05:43:55 $
Author:
Xavier Cho
See Also:
Serialized Form

Field Summary
static int MAX_PASSWORD_LENGTH
           
static int MAX_REALNAME_LENGTH
           
static int MAX_USERNAME_LENGTH
           
static int MIN_PASSWORD_LENGTH
           
static int MIN_USERNAME_LENGTH
           
 
Fields inherited from interface net.sf.hibernate.Lifecycle
NO_VETO, VETO
 
Constructor Summary
Account()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getEmail()
           
 Collection getGameLogs()
           
 String getPassword()
           
 String getRealName()
           
 Date getRegisteredDate()
           
 String getUserName()
           
 int hashCode()
           
 boolean isAdmin()
           
 boolean onSave(net.sf.hibernate.Session session)
           
 void setAdmin(boolean admin)
           
 void setEmail(String string)
           
 void setGameLogs(Collection collection)
           
 void setPassword(String password)
           
 void setRealName(String realName)
           
 void setRegisteredDate(Date date)
           
 void setUserName(String userName)
           
 String toString()
           
 
Methods inherited from class org.argosfields.persistence.PersistentEntity
onDelete, onLoad, onUpdate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MIN_USERNAME_LENGTH

public static final int MIN_USERNAME_LENGTH
See Also:
Constant Field Values

MAX_USERNAME_LENGTH

public static final int MAX_USERNAME_LENGTH
See Also:
Constant Field Values

MIN_PASSWORD_LENGTH

public static final int MIN_PASSWORD_LENGTH
See Also:
Constant Field Values

MAX_PASSWORD_LENGTH

public static final int MAX_PASSWORD_LENGTH
See Also:
Constant Field Values

MAX_REALNAME_LENGTH

public static final int MAX_REALNAME_LENGTH
See Also:
Constant Field Values
Constructor Detail

Account

public Account()
Method Detail

getPassword

public String getPassword()
Returns:
Returns the password.

setPassword

public void setPassword(String password)
Parameters:
password - The password to set.

getRealName

public String getRealName()
Returns:
Returns the realName.

setRealName

public void setRealName(String realName)
Parameters:
realName - The realName to set.

getUserName

public String getUserName()
Returns:
Returns the userName.

setUserName

public void setUserName(String userName)
Parameters:
userName - The userName to set.

isAdmin

public boolean isAdmin()
Returns:
Returns the admin.

setAdmin

public void setAdmin(boolean admin)
Parameters:
admin - The admin to set.

getRegisteredDate

public Date getRegisteredDate()
Returns:
Returns the registeredDate.

setRegisteredDate

public void setRegisteredDate(Date date)
Parameters:
date - The date to set.

getEmail

public String getEmail()
Returns:

setEmail

public void setEmail(String string)
Parameters:
string -

getGameLogs

public Collection getGameLogs()
Returns:

setGameLogs

public void setGameLogs(Collection collection)
Parameters:
collection -

onSave

public boolean onSave(net.sf.hibernate.Session session)
               throws net.sf.hibernate.CallbackException
Specified by:
onSave in interface net.sf.hibernate.Lifecycle
Overrides:
onSave in class PersistentEntity
Throws:
net.sf.hibernate.CallbackException
See Also:
Lifecycle.onSave(net.sf.hibernate.Session)

equals

public boolean equals(Object obj)
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
See Also:
Object.hashCode()

toString

public String toString()
See Also:
Object.toString()


Copyright © Gnome Korea. All Rights Reserved.