dea.beans
Class Pics

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

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

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

Version:
1.0
Primary key is on column:PIC_KEY
Create statment: CREATE TABLE `pics` ( `pic_key` int(11) NOT NULL auto_increment, `raw` mediumtext, `web` mediumtext, `thumb` mediumtext, `changed` smallint(6) default NULL, `decade` smallint(6) default NULL, `year` smallint(6) default NULL, `month` smallint(6) default NULL, `day` smallint(6) default NULL, `src` smallint(6) default NULL, `title` mediumtext, `descript` mediumtext, `comments` mediumtext, `rsize` smallint(6) default NULL, `wsize` smallint(6) default NULL, `publish` smallint(6) default NULL, `updated` datetime default NULL, `usedin` int(11) default NULL, PRIMARY KEY (`pic_key`) ) TYPE=MyISAM
Author:
David Abigt via GenBean
See Also:
Serialized Form

Field Summary
protected  java.lang.Integer changed
           
static java.lang.String CHANGED
           
static int CHANGED_LEN
           
protected  java.lang.String comments
           
static java.lang.String COMMENTS
           
static int COMMENTS_LEN
           
protected  java.lang.Integer day
           
static java.lang.String DAY
           
static int DAY_LEN
           
protected  java.lang.Integer decade
           
static java.lang.String DECADE
           
static int DECADE_LEN
           
protected  java.lang.String descript
           
static java.lang.String DESCRIPT
           
static int DESCRIPT_LEN
           
protected static Display display
           
static java.lang.String GETALL
           
protected  java.lang.Integer month
           
static java.lang.String MONTH
           
static int MONTH_LEN
           
protected  java.lang.Integer pic_key
           
static java.lang.String PIC_KEY
           
static int PIC_KEY_LEN
           
protected  java.lang.Integer publish
           
static java.lang.String PUBLISH
           
static int PUBLISH_LEN
           
protected  java.lang.String raw
           
static java.lang.String RAW
           
static int RAW_LEN
           
protected  java.lang.Integer rsize
           
static java.lang.String RSIZE
           
static int RSIZE_LEN
           
protected  java.lang.Integer src
           
static java.lang.String SRC
           
static int SRC_LEN
           
static java.lang.String TABLE_NAME
           
protected  java.lang.String thumb
           
static java.lang.String THUMB
           
static int THUMB_LEN
           
protected  java.lang.String title
           
static java.lang.String TITLE
           
static int TITLE_LEN
           
protected  java.sql.Timestamp updated
           
static java.lang.String UPDATED
           
static int UPDATED_LEN
           
protected  java.lang.Integer usedin
           
static java.lang.String USEDIN
           
static int USEDIN_LEN
           
protected  java.lang.String web
           
static java.lang.String WEB
           
static int WEB_LEN
           
protected  java.lang.Integer wsize
           
static java.lang.String WSIZE
           
static int WSIZE_LEN
           
protected  java.lang.Integer year
           
static java.lang.String YEAR
           
static int YEAR_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
Pics()
          Basic constructor
Pics(int pk)
          load record from the DB by primary key.
 
