oracle.forms.demos.bigraph
Class localRelationalData

java.lang.Object
  |
  +--oracle.forms.demos.bigraph.localRelationalData

public class localRelationalData
extends java.lang.Object

This class handles data operations for the Graph Bean. To retrieve the ArrayList containing the graph data use the getRelationalData() method. Data is passed as a String delimited string, containing two lables and one label value


Constructor Summary
localRelationalData(FormsGraph fg)
           
 
Method Summary
 boolean addRelationalDataRow(java.lang.String inData, java.lang.String sDelimiter)
          boolean addRelationalDataRow(String inData, String sDelimiter) takes a delimited string with three tokens as a first argument.
 void clearGraphData()
           
protected  void DebugMessage(java.lang.String dm)
           
 java.lang.String getPrimaryKey(java.lang.String dataRow, java.lang.String sDelimiter)
          String getPrimaryKey searches and retrieves the primary key of a row based on its object signature
 java.util.ArrayList getRelationalData()
          ArrayList getRelationalData() returns a List object of the current data saved for this Graph
 boolean ModifyData(java.lang.String inData, java.lang.String sDelimiter)
          ModifyData updates a columns or pie slice in a graph
protected  java.lang.Object[] parseStringData(java.lang.String psd, java.lang.String sDelimiter)
          Object[] parseStringData (String psd, String SDelimiter) creates an array of objects from a string.
 boolean RemoveData(java.lang.String remData, java.lang.String sDelimiter)
          Remove Data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

localRelationalData

public localRelationalData(FormsGraph fg)
Method Detail

addRelationalDataRow

public boolean addRelationalDataRow(java.lang.String inData,
                                    java.lang.String sDelimiter)
boolean addRelationalDataRow(String inData, String sDelimiter) takes a delimited string with three tokens as a first argument. The string must contain two labels and one data value and one String value representing the primary key

DebugMessage

protected void DebugMessage(java.lang.String dm)

getPrimaryKey

public java.lang.String getPrimaryKey(java.lang.String dataRow,
                                      java.lang.String sDelimiter)
String getPrimaryKey searches and retrieves the primary key of a row based on its object signature

getRelationalData

public java.util.ArrayList getRelationalData()
ArrayList getRelationalData() returns a List object of the current data saved for this Graph

ModifyData

public boolean ModifyData(java.lang.String inData,
                          java.lang.String sDelimiter)
ModifyData updates a columns or pie slice in a graph
Parameters:
inData - a delimited string containing the column name , the row name and the new value
Returns:
true of false

parseStringData

protected java.lang.Object[] parseStringData(java.lang.String psd,
                                             java.lang.String sDelimiter)
Object[] parseStringData (String psd, String SDelimiter) creates an array of objects from a string. For the Forms Graph this string has three tokens delimited by teh string passed as second argument. The string format is . For example: "USA,AVGSAL,1345"

RemoveData

public boolean RemoveData(java.lang.String remData,
                          java.lang.String sDelimiter)
Remove Data

clearGraphData

public void clearGraphData()