public class SecondaryDatabase extends Database
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
OperationStatus |
delete(Transaction txn,
DatabaseEntry key)
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
OperationStatus |
get(Transaction txn,
DatabaseEntry key,
DatabaseEntry pKey,
DatabaseEntry data,
LockMode lockMode)
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
OperationStatus |
get(Transaction txn,
DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
Database |
getPrimaryDatabase()
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
SecondaryConfig |
getPrivateSecondaryConfig()
Returns the secondary config without cloning, for internal use.
|
OperationStatus |
getSearchBoth(Transaction txn,
DatabaseEntry key,
DatabaseEntry pKey,
DatabaseEntry data,
LockMode lockMode)
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
OperationStatus |
getSearchBoth(Transaction txn,
DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
SecondaryConfig |
getSecondaryConfig()
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
JoinCursor |
join(Cursor[] cursors,
JoinConfig config)
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
SecondaryCursor |
openSecondaryCursor(Transaction txn,
CursorConfig cursorConfig)
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
OperationStatus |
put(Transaction txn,
DatabaseEntry key,
DatabaseEntry data)
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
OperationStatus |
putNoDupData(Transaction txn,
DatabaseEntry key,
DatabaseEntry data)
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
OperationStatus |
putNoOverwrite(Transaction txn,
DatabaseEntry key,
DatabaseEntry data)
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
int |
truncate(Transaction txn,
boolean countRecords)
Deprecated.
|
count, getConfig, getDatabaseName, getEnvironment, getSecondaryDatabases, getStats, openCursor, openSequence, preload, preload, preload, removeSequence, sync, verifypublic void close()
throws DatabaseException
close in class DatabaseDatabaseExceptionpublic Database getPrimaryDatabase() throws DatabaseException
DatabaseExceptionpublic SecondaryConfig getSecondaryConfig() throws DatabaseException
DatabaseExceptionpublic SecondaryConfig getPrivateSecondaryConfig()
public SecondaryCursor openSecondaryCursor(Transaction txn, CursorConfig cursorConfig) throws DatabaseException
DatabaseExceptionpublic OperationStatus delete(Transaction txn, DatabaseEntry key) throws DatabaseException
delete in class DatabaseDatabaseExceptionpublic OperationStatus get(Transaction txn, DatabaseEntry key, DatabaseEntry data, LockMode lockMode) throws DatabaseException
get in class DatabaseDatabaseExceptionpublic OperationStatus get(Transaction txn, DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
DatabaseExceptionpublic OperationStatus getSearchBoth(Transaction txn, DatabaseEntry key, DatabaseEntry data, LockMode lockMode) throws DatabaseException
getSearchBoth in class DatabaseDatabaseExceptionpublic OperationStatus getSearchBoth(Transaction txn, DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException
DatabaseExceptionpublic OperationStatus put(Transaction txn, DatabaseEntry key, DatabaseEntry data) throws DatabaseException
put in class DatabaseDatabaseExceptionpublic OperationStatus putNoOverwrite(Transaction txn, DatabaseEntry key, DatabaseEntry data) throws DatabaseException
putNoOverwrite in class DatabaseDatabaseExceptionpublic OperationStatus putNoDupData(Transaction txn, DatabaseEntry key, DatabaseEntry data) throws DatabaseException
putNoDupData in class DatabaseDatabaseExceptionpublic JoinCursor join(Cursor[] cursors, JoinConfig config) throws DatabaseException
join in class DatabaseDatabaseExceptionpublic int truncate(Transaction txn, boolean countRecords) throws DatabaseException
truncate in class DatabaseDatabaseException