dea.beans
Class Users

java.lang.Object
  extended bydea.beans.Users
All Implemented Interfaces:
IDebugLevels, java.io.Serializable

public class Users
extends java.lang.Object
implements java.io.Serializable, IDebugLevels

Title: users Helper
Description: Class for holding data from the users table.
Copyright: Copyright (c) 2001-2004
Company: RMRR

Version:
1.0
Primary key is on column:USER_ID
Create statment: CREATE TABLE `users` ( `user_id` int(11) NOT NULL auto_increment, `user_name` varchar(50) NOT NULL default '', `password` varchar(50) NOT NULL default '', `first_name` varchar(50) default '', `last_name` varchar(50) default '', PRIMARY KEY (`user_id`) ) TYPE=MyISAM
Author:
David Abigt via GenBean
See Also:
Serialized Form

Field Summary
protected static Display display
           
protected  java.lang.String first_name
           
static java.lang.String FIRST_NAME
           
static int FIRST_NAME_LEN
           
static java.lang.String GETALL
           
protected  java.lang.String last_name
           
static java.lang.String LAST_NAME
           
static int LAST_NAME_LEN
           
protected  java.lang.String password
           
static java.lang.String PASSWORD
           
static int PASSWORD_LEN
           
static java.lang.String TABLE_NAME
           
protected  java.lang.Integer user_id
           
static java.lang.String USER_ID
           
static int USER_ID_LEN
           
protected  java.lang.String user_name
           
static java.lang.String USER_NAME
           
static int USER_NAME_LEN
           
 
Fields inherited from interface dea.common.IDebugLevels
BASIC, DEBUG_ALL, ERROR, METH_DETAIL, METH_ENTER, METH_EXIT, METH_EXT, METH_GET, METH_SET, METH_VARS, SHOW_PASS
 
Constructor Summary
Users()
          Basic constructor
Users(int pk)
          load record from the DB by primary key.
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String getFirst_name()
          returns value of the FIRST_NAME column of this row of data
 java.lang.String getLast_name()
          returns value of the LAST_NAME column of this row of data
 java.lang.String getObjFirst_name()
          returns value of the FIRST_NAME column of this row of data
 java.lang.String getObjLast_name()
          returns value of the LAST_NAME column of this row of data
 java.lang.String getObjPassword()
          returns value of the PASSWORD column of this row of data
 java.lang.Integer getObjUser_id()
          returns value of the USER_ID column of this row of data
 java.lang.String getObjUser_name()
          returns value of the USER_NAME column of this row of data
 java.lang.String getPassword()
          returns value of the PASSWORD column of this row of data
 int getUser_id()
          returns value of the USER_ID column of this row of data
 java.lang.String getUser_name()
          returns value of the USER_NAME column of this row of data
 void load(Db db)
          load record from the DB by primary key
static Users load(java.sql.ResultSet results)
           
static Users load(java.sql.ResultSet results, Users newObj)
           
 void setFirst_name(java.lang.String newVal)
          sets value of the FIRST_NAME column of this row of data default value for this field set by the DB is null This field has a max length of 50, longer strings will be truncated
 void setLast_name(java.lang.String newVal)
          sets value of the LAST_NAME column of this row of data default value for this field set by the DB is null This field has a max length of 50, longer strings will be truncated
 void setPassword(java.lang.String newVal)
          sets value of the PASSWORD column of this row of data default value for this field set by the DB is null This field has a max length of 50, longer strings will be truncated
 void setUser_id(int newVal)
          sets value of the USER_ID column of this row of data default value for this field set by the DB is null This is the primary key for this table
 void setUser_id(java.lang.Integer newVal)
          sets value of the USER_ID column of this row of data default value for this field set by the DB is null This is the primary key for this table
 void setUser_name(java.lang.String newVal)
          sets value of the USER_NAME column of this row of data default value for this field set by the DB is null This field has a max length of 50, longer strings will be truncated
 void store()
          Deprecated. Should use store(Db db) to limit connections to DB
 void store(Db db)
          Store this object in the DB
 java.lang.String toString()
          Returns a String showing the values of this bean - mainly for debuging
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

display

protected static final Display display

first_name

protected java.lang.String first_name

last_name

protected java.lang.String last_name

password

protected java.lang.String password

user_id

protected java.lang.Integer user_id

user_name

protected java.lang.String user_name

TABLE_NAME

public static final java.lang.String TABLE_NAME
See Also:
Constant Field Values

GETALL

public static final java.lang.String GETALL
See Also:
Constant Field Values

FIRST_NAME

public static final java.lang.String FIRST_NAME
See Also:
Constant Field Values