Method Summary
 java.lang.Object clone()
           
 int getChanged()
          returns value of the CHANGED column of this row of data
 java.lang.String getComments()
          returns value of the COMMENTS column of this row of data
 int getDay()
          returns value of the DAY column of this row of data
 int getDecade()
          returns value of the DECADE column of this row of data
 java.lang.String getDescript()
          returns value of the DESCRIPT column of this row of data
 int getMonth()
          returns value of the MONTH column of this row of data
 java.lang.Integer getObjChanged()
          returns value of the CHANGED column of this row of data
 java.lang.String getObjComments()
          returns value of the COMMENTS column of this row of data
 java.lang.Integer getObjDay()
          returns value of the DAY column of this row of data
 java.lang.Integer getObjDecade()
          returns value of the DECADE column of this row of data
 java.lang.String getObjDescript()
          returns value of the DESCRIPT column of this row of data
 java.lang.Integer getObjMonth()
          returns value of the MONTH column of this row of data
 java.lang.Integer getObjPic_key()
          returns value of the PIC_KEY column of this row of data
 java.lang.Integer getObjPublish()
          returns value of the PUBLISH column of this row of data
 java.lang.String getObjRaw()
          returns value of the RAW column of this row of data
 java.lang.Integer getObjRsize()
          returns value of the RSIZE column of this row of data
 java.lang.Integer getObjSrc()
          returns value of the SRC column of this row of data
 java.lang.String getObjThumb()
          returns value of the THUMB column of this row of data
 java.lang.String getObjTitle()
          returns value of the TITLE column of this row of data
 java.sql.Timestamp getObjUpdated()
          returns value of the UPDATED column of this row of data
 java.lang.Integer getObjUsedin()
          returns value of the USEDIN column of this row of data
 java.lang.String getObjWeb()
          returns value of the WEB column of this row of data
 java.lang.Integer getObjWsize()
          returns value of the WSIZE column of this row of data
 java.lang.Integer getObjYear()
          returns value of the YEAR column of this row of data
 int getPic_key()
          returns value of the PIC_KEY column of this row of data
 int getPublish()
          returns value of the PUBLISH column of this row of data
 java.lang.String getRaw()
          returns value of the RAW column of this row of data
 int getRsize()
          returns value of the RSIZE column of this row of data
 int getSrc()
          returns value of the SRC column of this row of data
 java.lang.String getThumb()
          returns value of the THUMB column of this row of data
 java.lang.String getTitle()
          returns value of the TITLE column of this row of data
 java.sql.Timestamp getUpdated()
          returns value of the UPDATED column of this row of data
 int getUsedin()
          returns value of the USEDIN column of this row of data
 java.lang.String getWeb()
          returns value of the WEB column of this row of data
 int getWsize()
          returns value of the WSIZE column of this row of data
 int getYear()
          returns value of the YEAR column of this row of data
 void load(Db db)
          load record from the DB by primary key
static Pics load(java.sql.ResultSet results)
           
static Pics load(java.sql.ResultSet results, Pics newObj)
           
 void setChanged(int newVal)
          sets value of the CHANGED column of this row of data default value for this field set by the DB is null
 void setChanged(java.lang.Integer newVal)
          sets value of the CHANGED column of this row of data default value for this field set by the DB is null
 void setComments(java.lang.String newVal)
          sets value of the COMMENTS 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 setDay(int newVal)
          sets value of the DAY column of this row of data default value for this field set by the DB is null
 void setDay(java.lang.Integer newVal)
          sets value of the DAY column of this row of data default value for this field set by the DB is null
 void setDecade(int newVal)
          sets value of the DECADE column of this row of data default value for this field set by the DB is null
 void setDecade(java.lang.Integer newVal)
          sets value of the DECADE column of this row of data default value for this field set by the DB is null
 void setDescript(java.lang.String newVal)
          sets value of the DESCRIPT 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 setMonth(int newVal)
          sets value of the MONTH column of this row of data default value for this field set by the DB is null
 void setMonth(java.lang.Integer newVal)
          sets value of the MONTH column of this row of data default value for this field set by the DB is null
 void setPic_key(int newVal)
          sets value of the PIC_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 setPic_key(java.lang.Integer newVal)
          sets value of the PIC_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 setPublish(int newVal)
          sets value of the PUBLISH column of this row of data default value for this field set by the DB is null
 void setPublish(java.lang.Integer newVal)
          sets value of the PUBLISH column of this row of data default value for this field set by the DB is null
 void setRaw(java.lang.String newVal)
          sets value of the RAW 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 setRsize(int newVal)
          sets value of the RSIZE column of this row of data default value for this field set by the DB is null
 void setRsize(java.lang.Integer newVal)
          sets value of the RSIZE column of this row of data default value for this field set by the DB is null
 void setSrc(int newVal)
          sets value of the SRC column of this row of data default value for this field set by the DB is null
 void setSrc(java.lang.Integer newVal)
          sets value of the SRC column of this row of data default value for this field set by the DB is null
 void setThumb(java.lang.String newVal)
          sets value of the THUMB 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 setTitle(java.lang.String newVal)
          sets value of the TITLE 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 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 setUsedin(int newVal)
          sets value of the USEDIN column of this row of data default value for this field set by the DB is null
 void setUsedin(java.lang.Integer newVal)
          sets value of the USEDIN column of this row of data default value for this field set by the DB is null
 void setWeb(java.lang.String newVal)
          sets value of the WEB 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 setWsize(int newVal)
          sets value of the WSIZE column of this row of data default value for this field set by the DB is null
 void setWsize(java.lang.Integer newVal)
          sets value of the WSIZE column of this row of data default value for this field set by the DB is null
 void setYear(int newVal)
          sets value of the YEAR column of this row of data default value for this field set by the DB is null
 void setYear(java.lang.Integer newVal)
          sets value of the YEAR 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

