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 TypeMethodDescriptionvoidIdentifierManager.createMapping(String guid, String localId, DBConnection dbConn) Create a mapping between the dataone identifier and local docid in the identifier tablestatic voidDocumentImpl.registerDocument(String docname, String doctype, DBConnection conn, String accnum, String user) Register a document that resides on the filesystem with the database.protected StringMetacatHandler.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 TypeMethodDescriptionvoidXMLAccessAccess.deleteXMLAccessForDoc(String guid, String permType, DBConnection conn) Delete xml access.voidXMLAccessAccess.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 DBConnectionDBConnectionPool.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 voidDBConnectionPool.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 TypeMethodDescriptionvoidChecksumsManager.delete(org.dataone.service.types.v1.Identifier pid, DBConnection conn) Delete the checksums from the table for the given pidvoidSystemMetadataManager.delete(org.dataone.service.types.v1.Identifier guid, DBConnection dbConn) Delete the system metadata for the given guid with the DBConnection object.voidChecksumsManager.save(org.dataone.service.types.v1.Identifier id, Map<String, String> checksums, DBConnection dbConn) Save the checksums into database.voidSystemMetadataManager.store(org.dataone.service.types.v2.SystemMetadata sysmeta, boolean changeModifyTime, DBConnection dbConn, SystemMetadataManager.SysMetaVersion sysMetaCheck) Store a system metadata record into the store.static StringSystemMetadataManager.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 voidSystemMetadataManager.updateSystemMetadata(org.dataone.service.types.v2.SystemMetadata sm, DBConnection dbConn) Insert the system metadata fields into the db