dea.beans
Class Parms

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

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

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

Version:
1.0
Primary key is on column:PARM_ID
Create statment: CREATE TABLE `parms` ( `parm_id` int(11) NOT NULL auto_increment, `PARM` varchar(50) NOT NULL default '', `VAL` int(11) default NULL, `STR` mediumtext, `Decription` mediumtext, PRIMARY KEY (`parm_id`) ) TYPE=MyISAM
Author:
David Abigt via GenBean
See Also:
Serialized Form

Field Summary
protected  java.lang.String decription
           
static java.lang.String DECRIPTION
           
static int DECRIPTION_LEN
           
protected static Display display
           
static java.lang.String GETALL
           
protected  java.lang.String parm
           
static java.lang.String PARM
           
protected  java.lang.Integer parm_id
           
static java.lang.String PARM_ID
           
static int PARM_ID_LEN
           
static int PARM_LEN
           
protected  java.lang.String str
           
static java.lang.String STR
           
static int STR_LEN
           
static java.lang.String TABLE_NAME
           
protected  java.lang.Integer val
           
static java.lang.String VAL
           
static int VAL_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
Parms()
          Basic constructor
Parms(int pk)
          load record from the DB by primary key.
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String getDecription()
          returns value of the DECRIPTION column of this row of data
 java.lang.String getObjDecription()
          returns value of the DECRIPTION column of this row of data
 java.lang.Integer getObjParm_id()
          returns value of the PARM_ID column of this row of data
 java.lang.String getObjParm()
          returns value of the PARM column of this row of data
 java.lang.String getObjStr()
          returns value of the STR column of this row of data
 java.lang.Integer getObjVal()
          returns value of the VAL column of this row of data
 int getParm_id()
          returns value of the PARM_ID column of this row of data
 java.lang.String getParm()
          returns value of the PARM column of this row of data
 java.lang.String getStr()
          returns value of the STR column of this row of data
 int getVal()
          returns value of the VAL column of this row of data
 void load(Db db)
          load record from the DB by primary key
static Parms load(java.sql.ResultSet results)
           
static Parms load(java.sql.ResultSet results, Parms newObj)
           
 void setDecription(java.lang.String newVal)
          sets value of the DECRIPTION 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 setParm_id(int newVal)
          sets value of the PARM_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 setParm_id(java.lang.Integer newVal)
          sets value of the PARM_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 setParm(java.lang.String newVal)
          sets value of the PARM 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 setStr(java.lang.String newVal)
          sets value of the STR 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 setVal(int newVal)
          sets value of the VAL column of this row of data default value for this field set by the DB is null
 void setVal(java.lang.Integer newVal)
          sets value of the VAL 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

decription

protected java.lang.String decription

parm

protected java.lang.String parm

parm_id

protected java.lang.Integer parm_id

str

protected java.lang.String str

val

protected java.lang.Integer val

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

DECRIPTION

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

DECRIPTION_LEN

public static final int DECRIPTION_LEN
See Also:
Constant Field Values

PARM

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

PARM_LEN

public static final int PARM_LEN
See Also:
Constant Field Values

PARM_ID

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

PARM_ID_LEN

public static final int PARM_ID_LEN
See Also:
Constant Field Values

STR

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

STR_LEN

public static final int STR_LEN
See Also:
Constant Field Values

VAL

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

VAL_LEN

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

Parms

public Parms()
Basic constructor


Parms

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

Method Detail

getObjDecription

public java.lang.String getObjDecription()
returns value of the DECRIPTION column of this row of data

Returns:
value of this column in this row

getDecription

public java.lang.String getDecription()
returns value of the DECRIPTION column of this row of data

Returns:
value of this column in this row

setDecription

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


getObjParm

public java.lang.String getObjParm()
returns value of the PARM column of this row of data

Returns:
value of this column in this row

getParm

public java.lang.String getParm()
returns value of the PARM column of this row of data

Returns:
value of this column in this row

setParm

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


getObjParm_id

public java.lang.Integer getObjParm_id()
returns value of the PARM_ID column of this row of data

Returns:
value of this column in this row

getParm_id

public int getParm_id()
returns value of the PARM_ID column of this row of data

Returns:
value of this column in this row

setParm_id

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


setParm_id

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


getObjStr

public java.lang.String getObjStr()
returns value of the STR column of this row of data

Returns:
value of this column in this row

getStr

public java.lang.String getStr()
returns value of the STR column of this row of data

Returns:
value of this column in this row

setStr

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


getObjVal

public java.lang.Integer getObjVal()
returns value of the VAL column of this row of data

Returns:
value of this column in this row

getVal

public int getVal()
returns value of the VAL column of this row of data

Returns:
value of this column in this row

setVal

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


setVal

public void setVal(int newVal)
sets value of the VAL 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 Parms load(java.sql.ResultSet results)
                  throws java.sql.SQLException
Returns:
an object created from the resultSet
Throws:
java.sql.SQLException

load

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