|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.jdo.util.JDOUtils
public final class JDOUtils
Common static methods for Castor JDO.
| 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 . |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||