example.filestorage
Class DBUtil
java.lang.Object
example.filestorage.DBUtil
class DBUtil
- extends java.lang.Object
Method Summary |
static void |
close(java.sql.Connection conn,
java.sql.Statement s,
java.sql.ResultSet rs)
|
private static void |
closeQuietly(java.io.InputStream in)
|
static java.sql.Connection |
getConnection()
|
private static javax.naming.Context |
getInitialContext()
|
private static java.lang.Object |
lookup(java.lang.String name)
|
private static javax.sql.DataSource |
lookupDataSource()
|
private static java.lang.Object |
narrow(java.lang.Object obj,
java.lang.Class clazz)
|
static void |
setCloseQuietly(boolean value)
|
static void |
setDataSource(javax.sql.DataSource ds)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fileStorageDataSource
private static javax.sql.DataSource fileStorageDataSource
useDataSource
private static boolean useDataSource
jdbcURL
private static java.lang.String jdbcURL
jdbcDriver
private static java.lang.String jdbcDriver
closeQuietly
private static boolean closeQuietly
DBUtil
DBUtil()
closeQuietly
private static void closeQuietly(java.io.InputStream in)
setDataSource
public static void setDataSource(javax.sql.DataSource ds)
lookupDataSource
private static javax.sql.DataSource lookupDataSource()
getConnection
public static java.sql.Connection getConnection()
setCloseQuietly
public static void setCloseQuietly(boolean value)
close
public static void close(java.sql.Connection conn,
java.sql.Statement s,
java.sql.ResultSet rs)
lookup
private static java.lang.Object lookup(java.lang.String name)
getInitialContext
private static javax.naming.Context getInitialContext()
narrow
private static java.lang.Object narrow(java.lang.Object obj,
java.lang.Class clazz)
Copyright © 2005 strutsblobapp.sourceforge.net. All Rights Reserved.