dea.beans
Class Dvdcompat

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

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

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

Version:
1.0
Primary key is on column:DVDCOMPAT_ID
Create statment: CREATE TABLE `dvdcompat` ( `dvdcompat_id` int(11) NOT NULL auto_increment, `brand` varchar(20) default '', `product` varchar(12) default '', `format` varchar(6) default '', `marked` varchar(10) default '', `actual` varchar(10) default '', `comment` varchar(255) default '', `burned` int(11) default '0', `bad` int(11) default '0', `purchased` int(11) default '0', PRIMARY KEY (`dvdcompat_id`) ) TYPE=MyISAM
Author:
David Abigt via GenBean
See Also:
Serialized Form

Field Summary
protected  java.lang.String actual
           
static java.lang.String ACTUAL
           
static int ACTUAL_LEN
           
protected  java.lang.Integer bad
           
static java.lang.String BAD
           
static int BAD_LEN
           
protected  java.lang.String brand
           
static java.lang.String BRAND
           
static int BRAND_LEN
           
protected  java.lang.Integer burned
           
static java.lang.String BURNED
           
static int BURNED_LEN
           
protected  java.lang.String comment
           
static java.lang.String COMMENT
           
static int COMMENT_LEN
           
protected static Display display
           
protected  java.lang.Integer dvdcompat_id
           
static java.lang.String DVDCOMPAT_ID
           
static int DVDCOMPAT_ID_LEN
           
protected  java.lang.String format
           
static java.lang.String FORMAT
           
static int FORMAT_LEN
           
static java.lang.String GETALL
           
protected  java.lang.String marked
           
static java.lang.String MARKED
           
static int MARKED_LEN
           
protected  java.lang.String product
           
static java.lang.String PRODUCT
           
static int PRODUCT_LEN
           
protected  java.lang.Integer purchased
           
static java.lang.String PURCHASED
           
static int PURCHASED_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
Dvdcompat()
          Basic constructor
Dvdcompat(int pk)
          load record from the DB by primary key.
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String getActual()
          returns value of the ACTUAL column of this row of data
 int getBad()
          returns value of the BAD column of this row of data
 java.lang.String getBrand()
          returns value of the BRAND column of this row of data
 int getBurned()
          returns value of the BURNED column of this row of data
 java.lang.String getComment()
          returns value of the COMMENT column of this row of data
 int getDvdcompat_id()
          returns value of the DVDCOMPAT_ID column of this row of data
 java.lang.String getFormat()
          returns value of the FORMAT column of this row of data
 java.lang.String getMarked()
          returns value of the MARKED column of this row of data
 java.lang.String getObjActual()
          returns value of the ACTUAL column of this row of data
 java.lang.Integer getObjBad()
          returns value of the BAD column of this row of data
 java.lang.String getObjBrand()
          returns value of the BRAND column of this row of data
 java.lang.Integer getObjBurned()
          returns value of the BURNED column of this row of data
 java.lang.String getObjComment()
          returns value of the COMMENT column of this row of data
 java.lang.Integer getObjDvdcompat_id()
          returns value of the DVDCOMPAT_ID column of this row of data
 java.lang.String getObjFormat()
          returns value of the FORMAT column of this row of data
 java.lang.String getObjMarked()
          returns value of the MARKED column of this row of data
 java.lang.String getObjProduct()
          returns value of the PRODUCT column of this row of data
 java.lang.Integer getObjPurchased()
          returns value of the PURCHASED column of this row of data
 java.lang.String getProduct()
          returns value of the PRODUCT column of this row of data
 int getPurchased()
          returns value of the PURCHASED column of this row of data
 void load(Db db)
          load record from the DB by primary key
static Dvdcompat load(java.sql.ResultSet results)
           
static Dvdcompat load(java.sql.ResultSet results, Dvdcompat newObj)
           
 void setActual(java.lang.String newVal)
          sets value of the ACTUAL 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 setBad(int newVal)
          sets value of the BAD column of this row of data default value for this field set by the DB is null
 void setBad(java.lang.Integer newVal)
          sets value of the BAD column of this row of data default value for this field set by the DB is null
 void setBrand(java.lang.String newVal)
          sets value of the BRAND column of this row of data default value for this field set by the DB is null This field has a max length of 20, longer strings will be truncated
 void setBurned(int newVal)
          sets value of the BURNED column of this row of data default value for this field set by the DB is null
 void setBurned(java.lang.Integer newVal)
          sets value of the BURNED column of this row of data default value for this field set by the DB is null
 void setComment(java.lang.String newVal)
          sets value of the COMMENT 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 setDvdcompat_id(int newVal)
          sets value of the DVDCOMPAT_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 setDvdcompat_id(java.lang.Integer newVal)
          sets value of the DVDCOMPAT_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 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 6, longer strings will be truncated
 void setMarked(java.lang.String newVal)
          sets value of the MARKED 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 setProduct(java.lang.String newVal)
          sets value of the PRODUCT column of this row of data default value for this field set by the DB is null This field has a max length of 12, longer strings will be truncated
 void setPurchased(int newVal)
          sets value of the PURCHASED column of this row of data default value for this field set by the DB is null
 void setPurchased(java.lang.Integer newVal)
          sets value of the PURCHASED 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

