dea.beans
Class Msg_info

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

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

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

Version:
1.0
Primary key is on column:MSG_ID
Create statment: CREATE TABLE `msg_info` ( `msg_id` int(11) NOT NULL auto_increment, `abuse_contact` varchar(100) default '', `msg_number` varchar(100) NOT NULL default '', `msg_sent` date default '0000-00-00', `msg_type` char(1) default '', `spam_batch` bigint(20) NOT NULL default '0', `spam_from` varchar(100) default '', `spam_source` varchar(100) default '', `spam_to` varchar(100) default '', `spam_IP` varchar(15) default '', `messageID` varchar(100) default '', `scan_type` char(3) default '', PRIMARY KEY (`msg_id`) ) TYPE=MyISAM
Author:
David Abigt via GenBean
See Also:
Serialized Form

Field Summary
protected  java.lang.String abuse_contact
           
static java.lang.String ABUSE_CONTACT
           
static int ABUSE_CONTACT_LEN
           
protected static Display display
           
static java.lang.String GETALL
           
protected  java.lang.String messageid
           
static java.lang.String MESSAGEID
           
static int MESSAGEID_LEN
           
protected  java.lang.Integer msg_id
           
static java.lang.String MSG_ID
           
static int MSG_ID_LEN
           
protected  java.lang.String msg_number
           
static java.lang.String MSG_NUMBER
           
static int MSG_NUMBER_LEN
           
protected  java.sql.Timestamp msg_sent
           
static java.lang.String MSG_SENT
           
static int MSG_SENT_LEN
           
protected  java.lang.String msg_type
           
static java.lang.String MSG_TYPE
           
static int MSG_TYPE_LEN
           
protected  java.lang.String scan_type
           
static java.lang.String SCAN_TYPE
           
static int SCAN_TYPE_LEN
           
protected  java.lang.Long spam_batch
           
static java.lang.String SPAM_BATCH
           
static int SPAM_BATCH_LEN
           
protected  java.lang.String spam_from
           
static java.lang.String SPAM_FROM
           
static int SPAM_FROM_LEN
           
protected  java.lang.String spam_ip
           
static java.lang.String SPAM_IP
           
static int SPAM_IP_LEN
           
protected  java.lang.String spam_source
           
static java.lang.String SPAM_SOURCE
           
static int SPAM_SOURCE_LEN
           
protected  java.lang.String spam_to
           
static java.lang.String SPAM_TO
           
static int SPAM_TO_LEN
           
static java.lang.String TABLE_NAME
           
 
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
Msg_info()
          Basic constructor
Msg_info(int pk)
          load record from the DB by primary key.
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String getAbuse_contact()
          returns value of the ABUSE_CONTACT column of this row of data
 java.lang.String getMessageid()
          returns value of the MESSAGEID column of this row of data
 int getMsg_id()
          returns value of the MSG_ID column of this row of data
 java.lang.String getMsg_number()
          returns value of the MSG_NUMBER column of this row of data
 java.sql.Timestamp getMsg_sent()
          returns value of the MSG_SENT column of this row of data
 java.lang.String getMsg_type()
          returns value of the MSG_TYPE column of this row of data
 java.lang.String getObjAbuse_contact()
          returns value of the ABUSE_CONTACT column of this row of data
 java.lang.String getObjMessageid()
          returns value of the MESSAGEID column of this row of data
 java.lang.Integer getObjMsg_id()
          returns value of the MSG_ID column of this row of data
 java.lang.String getObjMsg_number()
          returns value of the MSG_NUMBER column of this row of data
 java.sql.Timestamp getObjMsg_sent()
          returns value of the MSG_SENT column of this row of data
 java.lang.String getObjMsg_type()
          returns value of the MSG_TYPE column of this row of data
 java.lang.String getObjScan_type()
          returns value of the SCAN_TYPE column of this row of data
 java.lang.Long getObjSpam_batch()
          returns value of the SPAM_BATCH column of this row of data
 java.lang.String getObjSpam_from()
          returns value of the SPAM_FROM column of this row of data
 java.lang.String getObjSpam_ip()
          returns value of the SPAM_IP column of this row of data
 java.lang.String getObjSpam_source()
          returns value of the SPAM_SOURCE column of this row of data
 java.lang.String getObjSpam_to()
          returns value of the SPAM_TO column of this row of data
 java.lang.String getScan_type()
          returns value of the SCAN_TYPE column of this row of data
 long getSpam_batch()
          returns value of the SPAM_BATCH column of this row of data
 java.lang.String getSpam_from()
          returns value of the SPAM_FROM column of this row of data
 java.lang.String getSpam_ip()
          returns value of the SPAM_IP column of this row of data
 java.lang.String getSpam_source()
          returns value of the SPAM_SOURCE column of this row of data
 java.lang.String getSpam_to()
          returns value of the SPAM_TO column of this row of data
 void load(Db db)
          load record from the DB by primary key
