Uses of Class com.sleepycat.client.persist.PrimaryIndex (Oracle - Berkeley DB Client-Server API)
Date: 2018-05-29

## Uses of Class
com.sleepycat.client.persist.PrimaryIndex

- Packages that use PrimaryIndex
  Package | Description
  --- | ---
  com.sleepycat.client.persist | The Direct Persistence Layer (DPL) adds a persistent object model to the Berkeley DB transactional engine.

- - ### Uses of PrimaryIndex in com.sleepycat.client.persist

    Methods in com.sleepycat.client.persist that return PrimaryIndex
    Modifier and Type | Method and Description
    --- | ---
    `PrimaryIndex<PK,E>` | SecondaryIndex.`getPrimaryIndex()` Returns the primary index associated with this secondary index.
    `<PK,E> PrimaryIndex<PK,E>` | EntityStore.`getPrimaryIndex(java.lang.Class<PK> primaryKeyClass, java.lang.Class<E> entityClass)` Returns the primary index for a given entity class, opening it if necessary.

    Methods in com.sleepycat.client.persist with parameters of type PrimaryIndex
    Modifier and Type | Method and Description
    --- | ---
    `<SK,PK,E> SecondaryIndex<SK,PK,E>` | EntityStore.`getSecondaryIndex(PrimaryIndex<PK,E> primaryIndex, java.lang.Class<SK> keyClass, java.lang.String keyName)` Returns a secondary index for a given primary index and secondary key, opening it if necessary.
    `<SK,PK,E1,E2 extends E1> SecondaryIndex<SK,PK,E2>` | EntityStore.`getSubclassIndex(PrimaryIndex<PK,E1> primaryIndex, java.lang.Class<E2> entitySubclass, java.lang.Class<SK> keyClass, java.lang.String keyName)` Returns a secondary index for a secondary key in an entity subclass, opening it if necessary.

    Constructors in com.sleepycat.client.persist with parameters of type PrimaryIndex
    Constructor and Description
    `EntityJoin(PrimaryIndex<PK,E> index)` Creates a join object for a given primary index.
    `SecondaryIndex(SSecondaryDatabase database, SDatabase keysDatabase, PrimaryIndex<PK,E> primaryIndex, java.lang.Class<SK> secondaryKeyClass, EntryBinding<SK> secondaryKeyBinding)` Creates a secondary index without using an `EntityStore`.

Copyright (c) 2016, 2018 Oracle and/or its affiliates. All rights reserved.