actual

protected java.lang.String actual

bad

protected java.lang.Integer bad

brand

protected java.lang.String brand

burned

protected java.lang.Integer burned

comment

protected java.lang.String comment

dvdcompat_id

protected java.lang.Integer dvdcompat_id

format

protected java.lang.String format

marked

protected java.lang.String marked

product

protected java.lang.String product

purchased

protected java.lang.Integer purchased

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

ACTUAL

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

ACTUAL_LEN

public static final int ACTUAL_LEN
See Also:
Constant Field Values

BAD

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

BAD_LEN

public static final int BAD_LEN
See Also:
Constant Field Values

BRAND

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

BRAND_LEN

public static final int BRAND_LEN
See Also:
Constant Field Values

BURNED

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

BURNED_LEN

public static final int BURNED_LEN
See Also:
Constant Field Values

COMMENT

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

COMMENT_LEN

public static final int COMMENT_LEN
See Also:
Constant Field Values

DVDCOMPAT_ID

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

DVDCOMPAT_ID_LEN

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

MARKED

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

MARKED_LEN

public static final int MARKED_LEN
See Also:
Constant Field Values

PRODUCT

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

PRODUCT_LEN

public static final int PRODUCT_LEN
See Also:
Constant Field Values

PURCHASED

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

PURCHASED_LEN

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

Dvdcompat

public Dvdcompat()
Basic constructor


Dvdcompat

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

Method Detail

getObjActual

public java.lang.String getObjActual()
returns value of the ACTUAL column of this row of data

Returns:
value of this column in this row

getActual

public java.lang.String getActual()
returns value of the ACTUAL column of this row of data

Returns:
value of this column in this row

setActual

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


getObjBad

public java.lang.Integer getObjBad()
returns value of the BAD column of this row of data

Returns:
value of this column in this row

getBad

public int getBad()
returns value of the BAD column of this row of data

Returns:
value of this column in this row

setBad

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


setBad

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


getObjBrand

public java.lang.String getObjBrand()
returns value of the BRAND column of this row of data

Returns:
value of this column in this row

getBrand

public java.lang.String getBrand()
returns value of the BRAND column of this row of data

Returns:
value of this column in this row

setBrand

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


getObjBurned

public java.lang.Integer getObjBurned()
returns value of the BURNED column of this row of data

Returns:
value of this column in this row

getBurned

public int getBurned()
returns value of the BURNED column of this row of data

Returns:
value of this column in this row

setBurned

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


setBurned

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


getObjComment

public java.lang.String getObjComment()
returns value of the COMMENT column of this row of data

Returns:
value of this column in this row

getComment

public java.lang.String getComment()
returns value of the COMMENT column of this row of data

Returns:
value of this column in this row

setComment

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


getObjDvdcompat_id

public java.lang.Integer getObjDvdcompat_id()
returns value of the DVDCOMPAT_ID column of this row of data

Returns:
value of this column in this row

getDvdcompat_id

public int getDvdcompat_id()
returns value of the DVDCOMPAT_ID column of this row of data

Returns:
value of this column in this row

setDvdcompat_id

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


setDvdcompat_id

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


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


getObjMarked

public java.lang.String getObjMarked()
returns value of the MARKED column of this row of data

Returns:
value of this column in this row

getMarked

public java.lang.String getMarked()
returns value of the MARKED column of this row of data

Returns:
value of this column in this row

setMarked

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


getObjProduct

public java.lang.String getObjProduct()
returns value of the PRODUCT column of this row of data

Returns:
value of this column in this row

getProduct

public java.lang.String getProduct()
returns value of the PRODUCT column of this row of data

Returns:
value of this column in this row

setProduct

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


getObjPurchased

public java.lang.Integer getObjPurchased()
returns value of the PURCHASED column of this row of data

Returns:
value of this column in this row

getPurchased

public int getPurchased()
returns value of the PURCHASED column of this row of data

Returns:
value of this column in this row

setPurchased

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


setPurchased

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

load

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