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