static Msg_info load(java.sql.ResultSet results)
           
static Msg_info load(java.sql.ResultSet results, Msg_info newObj)
           
 void setAbuse_contact(java.lang.String newVal)
          sets value of the ABUSE_CONTACT 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 setMessageid(java.lang.String newVal)
          sets value of the MESSAGEID 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 setMsg_id(int newVal)
          sets value of the MSG_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 setMsg_id(java.lang.Integer newVal)
          sets value of the MSG_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 setMsg_number(java.lang.String newVal)
          sets value of the MSG_NUMBER 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 setMsg_sent(java.sql.Timestamp newVal)
          sets value of the MSG_SENT column of this row of data default value for this field set by the DB is null
 void setMsg_type(java.lang.String newVal)
          sets value of the MSG_TYPE column of this row of data default value for this field set by the DB is null This field has a max length of 1, longer strings will be truncated
 void setScan_type(java.lang.String newVal)
          sets value of the SCAN_TYPE column of this row of data default value for this field set by the DB is null This field has a max length of 3, longer strings will be truncated
 void setSpam_batch(long newVal)
          sets value of the SPAM_BATCH column of this row of data default value for this field set by the DB is null
 void setSpam_batch(java.lang.Long newVal)
          sets value of the SPAM_BATCH column of this row of data default value for this field set by the DB is null
 void setSpam_from(java.lang.String newVal)
          sets value of the SPAM_FROM 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 setSpam_ip(java.lang.String newVal)
          sets value of the SPAM_IP column of this row of data default value for this field set by the DB is null This field has a max length of 15, longer strings will be truncated
 void setSpam_source(java.lang.String newVal)
          sets value of the SPAM_SOURCE 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 setSpam_to(java.lang.String newVal)
          sets value of the SPAM_TO 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 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

abuse_contact

protected java.lang.String abuse_contact

messageid

protected java.lang.String messageid

msg_id

protected java.lang.Integer msg_id

msg_number

protected java.lang.String msg_number

msg_sent

protected java.sql.Timestamp msg_sent

msg_type

protected java.lang.String msg_type

scan_type

protected java.lang.String scan_type

spam_batch

protected java.lang.Long spam_batch

spam_from

protected java.lang.String spam_from

spam_ip

protected java.lang.String spam_ip

spam_source

protected java.lang.String spam_source

spam_to

protected java.lang.String spam_to

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

ABUSE_CONTACT

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

ABUSE_CONTACT_LEN

public static final int ABUSE_CONTACT_LEN
See Also:
Constant Field Values

MESSAGEID

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

MESSAGEID_LEN

public static final int MESSAGEID_LEN
See Also:
Constant Field Values

MSG_ID

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

MSG_ID_LEN

public static final int MSG_ID_LEN
See Also:
Constant Field Values

MSG_NUMBER

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

MSG_NUMBER_LEN

public static final int MSG_NUMBER_LEN
See Also:
Constant Field Values

MSG_SENT

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

MSG_SENT_LEN

public static final int MSG_SENT_LEN
See Also:
Constant Field Values

MSG_TYPE

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

MSG_TYPE_LEN

public static final int MSG_TYPE_LEN
See Also:
Constant Field Values

SCAN_TYPE

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

SCAN_TYPE_LEN

public static final int SCAN_TYPE_LEN
See Also:
Constant Field Values

SPAM_BATCH

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

SPAM_BATCH_LEN

public static final int SPAM_BATCH_LEN
See Also:
Constant Field Values

SPAM_FROM

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

SPAM_FROM_LEN

public static final int SPAM_FROM_LEN
See Also:
Constant Field Values

SPAM_IP

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

SPAM_IP_LEN

public static final int SPAM_IP_LEN
See Also:
Constant Field Values

SPAM_SOURCE

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

SPAM_SOURCE_LEN

public static final int SPAM_SOURCE_LEN
See Also:
Constant Field Values

SPAM_TO

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

SPAM_TO_LEN

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

Msg_info

public Msg_info()
Basic constructor


Msg_info

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

Method Detail

getObjAbuse_contact

public java.lang.String getObjAbuse_contact()
returns value of the ABUSE_CONTACT column of this row of data

