com.stratelia.silverpeas.selectionPeas.jdbc
Class JdbcConnectorDAO

java.lang.Object
  extended by com.stratelia.silverpeas.selectionPeas.jdbc.JdbcConnectorDAO

public class JdbcConnectorDAO
extends Object

JDBC database access.

Author:
Antoine HEDIN

Constructor Summary
JdbcConnectorDAO(SelectionJdbcParams jdbcParams)
           
 
Method Summary
 String[] getColumnsNames()
           
 ArrayList<String[]> getData()
           
 String[] getLine(String index)
           
 int getLineCount()
           
 void loadData()
          Loads the table's data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcConnectorDAO

public JdbcConnectorDAO(SelectionJdbcParams jdbcParams)
Method Detail

getColumnsNames

public String[] getColumnsNames()
Returns:
The list of columns which compose the table.

getData

public ArrayList<String[]> getData()
Returns:
the table's data, after having loading them if needed.

loadData

public void loadData()
Loads the table's data.


getLine

public String[] getLine(String index)
Parameters:
index - The index of the searched line.
Returns:
The data of the table's line corresponding to the index.

getLineCount

public int getLineCount()
Returns:
The number of lines in the table.


Copyright © 2016 Silverpeas. All Rights Reserved.