public class JDBCStorableIntrospector extends StorableIntrospector
Storable
type needed by
JDBCRepository. The storable type must match to a table in an external
database. All examined data is cached, so repeat examinations are fast,
unless the examination failed.Constructor and Description |
---|
JDBCStorableIntrospector() |
Modifier and Type | Method and Description |
---|---|
static <S extends Storable> |
examine(java.lang.Class<S> type,
javax.sql.DataSource ds,
java.lang.String catalog,
java.lang.String schema)
Examines the given class and returns a JDBCStorableInfo describing it.
|
examine, inferType, main
public static <S extends Storable> JDBCStorableInfo<S> examine(java.lang.Class<S> type, javax.sql.DataSource ds, java.lang.String catalog, java.lang.String schema) throws java.sql.SQLException, SupportException
type
- Storable type to examineds
- source of JDBC connections to use for matching to a tablecatalog
- optional catalog to searchschema
- optional schema to searchMalformedTypeException
- if Storable type is not well-formedRepositoryException
- if there was a problem in accessing the databasejava.lang.IllegalArgumentException
- if type is nulljava.sql.SQLException
SupportException
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.