public class SqlHistory
extends Object
implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
SqlHistory.SqlHistoryKey
The Class SqlHistoryKey.
|
static class |
SqlHistory.SqlHistoryValue
The SqlHistoryEntry.
|
Constructor and Description |
---|
SqlHistory(int size)
Instantiates SqlHistory.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getParams(String sql,
String type,
String nodeName)
Gets the map of bind variables (name\value) for the given sql, type and
node name,.
|
IndexList<TypedKeyValue<SqlHistory.SqlHistoryKey,SqlHistory.SqlHistoryValue>> |
getSqlHistory()
Gets the sql history.
|
void |
record(String sql,
String type,
Map<String,Object> properties,
String nodeName)
Add element to the SQL history.
|
public SqlHistory(int size)
size
- the size of the historypublic Map<String,Object> getParams(String sql, String type, String nodeName)
sql
- the sqltype
- the driver class name usually used as a typenodeName
- the node namepublic IndexList<TypedKeyValue<SqlHistory.SqlHistoryKey,SqlHistory.SqlHistoryValue>> getSqlHistory()
IndexList
public void record(String sql, String type, Map<String,Object> properties, String nodeName)
sql
- the sqltype
- the SQL type (query, script, external tool, etc)properties
- the bind variablesnodeName
- the node nameCopyright © 2010-2020 Toolsverse. All Rights Reserved.