org.castor.jdo.util
public final class JDOUtils extends Object
Since: 0.9.9.1
Version: $Revision: 6041 $ $Date: 2006-05-24 08:49:08 -0600 (Wed, 24 May 2006) $
Method Summary | |
---|---|
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 .
|
Parameters: conn The Connection to close
Parameters: db The database to close.
Parameters: rs The ResultSet to close
Parameters: stmt The Statement to close
Parameters: db The database's name. type The class.
Returns: ClassDescriptor if exists, otherwise null.
Throws: MappingException If database can not be instantiated.