Class Query
- java.lang.Object
-
- net.didion.jwnl.dictionary.database.Query
-
public class Query extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.sql.Connection
_connection
private java.sql.ResultSet
_results
private java.lang.String
_sql
private java.sql.PreparedStatement
_statement
-
Constructor Summary
Constructors Constructor Description Query(java.lang.String sql, java.sql.Connection conn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.sql.ResultSet
execute()
java.sql.Connection
getConnection()
java.sql.ResultSet
getResults()
java.sql.PreparedStatement
getStatement()
boolean
isExecuted()
-
-
-
Method Detail
-
execute
public java.sql.ResultSet execute() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
isExecuted
public boolean isExecuted()
-
getConnection
public java.sql.Connection getConnection()
-
getStatement
public java.sql.PreparedStatement getStatement() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
getResults
public java.sql.ResultSet getResults()
-
close
public void close()
-
-