Top Description Methods
org.springframework.jdbc.support

public Interface DatabaseMetaDataCallback<T>

Annotations
@FunctionalInterface
Type Parameters
<T>
the result type
Imports
java.sql.DatabaseMetaData, .SQLException

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.
Authors
Thomas Risberg, Juergen Hoeller
See Also
JdbcUtils#extractDatabaseMetaData(javax.sql.DataSource, DatabaseMetaDataCallback)

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

a result object extracted from the meta-data (can be an arbitrary object, as needed by the implementation)
processMetaData
(DatabaseMetaData
the DatabaseMetaData to process
dbmd
)

Implementations must implement this method to process the meta-data passed in. Exactly what the implementation chooses to do is up to it.

Method Detail

processMetaDataback to summary
public 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.

Parameters
dbmd:DatabaseMetaData

the DatabaseMetaData to process

Returns:T

a result object extracted from the meta-data (can be an arbitrary object, as needed by the implementation)

Exceptions
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)