dea.beans
Class Spam_replies

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

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

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

Version:
1.0
Primary key is on column:EMAIL_ID
Create statment: CREATE TABLE `spam_replies` ( `email_id` int(11) NOT NULL auto_increment, `email_addr` varchar(100) NOT NULL default '', `response` varchar(255) default '', `updated` datetime NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY (`email_id`) ) TYPE=MyISAM
Author:
David Abigt via GenBean
See Also:
Serialized Form

Field Summary
protected static Display display
           
protected  java.lang.String email_addr
           
static java.lang.String EMAIL_ADDR
           
static int EMAIL_ADDR_LEN
           
protected  java.lang.Integer email_id
           
static java.lang.String EMAIL_ID
           
static int EMAIL_ID_LEN
           
static java.lang.String GETALL
           
protected  java.lang.String response
           
static java.lang.String RESPONSE
           
static int RESPONSE_LEN
           
static java.lang.String TABLE_NAME
           
protected  java.sql.Timestamp updated
           
static java.lang.String UPDATED
           
static int UPDATED_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
Spam_replies()
          Basic constructor
Spam_replies(int pk)
          load record from the DB by primary key.
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String getEmail_addr()
          returns value of the EMAIL_ADDR column of this row of data
 int getEmail_id()
          returns value of the EMAIL_ID column of this row of data
 java.lang.String getObjEmail_addr()
          returns value of the EMAIL_ADDR column of this row of data
 java.lang.Integer getObjEmail_id()
          returns value of the EMAIL_ID column of this row of data
 java.lang.String getObjResponse()
          returns value of the RESPONSE column of this row of data
 java.sql.Timestamp getObjUpdated()
          returns value of the UPDATED column of this row of data
 java.lang.String getResponse()
          returns value of the RESPONSE column of this row of data
 java.sql.Timestamp getUpdated()
          returns value of the UPDATED column of this row of data
 void load(Db db)
          load record from the DB by primary key
static Spam_replies load(java.sql.ResultSet results)
           
static Spam_replies load(java.sql.ResultSet results, Spam_replies newObj)
           
 void setEmail_addr(java.lang.String newVal)
          sets value of the EMAIL_ADDR column of this row of data default value for this field set by the DB is null This field has a max length of 100, longer strings will be truncated
 void setEmail_id(int newVal)
          sets value of the EMAIL_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 setEmail_id(java.lang.Integer newVal)
          sets value of the EMAIL_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 setResponse(java.lang.String newVal)
          sets value of the RESPONSE column of this row of data default value for this field set by the DB is null This field has a max length of 255, longer strings will be truncated
 void setUpdated(java.sql.Timestamp newVal)
          sets value of the UPDATED column of this row of data default value for this field set by the DB is null
 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

email_addr

protected java.lang.String email_addr

email_id

protected java.lang.Integer email_id

response

protected java.lang.String response

updated

protected java.sql.Timestamp updated

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

EMAIL_ADDR

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

EMAIL_ADDR_LEN

public static final int EMAIL_ADDR_LEN
See Also:
Constant Field Values

EMAIL_ID

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

EMAIL_ID_LEN

public static final int EMAIL_ID_LEN
See Also:
Constant Field Values

RESPONSE

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

RESPONSE_LEN

public static final int RESPONSE_LEN
See Also:
Constant Field Values

UPDATED

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

UPDATED_LEN

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

Spam_replies

public Spam_replies()
Basic constructor


Spam_replies

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

Method Detail

getObjEmail_addr

public java.lang.String getObjEmail_addr()
returns value of the EMAIL_ADDR column of this row of data

Returns:
value of this column in this row

getEmail_addr

public java.lang.String getEmail_addr()
returns value of the EMAIL_ADDR column of this row of data

Returns:
value of this column in this row

setEmail_addr

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


getObjEmail_id

public java.lang.Integer getObjEmail_id()
returns value of the EMAIL_ID column of this row of data

Returns:
value of this column in this row

getEmail_id

public int getEmail_id()
returns value of the EMAIL_ID column of this row of data

Returns:
value of this column in this row

setEmail_id

public void setEmail_id(java.lang.Integer newVal)
sets value of the EMAIL_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


setEmail_id

public void setEmail_id(int newVal)
sets value of the EMAIL_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


getObjResponse

public java.lang.String getObjResponse()
returns value of the RESPONSE column of this row of data

Returns:
value of this column in this row

getResponse

public java.lang.String getResponse()
returns value of the RESPONSE column of this row of data

Returns:
value of this column in this row

setResponse

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


getObjUpdated

public java.sql.Timestamp getObjUpdated()
returns value of the UPDATED column of this row of data

Returns:
value of this column in this row

getUpdated

public java.sql.Timestamp getUpdated()
returns value of the UPDATED column of this row of data

Returns:
value of this column in this row

setUpdated

public void setUpdated(java.sql.Timestamp newVal)
sets value of the UPDATED column of this row of data default value for this field set by the DB is null


clone

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

load

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

load

public static Spam_replies load(java.sql.ResultSet results,
                                Spam_replies 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.