8.4.1 Discovery of Lock Capabilities

Whether a particular implementation supports locking can be determined by querying the repository descriptor table with Repository.getDescriptor("OPTION_LOCKING_SUPPORTED") (a return value of true indicates support for locking, see 6.1.1.1 Repository Descriptors).