dea.beans
Class Templates

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

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

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

Version:
1.0
Primary key is on column:ATTR_KEY
Create statment: CREATE TABLE `templates` ( `attr_key` int(11) NOT NULL auto_increment, `cnum` int(11) default NULL, `attrib_name` varchar(50) default '', `sort_order` smallint(6) default NULL, `attrib_type` varchar(50) default '', `mask` mediumtext, `help` mediumtext, PRIMARY KEY (`attr_key`) ) TYPE=MyISAM
Author:
David Abigt via GenBean
See Also:
Serialized Form

Field Summary
protected  java.lang.Integer attr_key
           
static java.lang.String ATTR_KEY
           
static int ATTR_KEY_LEN
           
protected  java.lang.String attrib_name
           
static java.lang.String ATTRIB_NAME
           
static int ATTRIB_NAME_LEN
           
protected  java.lang.String attrib_type
           
static java.lang.String ATTRIB_TYPE
           
static int ATTRIB_TYPE_LEN
           
protected  java.lang.Integer cnum
           
static java.lang.String CNUM
           
static int CNUM_LEN
           
protected static Display display
           
static java.lang.String GETALL
           
protected  java.lang.String help
           
static java.lang.String HELP
           
static int HELP_LEN
           
protected  java.lang.String mask
           
static java.lang.String MASK
           
static int MASK_LEN
           
protected  java.lang.Integer sort_order
           
static java.lang.String SORT_ORDER
           
static int SORT_ORDER_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
Templates()
          Basic constructor
Templates(int pk)
          load record from the DB by primary key.
 
Method Summary
 java.lang.Object clone()
           
 int getAttr_key()
          returns value of the ATTR_KEY column of this row of data
 java.lang.String getAttrib_name()
          returns value of the ATTRIB_NAME column of this row of data
 java.lang.String getAttrib_type()
          returns value of the ATTRIB_TYPE column of this row of data
 int getCnum()
          returns value of the CNUM column of this row of data
 java.lang.String getHelp()
          returns value of the HELP column of this row of data
 java.lang.String getMask()
          returns value of the MASK column of this row of data
 java.lang.Integer getObjAttr_key()
          returns value of the ATTR_KEY column of this row of data
 java.lang.String getObjAttrib_name()
          returns value of the ATTRIB_NAME column of this row of data
 java.lang.String getObjAttrib_type()
          returns value of the ATTRIB_TYPE column of this row of data
 java.lang.Integer getObjCnum()
          returns value of the CNUM column of this row of data
 java.lang.String getObjHelp()
          returns value of the HELP column of this row of data
 java.lang.String getObjMask()
          returns value of the MASK column of this row of data
 java.lang.Integer getObjSort_order()
          returns value of the SORT_ORDER column of this row of data
 int getSort_order()
          returns value of the SORT_ORDER column of this row of data
 void load(Db db)
          load record from the DB by primary key
static Templates load(java.sql.ResultSet results)
           
static Templates load(java.sql.ResultSet results, Templates newObj)
           
 void setAttr_key(int newVal)
          sets value of the ATTR_KEY 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 setAttr_key(java.lang.Integer newVal)
          sets value of the ATTR_KEY 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 setAttrib_name(java.lang.String newVal)
          sets value of the ATTRIB_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 setAttrib_type(java.lang.String newVal)
          sets value of the ATTRIB_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 50, longer strings will be truncated
 void setCnum(int newVal)
          sets value of the CNUM column of this row of data default value for this field set by the DB is null
 void setCnum(java.lang.Integer newVal)
          sets value of the CNUM column of this row of data default value for this field set by the DB is null
 void setHelp(java.lang.String newVal)
          sets value of the HELP 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 setMask(java.lang.String newVal)
          sets value of the MASK 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 setSort_order(int newVal)
          sets value of the SORT_ORDER column of this row of data default value for this field set by the DB is null
 void setSort_order(java.lang.Integer newVal)
          sets value of the SORT_ORDER 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

attr_key

protected java.lang.Integer attr_key

attrib_name

protected java.lang.String attrib_name

attrib_type

protected java.lang.String attrib_type

cnum

protected java.lang.Integer cnum

help

protected java.lang.String help

mask

protected java.lang.String mask

sort_order

protected java.lang.Integer sort_order

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

ATTR_KEY

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

ATTR_KEY_LEN

public static final int ATTR_KEY_LEN
See Also:
Constant Field Values

ATTRIB_NAME

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

ATTRIB_NAME_LEN

public static final int ATTRIB_NAME_LEN
See Also:
Constant Field Values

ATTRIB_TYPE

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

ATTRIB_TYPE_LEN

public static final int ATTRIB_TYPE_LEN
See Also:
Constant Field Values

CNUM

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

CNUM_LEN

public static final int CNUM_LEN
See Also:
Constant Field Values

HELP

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

HELP_LEN

public static final int HELP_LEN
See Also:
Constant Field Values

MASK

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

MASK_LEN

public static final int MASK_LEN
See Also:
Constant Field Values

SORT_ORDER

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

SORT_ORDER_LEN

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

Templates

public Templates()
Basic constructor


Templates

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

Method Detail

getObjAttr_key

public java.lang.Integer getObjAttr_key()
returns value of the ATTR_KEY column of this row of data

Returns:
value of this column in this row

getAttr_key

public int getAttr_key()
returns value of the ATTR_KEY column of this row of data

Returns:
value of this column in this row

setAttr_key

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


setAttr_key

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


getObjAttrib_name

public java.lang.String getObjAttrib_name()
returns value of the ATTRIB_NAME column of this row of data

Returns:
value of this column in this row

getAttrib_name

public java.lang.String getAttrib_name()
returns value of the ATTRIB_NAME column of this row of data

Returns:
value of this column in this row

setAttrib_name

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


getObjAttrib_type

public java.lang.String getObjAttrib_type()
returns value of the ATTRIB_TYPE column of this row of data

Returns:
value of this column in this row

getAttrib_type

public java.lang.String getAttrib_type()
returns value of the ATTRIB_TYPE column of this row of data

Returns:
value of this column in this row

setAttrib_type

public void setAttrib_type(java.lang.String newVal)
sets value of the ATTRIB_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 50, longer strings will be truncated


getObjCnum

public java.lang.Integer getObjCnum()
returns value of the CNUM column of this row of data

Returns:
value of this column in this row

getCnum

public int getCnum()
returns value of the CNUM column of this row of data

Returns:
value of this column in this row

setCnum

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


setCnum

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


getObjHelp

public java.lang.String getObjHelp()
returns value of the HELP column of this row of data

Returns:
value of this column in this row

getHelp

public java.lang.String getHelp()
returns value of the HELP column of this row of data

Returns:
value of this column in this row

setHelp

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


getObjMask

public java.lang.String getObjMask()
returns value of the MASK column of this row of data

Returns:
value of this column in this row

getMask

public java.lang.String getMask()
returns value of the MASK column of this row of data

Returns:
value of this column in this row

setMask

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


getObjSort_order

public java.lang.Integer getObjSort_order()
returns value of the SORT_ORDER column of this row of data

Returns:
value of this column in this row

getSort_order

public int getSort_order()
returns value of the SORT_ORDER column of this row of data

Returns:
value of this column in this row

setSort_order

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


setSort_order

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

load

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