pt.moredata.netbeans.modules.moredatatemplates.wizard
Class Data

java.lang.Object
  extended bypt.moredata.netbeans.modules.moredatatemplates.wizard.Data

public class Data
extends java.lang.Object

Holds the information collected by the wizard during the iteration from the user and necessary initializations.

Author:
sergio

Constructor Summary
Data()
          Creates a new instance of Data
 
Method Summary
 void addSelectedColumn(int idx, java.lang.String tableName, java.lang.String columnName)
          Add a new selected Column to the array
 void addSelectedSchemas(int idx, java.lang.String schemaName)
          Add a new selected Column to the array
 void clearSelectedColumns()
          Clear the array of selected columns
 void clearSelectedSchemas()
          Clear the array of selected columns
 DataFieldInfo getColumnInfo(java.lang.String tableName, java.lang.String columnName)
          Get the reference to a column from table.
 java.lang.String[] getColumnsNames(java.lang.String tableName)
          Get the names of the columns for a table.
 DataTableInfo getCurrentTable()
          Getter for property currentTable.
 java.lang.String getDatabaseURL()
          Getter for property databaseURL.
 java.lang.String getDriverName()
          Getter for property driverName.
 DataTableInfo getInfoForTable(java.lang.String tableName)
          Get the meta information of a table.
 java.lang.String getPassword()
          Getter for property password.
 DataFieldInfo[] getSelectedColumns()
          Getter for property selectedColumns.
 DataFieldInfo getSelectedColumns(int index)
          Indexed getter for property selectedColumns.
 java.lang.String[] getSelectedSchemas()
          Getter for property selectedSchemas.
 DataTableInfo[] getTables()
          Getter for property tables.
 DataTableInfo getTables(int index)
          Indexed getter for property tables.
 java.lang.String[] getTablesNames()
          Get an array of tables name from the model loaded in DataTableInfo array.
 java.lang.String getUser()
          Getter for property user.
 void initSelectedColumns(int i)
          Initialize the selected columns array
 void initSelectedSchemas(int i)
          Initialize the selected columns array
 void setCurrentTable(DataTableInfo currentTable)
          Setter for property currentTable.
 void setDatabaseURL(java.lang.String databaseURL)
          Setter for property databaseURL.
 void setDriverName(java.lang.String driverName)
          Setter for property driverName.
 void setPassword(java.lang.String password)
          Setter for property password.
 void setSelectedColumns(DataFieldInfo[] selectedColumns)
          Setter for property selectedColumns.
 void setSelectedColumns(int index, DataFieldInfo selectedColumns)
          Indexed setter for property selectedColumns.
 void setTables(java.util.ArrayList _tables)
          Set the tables information receiving it as an ArrayList
 void setTables(DataTableInfo[] tables)
          Setter for property tables.
 void setTables(int index, DataTableInfo tables)
          Indexed setter for property tables.
 void setUser(java.lang.String user)
          Setter for property user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Data

public Data()
Creates a new instance of Data

Method Detail

getUser

public java.lang.String getUser()
Getter for property user.

Returns:
Value of property user.

setUser

public void setUser(java.lang.String user)
Setter for property user.

Parameters:
user - New value of property user.

getPassword

public java.lang.String getPassword()
Getter for property password.

Returns:
Value of property password.

setPassword

public void setPassword(java.lang.String password)
Setter for property password.

Parameters:
password - New value of property password.

getDriverName

public java.lang.String getDriverName()
Getter for property driverName.

Returns:
Value of property driverName.

setDriverName

public void setDriverName(java.lang.String driverName)
Setter for property driverName.

Parameters:
driverName - New value of property driverName.

getDatabaseURL

public java.lang.String getDatabaseURL()
Getter for property databaseURL.

Returns:
Value of property databaseURL.

setDatabaseURL

public void setDatabaseURL(java.lang.String databaseURL)
Setter for property databaseURL.

Parameters:
databaseURL - New value of property databaseURL.

getTables

public DataTableInfo getTables(int index)
Indexed getter for property tables.

Parameters:
index - Index of the property.
Returns:
Value of the property at index.

getTables

public DataTableInfo[] getTables()
Getter for property tables.

Returns:
Value of property tables.

getTablesNames

public java.lang.String[] getTablesNames()
Get an array of tables name from the model loaded in DataTableInfo array.

Returns:
A string array containing the list of the tables.

setTables

public void setTables(int index,
                      DataTableInfo tables)
Indexed setter for property tables.

Parameters:
index - Index of the property.
tables - New value of the property at index.

setTables

public void setTables(DataTableInfo[] tables)
Setter for property tables.

Parameters:
tables - New value of property tables.

setTables

public void setTables(java.util.ArrayList _tables)
Set the tables information receiving it as an ArrayList

Parameters:
_tables - An array list containing the tables information

getCurrentTable

public DataTableInfo getCurrentTable()
Getter for property currentTable.

Returns:
Value of property currentTable.

setCurrentTable

public void setCurrentTable(DataTableInfo currentTable)
Setter for property currentTable.

Parameters:
currentTable - New value of property currentTable.

getInfoForTable

public DataTableInfo getInfoForTable(java.lang.String tableName)
Get the meta information of a table.

Parameters:
tableName - The name of the table for wich we want to get information about.
Returns:
The table information object.

getColumnsNames

public java.lang.String[] getColumnsNames(java.lang.String tableName)
Get the names of the columns for a table. The table information should be allready loaded.

Parameters:
tableName - The name of the table to be loaded.
Returns:
An array containing all the columns from the table.

getSelectedColumns

public DataFieldInfo getSelectedColumns(int index)
Indexed getter for property selectedColumns.

Parameters:
index - Index of the property.
Returns:
Value of the property at index.

getSelectedColumns

public DataFieldInfo[] getSelectedColumns()
Getter for property selectedColumns.

Returns:
Value of property selectedColumns.

clearSelectedColumns

public void clearSelectedColumns()
Clear the array of selected columns


initSelectedColumns

public void initSelectedColumns(int i)
Initialize the selected columns array


addSelectedColumn

public void addSelectedColumn(int idx,
                              java.lang.String tableName,
                              java.lang.String columnName)
Add a new selected Column to the array


clearSelectedSchemas

public void clearSelectedSchemas()
Clear the array of selected columns


initSelectedSchemas

public void initSelectedSchemas(int i)
Initialize the selected columns array


addSelectedSchemas

public void addSelectedSchemas(int idx,
                               java.lang.String schemaName)
Add a new selected Column to the array


getColumnInfo

public DataFieldInfo getColumnInfo(java.lang.String tableName,
                                   java.lang.String columnName)
Get the reference to a column from table.

Parameters:
tableName - The name of the table.
columnName - The name of the column.
Returns:
A reference to the field information.

setSelectedColumns

public void setSelectedColumns(int index,
                               DataFieldInfo selectedColumns)
Indexed setter for property selectedColumns.

Parameters:
index - Index of the property.
selectedColumns - New value of the property at index.

setSelectedColumns

public void setSelectedColumns(DataFieldInfo[] selectedColumns)
Setter for property selectedColumns.

Parameters:
selectedColumns - New value of property selectedColumns.

getSelectedSchemas

public java.lang.String[] getSelectedSchemas()
Getter for property selectedSchemas.

Returns:
Value of property selectedSchemas.