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_connectionprivate java.sql.ResultSet_resultsprivate java.lang.String_sqlprivate 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 voidclose()java.sql.ResultSetexecute()java.sql.ConnectiongetConnection()java.sql.ResultSetgetResults()java.sql.PreparedStatementgetStatement()booleanisExecuted()
-
-
-
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()
-
-