Dashboard Builder JDBC/SQL Provider 6.2.0.CR1

org.jboss.dashboard.dataset.sql
Class SQLStatement

java.lang.Object
  extended by org.jboss.dashboard.dataset.sql.SQLStatement

public class SQLStatement
extends Object

An SQL statement template.


Field Summary
protected  List<Command> SQLCommands
          The SQL commands.
protected  List SQLParameters
          The SQL parameters.
protected  String SQLSentence
          The SQL sentence obtained from the SQL template.
protected  String SQLTemplate
          The SQL template sentence.
 
Constructor Summary
SQLStatement(String sqlTemplate)
          Initialize an SQL statement.
 
Method Summary
 boolean equals(Object obj)
           
 List<String> getFilterPropertyIds()
           
 PreparedStatement getPreparedStatement(Connection connection)
          Get a JDBC prepared statement representing the SQL sentence.
 List getSQLParameters()
           
 String getSQLSentence()
           
 String getSQLTemplate()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SQLTemplate

protected String SQLTemplate
The SQL template sentence. May contain SQL commands like {sql_condition, amount, AMOUNT}.


SQLSentence

protected transient String SQLSentence
The SQL sentence obtained from the SQL template.


SQLCommands

protected transient List<Command> SQLCommands
The SQL commands.


SQLParameters

protected transient List SQLParameters
The SQL parameters.

Constructor Detail

SQLStatement

public SQLStatement(String sqlTemplate)
             throws Exception
Initialize an SQL statement.

Throws:
Exception
Method Detail

getSQLTemplate

public String getSQLTemplate()

getSQLSentence

public String getSQLSentence()

getSQLParameters

public List getSQLParameters()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getFilterPropertyIds

public List<String> getFilterPropertyIds()

getPreparedStatement

public PreparedStatement getPreparedStatement(Connection connection)
                                       throws SQLException
Get a JDBC prepared statement representing the SQL sentence.

Throws:
SQLException

Dashboard Builder JDBC/SQL Provider 6.2.0.CR1

Copyright © 2012-2014 JBoss by Red Hat. All Rights Reserved.