Lines Matching defs:db
9 package com.sleepycat.db;
11 import com.sleepycat.db.internal.Db;
12 import com.sleepycat.db.internal.DbConstants;
13 import com.sleepycat.db.internal.DbEnv;
14 import com.sleepycat.db.internal.DbTxn;
15 import com.sleepycat.db.internal.DbUtil;
108 Configure the {@link com.sleepycat.db.Environment#openDatabase Environment.openDatabase} method to create
112 If true, configure the {@link com.sleepycat.db.Environment#openDatabase Environment.openDatabase} method to
120 Return true if the {@link com.sleepycat.db.Environment#openDatabase Environment.openDatabase} method is configured
126 True if the {@link com.sleepycat.db.Environment#openDatabase Environment.openDatabase} method is configured
161 the specified {@link com.sleepycat.db.Database Database} handle.
202 the specified {@link com.sleepycat.db.Database Database} handle.
387 Calling this method only affects the specified {@link com.sleepycat.db.Database Database} handle
428 {@link com.sleepycat.db.Database Database} handles used to perform read uncommitted or database
456 {@link com.sleepycat.db.Database Database} handles used to perform read uncommitted or database
490 {@link com.sleepycat.db.DatabaseConfig#setSortedDuplicates DatabaseConfig.setSortedDuplicates} is also configured.
548 The {@link com.sleepycat.db.EnvironmentConfig#setErrorHandler EnvironmentConfig.setErrorHandler} and {@link com.sleepycat.db.DatabaseConfig#setErrorHandler DatabaseConfig.setErrorHandler} methods are used to enhance the mechanism for reporting
553 Alternatively, applications can use {@link com.sleepycat.db.EnvironmentConfig#setErrorStream EnvironmentConfig.setErrorStream} and {@link com.sleepycat.db.DatabaseConfig#setErrorStream DatabaseConfig.setErrorStream} to
561 For {@link com.sleepycat.db.Database Database} handles opened inside of database environments,
563 calling {@link com.sleepycat.db.EnvironmentConfig#setErrorHandler EnvironmentConfig.setErrorHandler}.
589 For {@link com.sleepycat.db.Database Database} handles opened inside of database environments,
591 calling {@link com.sleepycat.db.EnvironmentConfig#setErrorPrefix EnvironmentConfig.setErrorPrefix}.
622 The {@link com.sleepycat.db.EnvironmentConfig#setErrorStream EnvironmentConfig.setErrorStream} and
623 {@link com.sleepycat.db.DatabaseConfig#setErrorStream DatabaseConfig.setErrorStream} methods are used to enhance
631 {@link com.sleepycat.db.EnvironmentConfig#setErrorPrefix EnvironmentConfig.setErrorPrefix} or {@link com.sleepycat.db.DatabaseConfig#setErrorPrefix DatabaseConfig.setErrorPrefix}), an error string, and a trailing newline character.
635 Alternatively, applications can use {@link com.sleepycat.db.EnvironmentConfig#setErrorHandler EnvironmentConfig.setErrorHandler} and {@link com.sleepycat.db.DatabaseConfig#setErrorHandler DatabaseConfig.setErrorHandler} to capture
665 Configure the {@link com.sleepycat.db.Environment#openDatabase Environment.openDatabase} method to fail if
672 If true, configure the {@link com.sleepycat.db.Environment#openDatabase Environment.openDatabase} method to
680 Return true if the {@link com.sleepycat.db.Environment#openDatabase Environment.openDatabase} method is configured
686 True if the {@link com.sleepycat.db.Environment#openDatabase Environment.openDatabase} method is configured
706 {@link com.sleepycat.db.Environment Environment} handle
745 the specified {@link com.sleepycat.db.Database Database} handle.
809 {@link com.sleepycat.db.Database Database} object, not all operations performed on the underlying
840 {@link com.sleepycat.db.DatabaseConfig#setHashFillFactor DatabaseConfig.setHashFillFactor} method must also be called.
846 the specified {@link com.sleepycat.db.Database Database} handle.
877 {@link com.sleepycat.db.EnvironmentConfig#setVerboseDeadlock EnvironmentConfig.setVerboseDeadlock} for example.
879 The {@link com.sleepycat.db.EnvironmentConfig#setMessageHandler EnvironmentConfig.setMessageHandler} and
880 {@link com.sleepycat.db.DatabaseConfig#setMessageHandler DatabaseConfig.setMessageHandler} methods are used to display
885 Alternatively, you can use {@link com.sleepycat.db.EnvironmentConfig#setMessageStream EnvironmentConfig.setMessageStream}
886 and {@link com.sleepycat.db.DatabaseConfig#setMessageStream DatabaseConfig.setMessageStream} to send the additional
890 For {@link com.sleepycat.db.Database Database} handles opened inside of database environments,
892 calling {@link com.sleepycat.db.EnvironmentConfig#setMessageHandler EnvironmentConfig.setMessageHandler}.
921 {@link com.sleepycat.db.EnvironmentConfig#setVerboseDeadlock EnvironmentConfig.setVerboseDeadlock} for example.
923 The {@link com.sleepycat.db.EnvironmentConfig#setMessageStream EnvironmentConfig.setMessageStream} and
924 {@link com.sleepycat.db.DatabaseConfig#setMessageStream DatabaseConfig.setMessageStream} methods are used to display
930 Alternatively, you can use {@link com.sleepycat.db.EnvironmentConfig#setMessageHandler EnvironmentConfig.setMessageHandler}
931 and {@link com.sleepycat.db.DatabaseConfig#setMessageHandler DatabaseConfig.setMessageHandler} to capture the additional
935 For {@link com.sleepycat.db.Database Database} handles opened inside of database environments,
937 calling {@link com.sleepycat.db.EnvironmentConfig#setMessageStream EnvironmentConfig.setMessageStream}.
1056 the specified {@link com.sleepycat.db.Database Database} handle.
1090 methods will throw a {@link com.sleepycat.db.RunRecoveryException RunRecoveryException}. It is often easier
1093 called when {@link com.sleepycat.db.RunRecoveryException RunRecoveryException} is about to be thrown from a
1096 For {@link com.sleepycat.db.Database Database} handles opened inside of database environments,
1098 calling {@link com.sleepycat.db.EnvironmentConfig#setPanicHandler EnvironmentConfig.setPanicHandler}.
1158 the specified {@link com.sleepycat.db.Database Database} handle.
1186 Configure {@link com.sleepycat.db.Database#consume Database.consume} to return key/data pairs in
1197 This flag configures the {@link com.sleepycat.db.Database#consume Database.consume} method to verify
1202 Calling this method only affects the specified {@link com.sleepycat.db.Database Database} handle
1206 If true, configure the {@link com.sleepycat.db.Database#consume Database.consume} method to return
1217 Return true if the {@link com.sleepycat.db.Database#consume Database.consume} method is configured to return
1224 True if the {@link com.sleepycat.db.Database#consume Database.consume} method is configured to return
1258 Configure {@link com.sleepycat.db.Database#append Database.append} to call the function after the
1263 {@link com.sleepycat.db.Database Database} object, not all operations performed on the underlying
1301 the specified {@link com.sleepycat.db.Database Database} handle.
1342 {@link com.sleepycat.db.DatabaseConfig#setRecordPad DatabaseConfig.setRecordPad} for more information).
1348 the specified {@link com.sleepycat.db.Database Database} handle.
1427 the specified {@link com.sleepycat.db.Database Database} handle.
1466 {@link com.sleepycat.db.DatabaseConfig#setRecordDelimiter DatabaseConfig.setRecordDelimiter} method. For example,
1472 underlying database file (for example, the {@link com.sleepycat.db.Database#close Database.close}
1473 or {@link com.sleepycat.db.Database#sync Database.sync} methods are called), the in-memory copy
1484 {@link com.sleepycat.db.DatabaseConfig#setSnapshot DatabaseConfig.setSnapshot} method for more information.
1490 are not part of the {@link com.sleepycat.db.Database Database} transaction methodology. For
1505 using either the {@link com.sleepycat.db.Database#sync Database.sync} or {@link com.sleepycat.db.Database#close Database.close}
1507 {@link com.sleepycat.db.Database#close Database.close} method to stop it from attempting to write
1518 {@link com.sleepycat.db.Database Database} object, not all operations performed on the underlying
1530 {@link com.sleepycat.db.DatabaseConfig#setRecordDelimiter DatabaseConfig.setRecordDelimiter} method. For example,
1571 return of {@link com.sleepycat.db.OperationStatus#KEYEMPTY OperationStatus.KEYEMPTY}.
1631 Calling this method only affects the specified {@link com.sleepycat.db.Database Database} handle
1755 Calling this method only affects the specified {@link com.sleepycat.db.Database Database} handle
1824 using {@link com.sleepycat.db.Environment#checkpoint Environment.checkpoint}.
1829 Calling this method only affects the specified {@link com.sleepycat.db.Database Database} handle
1968 final Db db = createDatabase(dbenv);
1989 configureDatabase(db, DEFAULT);
1990 db.open(txn, fileName, databaseName, type.getId(), openFlags, mode);
1992 return db;
1996 db.close(0);
2004 void configureDatabase(final Db db, final DatabaseConfig oldConfig)
2017 if (!db.getPrivateDbEnv())
2021 db.set_flags(dbFlags);
2024 db.set_bt_minkey(btMinKey);
2026 db.set_lorder(byteOrder);
2028 cacheCount != oldConfig.cacheCount) && db.getPrivateDbEnv())
2029 db.set_cachesize(cacheSize, cacheCount);
2031 db.set_error_stream(errorStream);
2033 db.set_errpfx(errorPrefix);
2035 db.set_h_ffactor(hashFillFactor);
2037 db.set_h_nelem(hashNumElements);
2039 db.set_message_stream(messageStream);
2041 db.set_pagesize(pageSize);
2042 if (password != oldConfig.password && db.getPrivateDbEnv())
2043 db.set_encrypt(password, DbConstants.DB_ENCRYPT_AES);
2045 db.set_priority(priority.getFlag());
2047 db.set_q_extentsize(queueExtentSize);
2049 db.set_re_delim(recordDelimiter);
2051 db.set_re_len(recordLength);
2053 db.set_re_pad(recordPad);
2055 db.set_re_source(
2059 db.set_bt_compare(btreeComparator);
2061 db.set_bt_prefix(btreePrefixCalculator);
2063 db.set_dup_compare(duplicateComparator);
2065 db.set_feedback(feedbackHandler);
2067 db.set_errcall(errorHandler);
2069 db.set_h_compare(hashComparator);
2071 db.set_h_hash(hasher);
2073 db.set_msgcall(messageHandler);
2075 db.set_append_recno(recnoAppender);
2077 db.set_paniccall(panicHandler);
2081 DatabaseConfig(final Db db)
2084 type = DatabaseType.fromInt(db.get_type());
2086 final int openFlags = db.get_open_flags();
2095 final int dbFlags = db.get_flags();
2107 btMinKey = db.get_bt_minkey();
2109 byteOrder = db.get_lorder();
2112 cacheSize = db.get_env().get_cachesize();
2113 cacheCount = db.get_env().get_cachesize_ncache();
2114 errorStream = db.get_error_stream();
2115 errorPrefix = db.get_errpfx();
2117 hashFillFactor = db.get_h_ffactor();
2118 hashNumElements = db.get_h_nelem();
2120 messageStream = db.get_message_stream();
2123 priority = CacheFilePriority.fromFlag(db.get_priority());
2125 queueExtentSize = db.get_q_extentsize();
2128 recordLength = db.get_re_len();
2129 recordPad = db.get_re_pad();
2132 recordDelimiter = db.get_re_delim();
2133 recordSource = (db.get_re_source() == null) ? null :
2134 new java.io.File(db.get_re_source());
2136 transactional = db.get_transactional();
2138 btreeComparator = db.get_bt_compare();
2139 btreePrefixCalculator = db.get_bt_prefix();
2140 duplicateComparator = db.get_dup_compare();
2141 feedbackHandler = db.get_feedback();
2142 errorHandler = db.get_errcall();
2143 hashComparator = db.get_h_compare();
2144 hasher = db.get_h_hash();
2145 messageHandler = db.get_msgcall();
2146 recnoAppender = db.get_append_recno();
2147 panicHandler = db.get_paniccall();