otie.component
Class CommitTable

java.lang.Object
  extended byotie.component.PageComponent
      extended byotie.component.CommitTable

public class CommitTable
extends PageComponent


Field Summary
private  java.lang.String commonString
          The common columns for all tables.
private  java.lang.String dynamicString
          A string that contains the "dynamic" columns, that is, the columns that are related to this metricserieinformation table.
private  java.lang.String endString
          A string that contains the foreign key identifier that is attached to all tables
private  java.lang.String id
          Contains the identifier of the metricserie.
private  java.util.TreeMap names
          Contains the names of the table columns
private  java.lang.String tablename
          The name of the table
private  java.util.ArrayList tablenames
          Contains names of the tables in the database.
private  java.lang.String tableString
          The beginning part of the create table query.
private  java.util.TreeMap types
          Contains types of attributes.
 
Fields inherited from class otie.component.PageComponent
pMan, xFile
 
Constructor Summary
CommitTable()
          A dummy constructor for supporting the Java reflect api.
 
Method Summary
private  void buildDynamicAttributes()
          Adds the metric speficif attributes to the query.
private  void buildQuery()
          Builds and executes the query.
protected  void generateContent()
          Overrides PageComponent.generateContent().
 
Methods inherited from class otie.component.PageComponent
getContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commonString

private java.lang.String commonString
The common columns for all tables.


tablename

private java.lang.String tablename
The name of the table


tableString

private java.lang.String tableString
The beginning part of the create table query.


dynamicString

private java.lang.String dynamicString
A string that contains the "dynamic" columns, that is, the columns that are related to this metricserieinformation table.


endString

private java.lang.String endString
A string that contains the foreign key identifier that is attached to all tables


types

private java.util.TreeMap types
Contains types of attributes. These are fetched from the MetricModel table.


names

private java.util.TreeMap names
Contains the names of the table columns


tablenames

private java.util.ArrayList tablenames
Contains names of the tables in the database.


id

private java.lang.String id
Contains the identifier of the metricserie.

Constructor Detail

CommitTable

public CommitTable()
A dummy constructor for supporting the Java reflect api.

Method Detail

generateContent

protected void generateContent()
Overrides PageComponent.generateContent(). Creates the CREATE TABLE query and attempts to perform the query.

Specified by:
generateContent in class PageComponent

buildQuery

private void buildQuery()
Builds and executes the query.


buildDynamicAttributes

private void buildDynamicAttributes()
Adds the metric speficif attributes to the query.