FIRST_NAME_LEN

public static final int FIRST_NAME_LEN
See Also:
Constant Field Values

LAST_NAME

public static final java.lang.String LAST_NAME
See Also:
Constant Field Values

LAST_NAME_LEN

public static final int LAST_NAME_LEN
See Also:
Constant Field Values

PASSWORD

public static final java.lang.String PASSWORD
See Also:
Constant Field Values

PASSWORD_LEN

public static final int PASSWORD_LEN
See Also:
Constant Field Values

USER_ID

public static final java.lang.String USER_ID
See Also:
Constant Field Values

USER_ID_LEN

public static final int USER_ID_LEN
See Also:
Constant Field Values

USER_NAME

public static final java.lang.String USER_NAME
See Also:
Constant Field Values

USER_NAME_LEN

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

Users

public Users()
Basic constructor


Users

public Users(int pk)
load record from the DB by primary key.

Method Detail

getObjFirst_name

public java.lang.String getObjFirst_name()
returns value of the FIRST_NAME column of this row of data

Returns:
value of this column in this row

getFirst_name

public java.lang.String getFirst_name()
returns value of the FIRST_NAME column of this row of data

Returns:
value of this column in this row

setFirst_name

public void setFirst_name(java.lang.String newVal)
sets value of the FIRST_NAME column of this row of data default value for this field set by the DB is null This field has a max length of 50, longer strings will be truncated


getObjLast_name

public java.lang.String getObjLast_name()
returns value of the LAST_NAME column of this row of data

Returns:
value of this column in this row

getLast_name

public java.lang.String getLast_name()
returns value of the LAST_NAME column of this row of data

Returns:
value of this column in this row

setLast_name

public void setLast_name(java.lang.String newVal)
sets value of the LAST_NAME column of this row of data default value for this field set by the DB is null This field has a max length of 50, longer strings will be truncated


getObjPassword

public java.lang.String getObjPassword()
returns value of the PASSWORD column of this row of data

Returns:
value of this column in this row

getPassword

public java.lang.String getPassword()
returns value of the PASSWORD column of this row of data

Returns:
value of this column in this row

setPassword

public void setPassword(java.lang.String newVal)
sets value of the PASSWORD column of this row of data default value for this field set by the DB is null This field has a max length of 50, longer strings will be truncated


getObjUser_id

public java.lang.Integer getObjUser_id()
returns value of the USER_ID column of this row of data

Returns:
value of this column in this row

getUser_id

public int getUser_id()
returns value of the USER_ID column of this row of data

Returns:
value of this column in this row

setUser_id

public void setUser_id(java.lang.Integer newVal)
sets value of the USER_ID column of this row of data default value for this field set by the DB is null This is the primary key for this table


setUser_id

public void setUser_id(int newVal)
sets value of the USER_ID column of this row of data default value for this field set by the DB is null This is the primary key for this table


getObjUser_name

public java.lang.String getObjUser_name()
returns value of the USER_NAME column of this row of data

Returns:
value of this column in this row

getUser_name

public java.lang.String getUser_name()
returns value of the USER_NAME column of this row of data

Returns:
value of this column in this row

setUser_name

public void setUser_name(java.lang.String newVal)
sets value of the USER_NAME column of this row of data default value for this field set by the DB is null This field has a max length of 50, longer strings will be truncated


clone

public java.lang.Object clone()
Returns:
a copy of this object

load

public static Users load(java.sql.ResultSet results)
                  throws java.sql.SQLException
Returns:
an object created from the resultSet
Throws:
java.sql.SQLException

load

public static Users load(java.sql.ResultSet results,
                         Users newObj)
                  throws java.sql.SQLException
Returns:
object loaded from the resultSet. If newObj is null a new object is created otherwise newObj is returned.
Throws:
java.sql.SQLException

load

public void load(Db db)
load record from the DB by primary key

Parameters:
db -

store

public void store()
           throws java.sql.SQLException,
                  java.lang.ClassNotFoundException
Deprecated. Should use store(Db db) to limit connections to DB

Store this object in the DB

Throws:
java.sql.SQLException
java.lang.ClassNotFoundException

store

public void store(Db db)
           throws java.sql.SQLException,
                  java.lang.ClassNotFoundException
Store this object in the DB

Parameters:
db - holds connection to DB
Throws:
java.sql.SQLException
java.lang.ClassNotFoundException

toString

public java.lang.String toString()
Returns a String showing the values of this bean - mainly for debuging

Returns:
String


Copyright © 2001-2005 Round Mountain Rescue Ranch. All Rights Reserved.