dea.beans
Class Dvds

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

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

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

Version:
1.0
Primary key is on column:ID
Create statment: CREATE TABLE `dvds` ( `ID` int(11) NOT NULL default '0', `title` varchar(255) NOT NULL default '', `media` varchar(10) default 'DVDR', `recorded` datetime default NULL, `format` varchar(5) default 'PS', `commnet` varchar(255) default '', `pic` varchar(50) default '', `url` varchar(255) default '', PRIMARY KEY (`ID`) ) TYPE=MyISAM
Author:
David Abigt via GenBean
See Also:
Serialized Form

Field Summary
protected  java.lang.String commnet
           
static java.lang.String COMMNET
           
static int COMMNET_LEN
           
protected static Display display
           
protected  java.lang.String format
           
static java.lang.String FORMAT
           
static int FORMAT_LEN
           
static java.lang.String GETALL
           
protected  java.lang.Integer id
           
static java.lang.String ID
           
static int ID_LEN
           
protected  java.lang.String media
           
static java.lang.String MEDIA
           
static int MEDIA_LEN
           
protected  java.lang.String pic
           
static java.lang.String PIC
           
static int PIC_LEN
           
protected  java.sql.Timestamp recorded
           
static java.lang.String RECORDED
           
static int RECORDED_LEN
           
static java.lang.String TABLE_NAME
           
protected  java.lang.String title
           
static java.lang.String TITLE
           
static int TITLE_LEN
           
protected  java.lang.String url
           
static java.lang.String URL
           
static int URL_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
Dvds()
          Basic constructor
Dvds(int pk)
          load record from the DB by primary key.
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String getCommnet()
          returns value of the COMMNET column of this row of data
 java.lang.String getFormat()
          returns value of the FORMAT column of this row of data
 int getId()
          returns value of the ID column of this row of data
 java.lang.String getMedia()
          returns value of the MEDIA column of this row of data
 java.lang.String getObjCommnet()
          returns value of the COMMNET column of this row of data
 java.lang.String getObjFormat()
          returns value of the FORMAT column of this row of data
 java.lang.Integer getObjId()
          returns value of the ID column of this row of data
 java.lang.String getObjMedia()
          returns value of the MEDIA column of this row of data
 java.lang.String getObjPic()
          returns value of the PIC column of this row of data
 java.sql.Timestamp getObjRecorded()
          returns value of the RECORDED column of this row of data
 java.lang.String getObjTitle()
          returns value of the TITLE column of this row of data
 java.lang.String getObjUrl()
          returns value of the URL column of this row of data
 java.lang.String getPic()
          returns value of the PIC column of this row of data
 java.sql.Timestamp getRecorded()
          returns value of the RECORDED column of this row of data
 java.lang.String getTitle()
          returns value of the TITLE column of this row of data
 java.lang.String getUrl()
          returns value of the URL column of this row of data
 void load(Db db)
          load record from the DB by primary key
static Dvds load(java.sql.ResultSet results)
           
static Dvds load(java.sql.ResultSet results, Dvds newObj)
           
 void setCommnet(java.lang.String newVal)
          sets value of the COMMNET column of this row of data default value for this field set by the DB is null This field has a max length of 255, longer strings will be truncated
 void setFormat(java.lang.String newVal)
          sets value of the FORMAT column of this row of data default value for this field set by the DB is null This field has a max length of 5, longer strings will be truncated
 void setId(int newVal)
          sets value of the 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 setId(java.lang.Integer newVal)
          sets value of the 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 setMedia(java.lang.String newVal)
          sets value of the MEDIA column of this row of data default value for this field set by the DB is null This field has a max length of 10, longer strings will be truncated
 void setPic(java.lang.String newVal)
          sets value of the PIC 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 setRecorded(java.sql.Timestamp newVal)
          sets value of the RECORDED column of this row of data default value for this field set by the DB is null
 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 255, longer strings will be truncated
 void setUrl(java.lang.String newVal)
          sets value of the URL column of this row of data default value for this field set by the DB is null This field has a max length of 255, 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

commnet

protected java.lang.String commnet

format

protected java.lang.String format

id

protected java.lang.Integer id

media

protected java.lang.String media

pic

protected java.lang.String pic

recorded

protected java.sql.Timestamp recorded

title

protected java.lang.String title

url

protected java.lang.String url

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

COMMNET

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

COMMNET_LEN

public static final int COMMNET_LEN
See Also:
Constant Field Values

FORMAT

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

FORMAT_LEN

public static final int FORMAT_LEN
See Also:
Constant Field Values

ID

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

ID_LEN

public static final int ID_LEN
See Also:
Constant Field Values

MEDIA

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

MEDIA_LEN

public static final int MEDIA_LEN
See Also:
Constant Field Values

PIC

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

PIC_LEN

public static final int PIC_LEN
See Also:
Constant Field Values

RECORDED

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

RECORDED_LEN

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

URL

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

URL_LEN

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

Dvds

public Dvds()
Basic constructor


Dvds

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

Method Detail

getObjCommnet

public java.lang.String getObjCommnet()
returns value of the COMMNET column of this row of data

Returns:
value of this column in this row

getCommnet

public java.lang.String getCommnet()
returns value of the COMMNET column of this row of data

Returns:
value of this column in this row

setCommnet

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


getObjFormat

public java.lang.String getObjFormat()
returns value of the FORMAT column of this row of data

Returns:
value of this column in this row

getFormat

public java.lang.String getFormat()
returns value of the FORMAT column of this row of data

Returns:
value of this column in this row

setFormat

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


getObjId

public java.lang.Integer getObjId()
returns value of the ID column of this row of data

Returns:
value of this column in this row

getId

public int getId()
returns value of the ID column of this row of data

Returns:
value of this column in this row

setId

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


setId

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


getObjMedia

public java.lang.String getObjMedia()
returns value of the MEDIA column of this row of data

Returns:
value of this column in this row

getMedia

public java.lang.String getMedia()
returns value of the MEDIA column of this row of data

Returns:
value of this column in this row

setMedia

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


getObjPic

public java.lang.String getObjPic()
returns value of the PIC column of this row of data

Returns:
value of this column in this row

getPic

public java.lang.String getPic()
returns value of the PIC column of this row of data

Returns:
value of this column in this row

setPic

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


getObjRecorded

public java.sql.Timestamp getObjRecorded()
returns value of the RECORDED column of this row of data

Returns:
value of this column in this row

getRecorded

public java.sql.Timestamp getRecorded()
returns value of the RECORDED column of this row of data

Returns:
value of this column in this row

setRecorded

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


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 255, longer strings will be truncated


getObjUrl

public java.lang.String getObjUrl()
returns value of the URL column of this row of data

Returns:
value of this column in this row

getUrl

public java.lang.String getUrl()
returns value of the URL column of this row of data

Returns:
value of this column in this row

setUrl

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


clone

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

load

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

load

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