Uses of Class
edu.ucsb.nceas.metacat.database.DBConnection
Packages that use DBConnection
Package
Description
-
Uses of DBConnection in edu.ucsb.nceas.metacat
Methods in edu.ucsb.nceas.metacat with parameters of type DBConnectionModifier and TypeMethodDescriptionvoid
IdentifierManager.createMapping
(String guid, String localId, DBConnection dbConn) Create a mapping between the dataone identifier and local docid in the identifier tablestatic void
DocumentImpl.registerDocument
(String docname, String doctype, DBConnection conn, String accnum, String user) Register a document that resides on the filesystem with the database.protected String
MetacatHandler.registerToDB
(org.dataone.service.types.v1.Identifier pid, MetacatHandler.Action action, DBConnection conn, String user, String docType, org.dataone.service.types.v1.Identifier prePid) Register the dataone identifier into database (the xml_documents/revisions, identifier tables).Constructors in edu.ucsb.nceas.metacat with parameters of type DBConnectionModifierConstructorDescriptionconstruct an instance of the DBQuery classDBValidate
(DBConnection conn) Construct a new validation object using a database entity resolver -
Uses of DBConnection in edu.ucsb.nceas.metacat.accesscontrol
Methods in edu.ucsb.nceas.metacat.accesscontrol with parameters of type DBConnectionModifier and TypeMethodDescriptionvoid
XMLAccessAccess.deleteXMLAccessForDoc
(String guid, String permType, DBConnection conn) Delete xml access.void
XMLAccessAccess.insertAccess
(String guid, List<edu.ucsb.nceas.utilities.access.XMLAccessDAO> xmlAccessList, DBConnection conn) Set permissions for a given document. -
Uses of DBConnection in edu.ucsb.nceas.metacat.database
Methods in edu.ucsb.nceas.metacat.database that return DBConnectionModifier and TypeMethodDescriptionstatic DBConnection
DBConnectionPool.getDBConnection
(String methodName) Method to get a DBConnection in connection pool 1) try to get a DBConnection from DBConnection pool 2) if 1) failed, then check the size of pool.Methods in edu.ucsb.nceas.metacat.database with parameters of type DBConnectionModifier and TypeMethodDescriptionstatic void
DBConnectionPool.returnDBConnection
(DBConnection conn, int serialNumber) Method to return a connection to DBConnection pool. -
Uses of DBConnection in edu.ucsb.nceas.metacat.systemmetadata
Methods in edu.ucsb.nceas.metacat.systemmetadata with parameters of type DBConnectionModifier and TypeMethodDescriptionvoid
ChecksumsManager.delete
(org.dataone.service.types.v1.Identifier pid, DBConnection conn) Delete the checksums from the table for the given pidvoid
SystemMetadataManager.delete
(org.dataone.service.types.v1.Identifier guid, DBConnection dbConn) Delete the system metadata for the given guid with the DBConnection object.void
ChecksumsManager.save
(org.dataone.service.types.v1.Identifier id, Map<String, String> checksums, DBConnection dbConn) Save the checksums into database.void
SystemMetadataManager.store
(org.dataone.service.types.v2.SystemMetadata sysmeta, boolean changeModifyTime, DBConnection dbConn, SystemMetadataManager.SysMetaVersion sysMetaCheck) Store a system metadata record into the store.static String
SystemMetadataManager.storeRollBack
(org.dataone.service.types.v1.Identifier pid, Exception e, DBConnection conn, org.dataone.service.types.v2.SystemMetadata... backupCopies) RollBack the change in database and hashtore when the store methods failedprotected void
SystemMetadataManager.updateSystemMetadata
(org.dataone.service.types.v2.SystemMetadata sm, DBConnection dbConn) Insert the system metadata fields into the db