dea.beans
Class Memos

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

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

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

Version:
1.0
Primary key is on column:O_NUM
Create statment: CREATE TABLE `memos` ( `o_num` int(11) default NULL, `a_num` int(11) default NULL, `memo` mediumtext ) TYPE=MyISAM
Author:
David Abigt via GenBean
See Also:
Serialized Form

Field Summary
protected  java.lang.Integer a_num
           
static java.lang.String A_NUM
           
static int A_NUM_LEN
           
protected static Display display
           
static java.lang.String GETALL
           
protected  java.lang.String memo
           
static java.lang.String MEMO
           
static int MEMO_LEN
           
protected  java.lang.Integer o_num
           
static java.lang.String O_NUM
           
static int O_NUM_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
Memos()
          Basic constructor
Memos(int pk)
          load record from the DB by primary key.
 
Method Summary
 java.lang.Object clone()
           
 int getA_num()
          returns value of the A_NUM column of this row of data
 java.lang.String getMemo()
          returns value of the MEMO column of this row of data
 int getO_num()
          returns value of the O_NUM column of this row of data
 java.lang.Integer getObjA_num()
          returns value of the A_NUM column of this row of data
 java.lang.String getObjMemo()
          returns value of the MEMO column of this row of data
 java.lang.Integer getObjO_num()
          returns value of the O_NUM column of this row of data
 void load(Db db)
          load record from the DB by primary key
static Memos load(java.sql.ResultSet results)
           
static Memos load(java.sql.ResultSet results, Memos newObj)
           
 void setA_num(int newVal)
          sets value of the A_NUM column of this row of data default value for this field set by the DB is null
 void setA_num(java.lang.Integer newVal)
          sets value of the A_NUM column of this row of data default value for this field set by the DB is null
 void setMemo(java.lang.String newVal)
          sets value of the MEMO column of this row of data default value for this field set by the DB is null This field has a max length of 16777215, longer strings will be truncated
 void setO_num(int newVal)
          sets value of the O_NUM 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 setO_num(java.lang.Integer newVal)
          sets value of the O_NUM 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 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

a_num

protected java.lang.Integer a_num

memo

protected java.lang.String memo

o_num

protected java.lang.Integer o_num

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

A_NUM

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

A_NUM_LEN

public static final int A_NUM_LEN
See Also:
Constant Field Values

MEMO

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

MEMO_LEN

public static final int MEMO_LEN
See Also:
Constant Field Values

O_NUM

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

O_NUM_LEN

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

Memos

public Memos()
Basic constructor


Memos

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

Method Detail

getObjA_num

public java.lang.Integer getObjA_num()
returns value of the A_NUM column of this row of data

Returns:
value of this column in this row

getA_num

public int getA_num()
returns value of the A_NUM column of this row of data

Returns:
value of this column in this row

setA_num

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


setA_num

public void setA_num(int newVal)
sets value of the A_NUM column of this row of data default value for this field set by the DB is null


getObjMemo

public java.lang.String getObjMemo()
returns value of the MEMO column of this row of data

Returns:
value of this column in this row

getMemo

public java.lang.String getMemo()
returns value of the MEMO column of this row of data

Returns:
value of this column in this row

setMemo

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


getObjO_num

public java.lang.Integer getObjO_num()
returns value of the O_NUM column of this row of data

Returns:
value of this column in this row

getO_num

public int getO_num()
returns value of the O_NUM column of this row of data

Returns:
value of this column in this row

setO_num

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


setO_num

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


clone

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

load

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

load

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