changed

protected java.lang.Integer changed

comments

protected java.lang.String comments

day

protected java.lang.Integer day

decade

protected java.lang.Integer decade

descript

protected java.lang.String descript

month

protected java.lang.Integer month

pic_key

protected java.lang.Integer pic_key

publish

protected java.lang.Integer publish

raw

protected java.lang.String raw

rsize

protected java.lang.Integer rsize

src

protected java.lang.Integer src

thumb

protected java.lang.String thumb

title

protected java.lang.String title

updated

protected java.sql.Timestamp updated

usedin

protected java.lang.Integer usedin

web

protected java.lang.String web

wsize

protected java.lang.Integer wsize

year

protected java.lang.Integer year

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

CHANGED

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

CHANGED_LEN

public static final int CHANGED_LEN
See Also:
Constant Field Values

COMMENTS

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

COMMENTS_LEN

public static final int COMMENTS_LEN
See Also:
Constant Field Values

DAY

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

DAY_LEN

public static final int DAY_LEN
See Also:
Constant Field Values

DECADE

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

DECADE_LEN

public static final int DECADE_LEN
See Also:
Constant Field Values

DESCRIPT

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

DESCRIPT_LEN

public static final int DESCRIPT_LEN
See Also:
Constant Field Values

MONTH

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

MONTH_LEN

public static final int MONTH_LEN
See Also:
Constant Field Values

PIC_KEY

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

PIC_KEY_LEN

public static final int PIC_KEY_LEN
See Also:
Constant Field Values

PUBLISH

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

PUBLISH_LEN

public static final int PUBLISH_LEN
See Also:
Constant Field Values

RAW

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

RAW_LEN

public static final int RAW_LEN
See Also:
Constant Field Values

RSIZE

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

RSIZE_LEN

public static final int RSIZE_LEN
See Also:
Constant Field Values

SRC

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

SRC_LEN

public static final int SRC_LEN
See Also:
Constant Field Values

THUMB

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

THUMB_LEN

public static final int THUMB_LEN
See Also:
Constant Field Values

TITLE

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

TITLE_LEN

public static final int TITLE_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

USEDIN

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

USEDIN_LEN

public static final int USEDIN_LEN
See Also:
Constant Field Values

WEB

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

WEB_LEN

public static final int WEB_LEN
See Also:
Constant Field Values

WSIZE

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

WSIZE_LEN

public static final int WSIZE_LEN
See Also:
Constant Field Values

YEAR

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

YEAR_LEN

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

Pics

public Pics()
Basic constructor


Pics

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

Method Detail

getObjChanged

public java.lang.Integer getObjChanged()
returns value of the CHANGED column of this row of data

Returns:
value of this column in this row

getChanged

public int getChanged()
returns value of the CHANGED column of this row of data

Returns:
value of this column in this row

setChanged

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


setChanged

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


getObjComments

public java.lang.String getObjComments()
returns value of the COMMENTS column of this row of data

Returns:
value of this column in this row

getComments

public java.lang.String getComments()
returns value of the COMMENTS column of this row of data

Returns:
value of this column in this row

setComments

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


getObjDay

public java.lang.Integer getObjDay()
returns value of the DAY column of this row of data

