public class JDBCConnectionJNDI extends Object
| Constructor and Description |
|---|
JDBCConnectionJNDI(String JNDIResource)
JNDI Resource name as defined in
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
|
void |
closeAll() |
void |
commit() |
boolean |
execute(String sql) |
ResultSet |
executePreparedQuery(PreparedStatement ps)
Returns a ResultSet.
|
int |
executePreparedUpdate(PreparedStatement ps) |
ResultSet |
executeQuery(String sql) |
boolean |
getAutoCommit() |
int |
getConnectionId() |
boolean |
isClosed() |
static void |
main(String[] args) |
PreparedStatement |
prepareStatement(String sql)
Returns a PreparedStatement.
|
void |
rollback() |
void |
setAutoCommit(boolean autoCommit) |
public PreparedStatement prepareStatement(String sql) throws Exception
sql - Exceptionpublic ResultSet executePreparedQuery(PreparedStatement ps) throws Exception
ps - Exceptionpublic int executePreparedUpdate(PreparedStatement ps) throws Exception
Exception@Deprecated public void close() throws SQLException
SQLExceptionpublic void closeAll()
public void commit()
throws SQLException
SQLExceptionpublic void rollback()
throws SQLException
SQLExceptionpublic void setAutoCommit(boolean autoCommit)
throws SQLException
SQLExceptionpublic int getConnectionId()
public boolean isClosed()
throws SQLException
SQLExceptionpublic boolean getAutoCommit()
throws SQLException
SQLExceptionpublic static void main(String[] args) throws SQLException
SQLExceptionCopyright © 2020. All rights reserved.