public final class JDOUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
closeConnection(java.sql.Connection conn)
Closes the Connection without throwing SQLException.
|
static void |
closeDatabase(Database db)
Closes the Database without throwing exceptions.
|
static void |
closeResultSet(java.sql.ResultSet rs)
Closes the ResultSet without throwing SQLException.
|
static void |
closeStatement(java.sql.Statement stmt)
Closes the Statement without throwing SQLException.
|
static ClassDescriptor |
getClassDescriptor(java.lang.String db,
java.lang.Class<?> type)
Return ClassDescriptor for given type in named database .
|
public static void closeConnection(java.sql.Connection conn)
conn
- The Connection to closepublic static void closeResultSet(java.sql.ResultSet rs)
rs
- The ResultSet to closepublic static void closeStatement(java.sql.Statement stmt)
stmt
- The Statement to closepublic static void closeDatabase(Database db)
db
- The database to close.public static ClassDescriptor getClassDescriptor(java.lang.String db, java.lang.Class<?> type) throws MappingException
db
- The database's name.type
- The class.MappingException
- If database can not be instantiated.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com