dist1.acb.common.database
Class User

java.lang.Object
  extended bydist1.acb.common.database.User
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class User
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

User

Version:
$Revision: 1.1 $
Author:
Gergana Krumova
See Also:
Serialized Form

Constructor Summary
User(java.lang.String login, java.lang.String fName, java.lang.String lName, java.math.BigDecimal account, java.lang.String email, byte[] publicKey, java.lang.String ip, int port, java.lang.String cbl, java.sql.Timestamp lastlogin, boolean isAdmin)
          Creates a new User object.
User(java.lang.String login, java.lang.String fName, java.lang.String lName, java.math.BigDecimal account, java.lang.String email, byte[] publicKey, java.lang.String ip, int port, java.lang.String cbl, java.sql.Timestamp lastlogin, int lastRequest, boolean isAdmin)
          Creates a new User object.
 
Method Summary
 java.lang.Object clone()
          Creates and returns a copy of this object.
 java.math.BigDecimal getAccount()
          Getter for property account.
 java.lang.String getCbl()
          Getter for property cbl.
 java.lang.String getEmail()
          Getter for property email.
 java.lang.String getFName()
          Getter for property fName.
 java.lang.String getIp()
          Getter for property ip.
 boolean getIsAdmin()
          Getter for property isAdmin.
 java.sql.Timestamp getLastlogin()
          Getter for property lastlogin.
 int getLastRequest()
          Getter for property lastRequest.
 java.lang.String getLName()
          Getter for property lName.
 java.lang.String getLogin()
          Getter for property login.
 int getPort()
          Getter for property port.
 byte[] getPublicKey()
          Getter for property publicKey.
 void setAccount(java.math.BigDecimal account)
          Setter for property account.
 void setCbl(java.lang.String cbl)
          Setter for property cbl.
 void setEmail(java.lang.String email)
          Setter for property email.
 void setFName(java.lang.String fName)
          Setter for property fName.
 void setIp(java.lang.String ip)
          Setter for property ip.
 void setIsAdmin(boolean isAdmin)
          Setter for property isAdmin.
 void setLastlogin(java.sql.Timestamp lastlogin)
          Setter for property lastlogin.
 void setLastRequest(int lastRequest)
          Setter for property lastRequest.
 void setLName(java.lang.String lName)
          Setter for property lName.
 void setLogin(java.lang.String login)
          Setter for property login.
 void setPort(int port)
          Setter for property port.
 void setPublicKey(byte[] publicKey)
          Setter for property publicKey.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

User

public User(java.lang.String login,
            java.lang.String fName,
            java.lang.String lName,
            java.math.BigDecimal account,
            java.lang.String email,
            byte[] publicKey,
            java.lang.String ip,
            int port,
            java.lang.String cbl,
            java.sql.Timestamp lastlogin,
            boolean isAdmin)
Creates a new User object.

Parameters:
login -
fName -
lName -
account - DOCUMENT ME!
email -
publicKey - DOCUMENT ME!
ip - DOCUMENT ME!
port -
cbl -
lastlogin - DOCUMENT ME!
isAdmin - true, if the user is administrator

User

public User(java.lang.String login,
            java.lang.String fName,
            java.lang.String lName,
            java.math.BigDecimal account,
            java.lang.String email,
            byte[] publicKey,
            java.lang.String ip,
            int port,
            java.lang.String cbl,
            java.sql.Timestamp lastlogin,
            int lastRequest,
            boolean isAdmin)
Creates a new User object.

Parameters:
login - DOCUMENT ME!
fName - DOCUMENT ME!
lName - DOCUMENT ME!
account - DOCUMENT ME!
email - DOCUMENT ME!
publicKey - DOCUMENT ME!
ip - DOCUMENT ME!
port - DOCUMENT ME!
cbl - DOCUMENT ME!
lastlogin - DOCUMENT ME!
lastRequest - DOCUMENT ME!
isAdmin - true, if the user is administrator
Method Detail

setAccount

public void setAccount(java.math.BigDecimal account)
Setter for property account.

Parameters:
account - New value of property account.

getAccount

public java.math.BigDecimal getAccount()
Getter for property account.

Returns:
Value of property account.

setCbl

public void setCbl(java.lang.String cbl)
Setter for property cbl.

Parameters:
cbl - New value of property cbl.

getCbl

public java.lang.String getCbl()
Getter for property cbl.

Returns:
Value of property cbl.

setEmail

public void setEmail(java.lang.String email)
Setter for property email.

Parameters:
email - New value of property email.

getEmail

public java.lang.String getEmail()
Getter for property email.

Returns:
Value of property email.

setFName

public void setFName(java.lang.String fName)
Setter for property fName.

Parameters:
fName - New value of property fName.

getFName

public java.lang.String getFName()
Getter for property fName.

Returns:
Value of property fName.

setIp

public void setIp(java.lang.String ip)
Setter for property ip.

Parameters:
ip - New value of property ip.

getIp

public java.lang.String getIp()
Getter for property ip.

Returns:
Value of property ip.

setIsAdmin

public void setIsAdmin(boolean isAdmin)
Setter for property isAdmin.

Parameters:
isAdmin - New value of property isAdmin.

getIsAdmin

public boolean getIsAdmin()
Getter for property isAdmin.

Returns:
Value of property isAdmin.

setLName

public void setLName(java.lang.String lName)
Setter for property lName.

Parameters:
lName - New value of property lName.

getLName

public java.lang.String getLName()
Getter for property lName.

Returns:
Value of property lName.

setLastRequest

public void setLastRequest(int lastRequest)
Setter for property lastRequest.

Parameters:
lastRequest - New value of property lastRequest.

getLastRequest

public int getLastRequest()
Getter for property lastRequest.

Returns:
Value of property lastRequest.

setLastlogin

public void setLastlogin(java.sql.Timestamp lastlogin)
Setter for property lastlogin.

Parameters:
lastlogin - New value of property lastlogin.

getLastlogin

public java.sql.Timestamp getLastlogin()
Getter for property lastlogin.

Returns:
Value of property lastlogin.

setLogin

public void setLogin(java.lang.String login)
Setter for property login.

Parameters:
login - New value of property login.

getLogin

public java.lang.String getLogin()
Getter for property login.

Returns:
Value of property login.

setPort

public void setPort(int port)
Setter for property port.

Parameters:
port - New value of property port.

getPort

public int getPort()
Getter for property port.

Returns:
Value of property port.

setPublicKey

public void setPublicKey(byte[] publicKey)
Setter for property publicKey.

Parameters:
publicKey - New value of property publicKey.

getPublicKey

public byte[] getPublicKey()
Getter for property publicKey.

Returns:
Value of property publicKey.

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Creates and returns a copy of this object.

Returns:
a clone of this instance.
Throws:
java.lang.CloneNotSupportedException - if the object's class does not support the Cloneable interface. Subclasses that override the clone method can also throw this exception to indicate that an instance cannot be cloned


Copyright © 2004 Phoenix Team (CMU/AIT). All Rights Reserved.