Package psiprobe.model.sql
Class DataSourceTestInfo
- java.lang.Object
-
- psiprobe.model.sql.DataSourceTestInfo
-
- All Implemented Interfaces:
Serializable
public class DataSourceTestInfo extends Object implements Serializable
A class to store data source test tool related data in a session attribute.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
DS_TEST_SESS_ATTR
The Constant DS_TEST_SESS_ATTR.private int
historySize
The history size.private int
maxRows
The max rows.private LinkedList<String>
queryHistory
The query history.private List<Map<String,String>>
results
The results.private int
rowsPerPage
The rows per page.private static long
serialVersionUID
The Constant serialVersionUID.
-
Constructor Summary
Constructors Constructor Description DataSourceTestInfo()
DataSourceTestInfo Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addQueryToHistory(String sql)
Adds the query to history.int
getHistorySize()
Gets the history size.int
getMaxRows()
Gets the max rows.List<String>
getQueryHistory()
Gets the query history.List<Map<String,String>>
getResults()
Gets the results.int
getRowsPerPage()
Gets the rows per page.void
setHistorySize(int historySize)
Sets the history size.void
setMaxRows(int maxRows)
Sets the max rows.void
setResults(List<Map<String,String>> results)
Sets the results.void
setRowsPerPage(int rowsPerPage)
Sets the rows per page.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
The Constant serialVersionUID.- See Also:
- Constant Field Values
-
DS_TEST_SESS_ATTR
public static final String DS_TEST_SESS_ATTR
The Constant DS_TEST_SESS_ATTR.- See Also:
- Constant Field Values
-
queryHistory
private LinkedList<String> queryHistory
The query history.
-
maxRows
private int maxRows
The max rows.
-
rowsPerPage
private int rowsPerPage
The rows per page.
-
historySize
private int historySize
The history size.
-
-
Method Detail
-
addQueryToHistory
public void addQueryToHistory(String sql)
Adds the query to history.- Parameters:
sql
- the sql
-
setResults
public void setResults(List<Map<String,String>> results)
Sets the results.- Parameters:
results
- the results
-
getQueryHistory
public List<String> getQueryHistory()
Gets the query history.- Returns:
- the query history
-
getMaxRows
public int getMaxRows()
Gets the max rows.- Returns:
- the max rows
-
setMaxRows
public void setMaxRows(int maxRows)
Sets the max rows.- Parameters:
maxRows
- the new max rows
-
getRowsPerPage
public int getRowsPerPage()
Gets the rows per page.- Returns:
- the rows per page
-
setRowsPerPage
public void setRowsPerPage(int rowsPerPage)
Sets the rows per page.- Parameters:
rowsPerPage
- the new rows per page
-
getHistorySize
public int getHistorySize()
Gets the history size.- Returns:
- the history size
-
setHistorySize
public void setHistorySize(int historySize)
Sets the history size.- Parameters:
historySize
- the new history size
-
-