|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hp.hpl.jena.sdb.sql.SDBConnection
public class SDBConnection
| Field Summary | |
|---|---|
static boolean |
logSQLExceptions
|
static boolean |
logSQLQueries
|
static boolean |
logSQLStatements
|
| Constructor Summary | |
|---|---|
SDBConnection(Connection jdbcConnection)
|
|
SDBConnection(Connection jdbcConnection,
String url)
|
|
SDBConnection(DataSource ds)
|
|
SDBConnection(String url,
String user,
String password)
|
|
| Method Summary | |
|---|---|
void |
close()
|
void |
closePreparedStatement(PreparedStatement ps)
Close a prepared statement |
ResultSetJDBC |
exec(String sqlString)
Execute a statement, return the result set if there was one, else null |
ResultSetJDBC |
execQuery(String sqlString)
|
ResultSetJDBC |
execQuery(String sqlString,
int fetchSize)
|
ResultSetJDBC |
execSilent(String sqlString)
Execute a statement, return the result set if there was one, else null. |
int |
execUpdate(String sqlString)
|
Object |
executeInTransaction(com.hp.hpl.jena.shared.Command c)
|
Object |
executeSQL(SQLCommand c)
|
String |
getJdbcURL()
|
String |
getLabel()
|
Connection |
getSqlConnection()
|
List<String> |
getTableNames()
Get the names of the application tables |
com.hp.hpl.jena.graph.TransactionHandler |
getTransactionHandler()
|
boolean |
hasSQLConnection()
|
boolean |
loggingSQLExceptions()
|
boolean |
loggingSQLQueries()
|
boolean |
loggingSQLStatements()
|
static SDBConnection |
none()
|
PreparedStatement |
prepareStatement(String sqlString)
Prepare a statement |
void |
setJdbcURL(String jdbcURL)
|
void |
setLabel(String label)
|
void |
setLogSQLExceptions(boolean thisLogSQLExceptions)
|
void |
setLogSQLQueries(boolean thisLogSQLQueries)
|
void |
setLogSQLStatements(boolean thisLogSQLStatements)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static boolean logSQLExceptions
public static boolean logSQLStatements
public static boolean logSQLQueries
| Constructor Detail |
|---|
public SDBConnection(DataSource ds)
throws SQLException
SQLException
public SDBConnection(String url,
String user,
String password)
public SDBConnection(Connection jdbcConnection)
public SDBConnection(Connection jdbcConnection,
String url)
| Method Detail |
|---|
public static SDBConnection none()
public boolean hasSQLConnection()
public com.hp.hpl.jena.graph.TransactionHandler getTransactionHandler()
public ResultSetJDBC execQuery(String sqlString)
throws SQLException
SQLException
public ResultSetJDBC execQuery(String sqlString,
int fetchSize)
throws SQLException
SQLExceptionpublic Object executeInTransaction(com.hp.hpl.jena.shared.Command c)
public Object executeSQL(SQLCommand c)
public int execUpdate(String sqlString)
throws SQLException
SQLException
public ResultSetJDBC exec(String sqlString)
throws SQLException
SQLExceptionpublic ResultSetJDBC execSilent(String sqlString)
public PreparedStatement prepareStatement(String sqlString)
throws SQLException
SQLException
public void closePreparedStatement(PreparedStatement ps)
throws SQLException
SQLExceptionpublic List<String> getTableNames()
public Connection getSqlConnection()
public void close()
public String toString()
toString in class Objectpublic boolean loggingSQLExceptions()
public void setLogSQLExceptions(boolean thisLogSQLExceptions)
public boolean loggingSQLQueries()
public void setLogSQLQueries(boolean thisLogSQLQueries)
public boolean loggingSQLStatements()
public void setLogSQLStatements(boolean thisLogSQLStatements)
public String getLabel()
public void setLabel(String label)
public String getJdbcURL()
public void setJdbcURL(String jdbcURL)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||