接口 DatabaseMetaDataCallback<T>
- 类型参数:
T
- the result type
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
@FunctionalInterface public interface DatabaseMetaDataCallback<T>
A callback interface used by the JdbcUtils class. Implementations of this interface perform the actual work of extracting database meta-data, but don't need to worry about exception handling. SQLExceptions will be caught and handled correctly by the JdbcUtils class.- 作者:
- Thomas Risberg, Juergen Hoeller
- 另请参阅:
JdbcUtils.extractDatabaseMetaData(javax.sql.DataSource, DatabaseMetaDataCallback)
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 T
processMetaData(DatabaseMetaData dbmd)
Implementations must implement this method to process the meta-data passed in.
方法详细资料
processMetaData
T processMetaData(DatabaseMetaData dbmd) throws SQLException, MetaDataAccessException
Implementations must implement this method to process the meta-data passed in. Exactly what the implementation chooses to do is up to it.- 参数:
dbmd
- the DatabaseMetaData to process- 返回:
- a result object extracted from the meta-data (can be an arbitrary object, as needed by the implementation)
- 抛出:
SQLException
- if an SQLException is encountered getting column values (that is, there's no need to catch SQLException)MetaDataAccessException
- in case of other failures while extracting meta-data (for example, reflection failure)