|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.ucsb.adl.bucket99.DatabaseURLMetadataSubdriver
Metadata subdriver that generates ADL metadata reports by querying a database for URLs and loading the URLs.
This class reads the following properties from Bucket99
configuration files when creating a subdriver for property prefix
V. Property values may be indirectly specified using the
notation @P where P is the name of
another property (see ExtendedProperties for more information).
.query
select url from table where
holding = ?". The query should return exactly one row when
? is replaced with a valid holding identifier.
url, a required string, should be the URL of the
appropriate metadata report for the holding. If the holding
identifier is invalid, the query should return zero rows.
metadata.identifier_datatype
integer" or "string".
$Log: DatabaseURLMetadataSubdriver.java,v $
Revision 1.4 2004/09/23 17:03:10 gjanee
Rewrite to use class
edu.ucsb.adl.middleware.ExtendedProperties.
Revision 1.3 2003/06/12 05:31:24 gjanee
Added support for arbitrary, per-collection and per-holding
metadata views. Specifically, the createSubdriver
method is now passed a property name prefix.
Revision 1.2 2001/08/23 23:16:40 gjanee
Added support for string holding identifiers. Added property
metadata.identifier_datatype.
Revision 1.1 2000/05/17 19:11:19 gjanee
Initial revision
| Method Summary | |
static edu.ucsb.adl.bucket99.DatabaseURLMetadataSubdriver |
createSubdriver(edu.ucsb.adl.middleware.ExtendedProperties propertyList,
java.lang.String prefix)
Creates a DatabaseURLMetadataSubdriver. |
void |
destroy()
Frees all resources held by the subdriver. |
void |
disuseConnection()
For use by MetadataDriver only. |
java.lang.String |
generateReport(java.lang.String view,
java.lang.String collection,
java.lang.String holding)
Generates an ADL metadata report. |
void |
useConnection(java.sql.Connection connection)
For use by MetadataDriver only. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static edu.ucsb.adl.bucket99.DatabaseURLMetadataSubdriver createSubdriver(edu.ucsb.adl.middleware.ExtendedProperties propertyList,
java.lang.String prefix)
throws InternalErrorException
DatabaseURLMetadataSubdriver.
propertyList - The source for the above-mentioned properties.prefix - The property name prefix corresponding to the metadata view the
subdriver is to support, e.g., "ACCESS".
DatabaseURLMetadataSubdriver.
InternalErrorException - If any error occurs.
public void useConnection(java.sql.Connection connection)
throws java.sql.SQLException
MetadataDriver only.
useConnection in interface MetadataSubdriverconnection - The connection.
java.sql.SQLException - If any error occurs.public void disuseConnection()
MetadataDriver only.
disuseConnection in interface MetadataSubdriver
public java.lang.String generateReport(java.lang.String view,
java.lang.String collection,
java.lang.String holding)
throws java.sql.SQLException,
MiddlewareException
generateReport in interface MetadataSubdriverview - Unused.collection - Unused.holding - The holding identifier.
java.sql.SQLException - If a database-related error occurs.
BadRequestException - If holding is invalid.
InternalErrorException - If any other error occurs.
MiddlewareExceptionpublic void destroy()
destroy in interface MetadataSubdriver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||