Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

oracle.ide.persistence
Interface SecondaryKeyProvider


public interface SecondaryKeyProvider

Provides secondary keys for a NameSpace. Implementations must be thread-safe, as they can be called from multiple threads.


Method Summary
 java.util.Collection<java.lang.String> getSecondaryKeyNames()
          Get all the secondary key names provided by this implementation.
 java.util.Collection<java.lang.String> getSecondaryKeys(java.lang.String keyName, java.lang.String primaryKey, byte[] data)
          Get the secondary keys for a record.
 

Method Detail

getSecondaryKeyNames

@NotNull
java.util.Collection<java.lang.String> getSecondaryKeyNames()
Get all the secondary key names provided by this implementation.

Returns:
the secondary key names

getSecondaryKeys

@NotNull
java.util.Collection<java.lang.String> getSecondaryKeys(java.lang.String keyName,
                                                                java.lang.String primaryKey,
                                                                byte[] data)
Get the secondary keys for a record. If there are no secondary keys for this record, returns an empty collection.

Parameters:
keyName - the secondary key name
primaryKey - the primary key
data - the record data
Returns:
the secondary keys

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

Copyright © 1997, 2011, Oracle. All rights reserved.