# Uses of Interface com.sleepycat.db.PartitionHandler (Oracle - Berkeley DB Java API)
Date: 2017-04-13

## Uses of Interface
com.sleepycat.db.PartitionHandler

Packages that use PartitionHandler
com.sleepycat.db: Berkeley DB Java API [reference guide] [Java programming notes].

### Uses of PartitionHandler in com.sleepycat.db

Methods in com.sleepycat.db that return PartitionHandler
`PartitionHandler` DatabaseConfig.`getPartitionHandler()` Return the function to be called to determine which partition a key resides in.

Methods in com.sleepycat.db with parameters of type PartitionHandler
`void` DatabaseConfig.`setPartitionByCallback(int parts, PartitionHandler partitionHandler)` Enable or disable database partitioning, and set the callback that will be used for the partitioning.