|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.castor.jdo.util.JDOUtils
Common static methods for Castor JDO.
| Method Summary | |
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 org.exolab.castor.mapping.ClassDescriptor |
getClassDescriptor(java.lang.String db,
java.lang.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(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 org.exolab.castor.mapping.ClassDescriptor getClassDescriptor(java.lang.String db,
java.lang.Class type)
throws org.exolab.castor.mapping.MappingException
db - The database's name.type - The class.
org.exolab.castor.mapping.MappingException - If database can not be instantiated.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||