com.zphinx.spine.data
Class DataPack

java.lang.Object
  extended by com.zphinx.spine.data.DataPack

public class DataPack
extends Object

DataPack contains the properties needed to create an sql prepared statement

Version:
$1.0

Copyright ©Zphinx Software Solutions

Author:
David Ladapo

Constructor Summary
DataPack(int i)
          Public Constructor
 
Method Summary
 Object[] getColumnData()
          Gets the data for the column in a DataBase
 String[] getColumnNames()
          Gets the names of the columns in the database
 int getDataCount()
          Gets the DataCount
 String getSetClause()
          Gets the Set clause of the prepared statement
 int getSqlType()
          Gets the sql type
 String getTableName()
          Gets the table name
 String getWhereClause()
          Gets the where clause
 void setColumnData(Object[] columnData)
          Sets the data for the column in a DataBase
 void setColumnNames(String[] columnNames)
          Sets the names of the columns in the database
 void setDataCount(int dataCount)
          Sets the DataCount
 void setSetClause(String setClause)
          Sets the Set clause of the prepared statement
 void setTableName(String tableName)
          Sets the table name
 void setWhereClause(String whereClause)
          Sets the where clause
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataPack

public DataPack(int i)
Public Constructor

Method Detail

getColumnData

public Object[] getColumnData()
Gets the data for the column in a DataBase

Returns:
Returns the columnData.

setColumnData

public void setColumnData(Object[] columnData)
Sets the data for the column in a DataBase

Parameters:
columnData - The columnData to set.

getColumnNames

public String[] getColumnNames()
Gets the names of the columns in the database

Returns:
Returns the columnNames.

setColumnNames

public void setColumnNames(String[] columnNames)
Sets the names of the columns in the database

Parameters:
columnNames - The columnNames to set.

getDataCount

public int getDataCount()
Gets the DataCount

Returns:
Returns the dataCount.

setDataCount

public void setDataCount(int dataCount)
Sets the DataCount

Parameters:
dataCount - The dataCount to set.

getTableName

public String getTableName()
Gets the table name

Returns:
Returns the tableName.

setTableName

public void setTableName(String tableName)
Sets the table name

Parameters:
tableName - The tableName to set.

getWhereClause

public String getWhereClause()
Gets the where clause

Returns:
Returns the whereClause.

setWhereClause

public void setWhereClause(String whereClause)
Sets the where clause

Parameters:
whereClause - The whereClause to set.

getSqlType

public int getSqlType()
Gets the sql type

Returns:
Returns the sqlType.

getSetClause

public String getSetClause()
Gets the Set clause of the prepared statement

Returns:
Returns the setClause.

setSetClause

public void setSetClause(String setClause)
Sets the Set clause of the prepared statement

Parameters:
setClause - The setClause to set.