Returns:
value of this column in this row

getAbuse_contact

public java.lang.String getAbuse_contact()
returns value of the ABUSE_CONTACT column of this row of data

Returns:
value of this column in this row

setAbuse_contact

public void setAbuse_contact(java.lang.String newVal)
sets value of the ABUSE_CONTACT 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


getObjMessageid

public java.lang.String getObjMessageid()
returns value of the MESSAGEID column of this row of data

Returns:
value of this column in this row

getMessageid

public java.lang.String getMessageid()
returns value of the MESSAGEID column of this row of data

Returns:
value of this column in this row

setMessageid

public void setMessageid(java.lang.String newVal)
sets value of the MESSAGEID 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


getObjMsg_id

public java.lang.Integer getObjMsg_id()
returns value of the MSG_ID column of this row of data

Returns:
value of this column in this row

getMsg_id

public int getMsg_id()
returns value of the MSG_ID column of this row of data

Returns:
value of this column in this row

setMsg_id

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


setMsg_id

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


getObjMsg_number

public java.lang.String getObjMsg_number()
returns value of the MSG_NUMBER column of this row of data

Returns:
value of this column in this row

getMsg_number

public java.lang.String getMsg_number()
returns value of the MSG_NUMBER column of this row of data

Returns:
value of this column in this row

setMsg_number

public void setMsg_number(java.lang.String newVal)
sets value of the MSG_NUMBER 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


getObjMsg_sent

public java.sql.Timestamp getObjMsg_sent()
returns value of the MSG_SENT column of this row of data

Returns:
value of this column in this row

getMsg_sent

public java.sql.Timestamp getMsg_sent()
returns value of the MSG_SENT column of this row of data

Returns:
value of this column in this row

setMsg_sent

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


getObjMsg_type

public java.lang.String getObjMsg_type()
returns value of the MSG_TYPE column of this row of data

Returns:
value of this column in this row

getMsg_type

public java.lang.String getMsg_type()
returns value of the MSG_TYPE column of this row of data

Returns:
value of this column in this row

setMsg_type

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


getObjScan_type

public java.lang.String getObjScan_type()
returns value of the SCAN_TYPE column of this row of data

Returns:
value of this column in this row

getScan_type

public java.lang.String getScan_type()
returns value of the SCAN_TYPE column of this row of data

Returns:
value of this column in this row

setScan_type

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


getObjSpam_batch

public java.lang.Long getObjSpam_batch()
returns value of the SPAM_BATCH column of this row of data

Returns:
value of this column in this row

getSpam_batch

public long getSpam_batch()
returns value of the SPAM_BATCH column of this row of data

Returns:
value of this column in this row

setSpam_batch

public void setSpam_batch(java.lang.Long newVal)
sets value of the SPAM_BATCH column of this row of data default value for this field set by the DB is null


setSpam_batch

public void setSpam_batch(long newVal)
sets value of the SPAM_BATCH column of this row of data default value for this field set by the DB is null


getObjSpam_from

public java.lang.String getObjSpam_from()
returns value of the SPAM_FROM column of this row of data

Returns:
value of this column in this row

getSpam_from

public java.lang.String getSpam_from()
returns value of the SPAM_FROM column of this row of data

Returns:
value of this column in this row

setSpam_from

public void setSpam_from(java.lang.String newVal)
sets value of the SPAM_FROM 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


getObjSpam_ip

public java.lang.String getObjSpam_ip()
returns value of the SPAM_IP column of this row of data

Returns:
value of this column in this row

getSpam_ip

public java.lang.String getSpam_ip()
returns value of the SPAM_IP column of this row of data

Returns:
value of this column in this row

setSpam_ip

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


getObjSpam_source

public java.lang.String getObjSpam_source()
returns value of the SPAM_SOURCE column of this row of data

Returns:
value of this column in this row

getSpam_source

public java.lang.String getSpam_source()
returns value of the SPAM_SOURCE column of this row of data

Returns:
value of this column in this row

setSpam_source

public void setSpam_source(java.lang.String newVal)
sets value of the SPAM_SOURCE 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


getObjSpam_to

public java.lang.String getObjSpam_to()
returns value of the SPAM_TO column of this row of data

Returns:
value of this column in this row

getSpam_to

public java.lang.String getSpam_to()
returns value of the SPAM_TO column of this row of data

Returns:
value of this column in this row

setSpam_to

public void setSpam_to(java.lang.String newVal)
sets value of the SPAM_TO 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


clone

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

load

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

load

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