Returns:
value of this column in this row

getDay

public int getDay()
returns value of the DAY column of this row of data

Returns:
value of this column in this row

setDay

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


setDay

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


getObjDecade

public java.lang.Integer getObjDecade()
returns value of the DECADE column of this row of data

Returns:
value of this column in this row

getDecade

public int getDecade()
returns value of the DECADE column of this row of data

Returns:
value of this column in this row

setDecade

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


setDecade

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


getObjDescript

public java.lang.String getObjDescript()
returns value of the DESCRIPT column of this row of data

Returns:
value of this column in this row

getDescript

public java.lang.String getDescript()
returns value of the DESCRIPT column of this row of data

Returns:
value of this column in this row

setDescript

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


getObjMonth

public java.lang.Integer getObjMonth()
returns value of the MONTH column of this row of data

Returns:
value of this column in this row

getMonth

public int getMonth()
returns value of the MONTH column of this row of data

Returns:
value of this column in this row

setMonth

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


setMonth

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


getObjPic_key

public java.lang.Integer getObjPic_key()
returns value of the PIC_KEY column of this row of data

Returns:
value of this column in this row

getPic_key

public int getPic_key()
returns value of the PIC_KEY column of this row of data

Returns:
value of this column in this row

setPic_key

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


setPic_key

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


getObjPublish

public java.lang.Integer getObjPublish()
returns value of the PUBLISH column of this row of data

Returns:
value of this column in this row

getPublish

public int getPublish()
returns value of the PUBLISH column of this row of data

Returns:
value of this column in this row

setPublish

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


setPublish

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


getObjRaw

public java.lang.String getObjRaw()
returns value of the RAW column of this row of data

Returns:
value of this column in this row

getRaw

public java.lang.String getRaw()
returns value of the RAW column of this row of data

Returns:
value of this column in this row

setRaw

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


getObjRsize

public java.lang.Integer getObjRsize()
returns value of the RSIZE column of this row of data

Returns:
value of this column in this row

getRsize

public int getRsize()
returns value of the RSIZE column of this row of data

Returns:
value of this column in this row

setRsize

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


setRsize

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


getObjSrc

public java.lang.Integer getObjSrc()
returns value of the SRC column of this row of data

Returns:
value of this column in this row

getSrc

public int getSrc()
returns value of the SRC column of this row of data

Returns:
value of this column in this row

setSrc

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


setSrc

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


getObjThumb

public java.lang.String getObjThumb()
returns value of the THUMB column of this row of data

Returns:
value of this column in this row

getThumb

public java.lang.String getThumb()
returns value of the THUMB column of this row of data

Returns:
value of this column in this row

setThumb

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


getObjTitle

public java.lang.String getObjTitle()
returns value of the TITLE column of this row of data

Returns:
value of this column in this row

getTitle

public java.lang.String getTitle()
returns value of the TITLE column of this row of data

Returns:
value of this column in this row

setTitle

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


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


getObjUsedin

public java.lang.Integer getObjUsedin()
returns value of the USEDIN column of this row of data

Returns:
value of this column in this row

getUsedin

public int getUsedin()
returns value of the USEDIN column of this row of data

Returns:
value of this column in this row

setUsedin

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


setUsedin

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


getObjWeb

public java.lang.String getObjWeb()
returns value of the WEB column of this row of data

Returns:
value of this column in this row

getWeb

public java.lang.String getWeb()
returns value of the WEB column of this row of data

Returns:
value of this column in this row

setWeb

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


getObjWsize

public java.lang.Integer getObjWsize()
returns value of the WSIZE column of this row of data

Returns:
value of this column in this row

getWsize

public int getWsize()
returns value of the WSIZE column of this row of data

Returns:
value of this column in this row

setWsize

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


setWsize

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


getObjYear

public java.lang.Integer getObjYear()
returns value of the YEAR column of this row of data

Returns:
value of this column in this row

getYear

public int getYear()
returns value of the YEAR column of this row of data

Returns:
value of this column in this row

setYear

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


setYear

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

load

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