otie.database
Class MetricSerieBean

java.lang.Object
  extended byotie.database.TableComponent
      extended byotie.database.MetricSerieBean

public class MetricSerieBean
extends TableComponent


Field Summary
protected static java.lang.String[] columnNames
           
protected static java.lang.String[] updateNames
          The names of the columns that are used in the update operation.
 
Fields inherited from class otie.database.TableComponent
actionRef, pMan, tableName, xFile
 
Constructor Summary
MetricSerieBean()
           
 
Method Summary
private  void addParameters(java.lang.String[] addParam)
           
private  void createFooterArea()
           
 void createForm(java.lang.String[] params)
          An abstract method that is used to create the form view of the component.
private  void createMetricArea()
           
private  java.lang.String[] getParams(java.lang.String name)
           
private  void insertOp(java.lang.String[] params)
           
private  void removeParameters(java.lang.String[] removeParam)
           
protected  void updateOp(java.lang.String[] params, java.lang.String id)
           
 void validateContent()
          An abstract method that is used to validate the form parameters and to perform insert and update operations.
 
Methods inherited from class otie.database.TableComponent
createHiddenField, createTimeFields, formatDate, generatePage, getDatePattern, getLongPat, getPageManager, getShortDatePattern, getShortPat, getXMLFile, setActionRef, setPageManager, setXMLFile, validateDate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

columnNames

protected static final java.lang.String[] columnNames

updateNames

protected static final java.lang.String[] updateNames
The names of the columns that are used in the update operation. Required in each bean.

Constructor Detail

MetricSerieBean

public MetricSerieBean()
Method Detail

insertOp

private void insertOp(java.lang.String[] params)
               throws java.sql.SQLException
Throws:
java.sql.SQLException

updateOp

protected void updateOp(java.lang.String[] params,
                        java.lang.String id)

validateContent

public void validateContent()
Description copied from class: TableComponent
An abstract method that is used to validate the form parameters and to perform insert and update operations.

Specified by:
validateContent in class TableComponent

createForm

public void createForm(java.lang.String[] params)
Description copied from class: TableComponent
An abstract method that is used to create the form view of the component.

Specified by:
createForm in class TableComponent
Parameters:
params - String[] An array that contains the parameters for a given id when an update operation is applied.

getParams

private java.lang.String[] getParams(java.lang.String name)

addParameters

private void addParameters(java.lang.String[] addParam)
                    throws java.sql.SQLException
Throws:
java.sql.SQLException

removeParameters

private void removeParameters(java.lang.String[] removeParam)
                       throws java.sql.SQLException
Throws:
java.sql.SQLException

createMetricArea

private void createMetricArea()

createFooterArea

private void createFooterArea()