|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbiz.wedoit4u.databeans.StyleClassHelper
final class StyleClassHelper
A helper class that provides convenient methods to interact with
the style_classes table. This class is meant to
be used from the DatabaseHelper class, or other classes
in this package only.
Copyright 2003, Rakesh Vidyadharan and wedoit4u.biz
| Field Summary | |
|---|---|
(package private) static java.lang.String |
ALL_STYLE_CLASSES
The statement that is executed to fetch all the records from the style_classes table. |
(package private) static java.lang.String |
DELETE_STYLE_CLASSES
The delete statement to be executed to delete a record in the style_classes table. |
(package private) static java.lang.String |
INSERT_STYLE_CLASSES
The statement that is executed to insert a new record into the style_classes table. |
(package private) static java.lang.String |
SELECT_STYLE_CLASSES
The statement that is executed to fetch a specific record from the style_classes table. |
(package private) static java.lang.String |
STYLE_CLASS_ID_SEQUENCE
The sequence set in the database for the
style_class_id primary key column. |
(package private) static java.lang.String |
UPDATE_STYLE_CLASSES
The update statement to be executed to update a record in the style_classes table. |
| Constructor Summary | |
|---|---|
private |
StyleClassHelper()
Default constructor. |
| Method Summary | |
|---|---|
(package private) static void |
delete(int styleClassId)
Delete the record from the database identified by the primary key value specified. |
(package private) static java.util.Collection |
findAll()
Return a Collection of Integer values
that represent all the primary key values in the
style_classes table. |
(package private) static int |
insert(int styleClassId,
java.lang.String className,
java.lang.String description)
Insert a new record into the style_classes table
with the values specified. |
(package private) static void |
select(StyleClassBean scb)
Select the specified record from the style_classes
table. |
(package private) static void |
update(StyleClassBean scb)
Update the values in the style_classes table with
the specified values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final java.lang.String STYLE_CLASS_ID_SEQUENCE
sequence set in the database for the
style_class_id primary key column.
static final java.lang.String ALL_STYLE_CLASSES
style_classes table.
static final java.lang.String INSERT_STYLE_CLASSES
style_classes table.
static final java.lang.String SELECT_STYLE_CLASSES
style_classes table.
static final java.lang.String UPDATE_STYLE_CLASSES
style_classes table.
static final java.lang.String DELETE_STYLE_CLASSES
style_classes table.
| Constructor Detail |
|---|
private StyleClassHelper()
| Method Detail |
|---|
static final java.util.Collection findAll()
throws java.sql.SQLException,
javax.naming.NamingException
Collection of Integer values
that represent all the primary key values in the
style_classes table.
java.sql.SQLException - - If errors are encountered while fetching
the records from the database.
javax.naming.NamingException - - If errors are encountered while getting
a connection from the connection pool.
static final void select(StyleClassBean scb)
throws java.sql.SQLException,
javax.naming.NamingException
style_classes
table. The values selected from the database are used to set the
values of the bean fields.
scb - - The java bean instance that
represents the record. The primary key value to use to look
up the record is obtained from this bean.
java.sql.SQLException - - If errors are encountered while fetching
the record from the database.
javax.naming.NamingException - - If errors are encountered while getting
a connection from the connection pool.
static final int insert(int styleClassId,
java.lang.String className,
java.lang.String description)
throws java.sql.SQLException,
javax.naming.NamingException
style_classes table
with the values specified.
styleClassId - - The primary key values to use. If this
is 0, then the next value from the STYLE_CLASS_ID_SEQUENCE is used.className - - The class_name value.description - - The description value.
java.sql.SQLException - - If database errors are encountered while
writing to the database.
javax.naming.NamingException - - If errors are encountered while getting
a connection from the connection pool.
static final void update(StyleClassBean scb)
throws java.sql.SQLException,
javax.naming.NamingException
style_classes table with
the specified values.
scb - - The java bean that represents a
record in the database.
java.sql.SQLException - - If database errors are encountered while
writing to the database.
javax.naming.NamingException - - If errors are encountered while getting
a connection from the connection pool.
static final void delete(int styleClassId)
throws java.sql.SQLException,
javax.naming.NamingException
styleClassId - - The style_class_id
primary key value.
java.sql.SQLException - - If database errors are encountered while
writing to the database.
javax.naming.NamingException - - If errors are encountered while getting
a connection from the connection pool.
|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||