|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.meta.jdbc.JdbcUtils
public class JdbcUtils
Provides utility methods for obtaining meta objects from JDBC result sets.
Constructor Summary | |
---|---|
JdbcUtils()
|
Method Summary | |
---|---|
static MetaClass |
getResultSetMetaClass(java.lang.Class type)
Returns the appropriate meta-class for the specified Java class searching in the context class registry. |
static MetaClass |
getResultSetMetaClass(java.lang.Class type,
MetaClassRegistry classRegistry)
Returns the appropriate meta-class for the specified Java class. |
static java.util.List |
getResultSetPropertyInfos(MetaClassRegistry classRegistry,
java.sql.ResultSet resultSet)
Retrieves the list of property infor objects for the specified ResultSet by examining the set's meta-data. |
static java.util.List |
getResultSetPropertyInfos(MetaClassRegistry classRegistry,
java.sql.ResultSet resultSet,
boolean resolveTypes)
Retrieves the list of property infor objects for the specified ResultSet by examining the set's meta-data. |
static java.util.List |
getResultSetPropertyInfos(java.sql.ResultSet resultSet)
Retrieves the list of property infor objects for the specified ResultSet by examining the set's meta-data. |
static java.util.List |
getResultSetPropertyInfos(java.sql.ResultSet resultSet,
boolean resolveTypes)
Retrieves the list of property infor objects for the specified ResultSet by examining the set's meta-data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JdbcUtils()
Method Detail |
---|
public static MetaClass getResultSetMetaClass(java.lang.Class type, MetaClassRegistry classRegistry)
type
- Class to look for meta-class for.classRegistry
- Meta-class registry to search.public static MetaClass getResultSetMetaClass(java.lang.Class type)
type
- Class to look for meta-class for.public static java.util.List getResultSetPropertyInfos(MetaClassRegistry classRegistry, java.sql.ResultSet resultSet, boolean resolveTypes) throws java.sql.SQLException
classRegistry
- Meta-class registry to use for resolving dependent types.resultSet
- Result set to generate property list for.resolveTypes
- Flag to indicate if type resolution should be deferred (if false).
java.sql.SQLException
- If there is a problem retrieved the result set's meta data.public static java.util.List getResultSetPropertyInfos(MetaClassRegistry classRegistry, java.sql.ResultSet resultSet) throws java.sql.SQLException
classRegistry
- Meta-class registry to use for resolving dependent types.resultSet
- Result set to generate property list for.
java.sql.SQLException
- If there is a problem retrieved the result set's meta data.public static java.util.List getResultSetPropertyInfos(java.sql.ResultSet resultSet) throws java.sql.SQLException
resultSet
- Result set to generate property list for.
java.sql.SQLException
- If there is a problem retrieved the result set's meta data.public static java.util.List getResultSetPropertyInfos(java.sql.ResultSet resultSet, boolean resolveTypes) throws java.sql.SQLException
resultSet
- Result set to generate property list for.resolveTypes
- Flag to indicate if type resolution should be deferred (if false).
java.sql.SQLException
- If there is a problem retrieved the result set's meta data.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |