From 780b92ada9afcf1d58085a83a0b9e6bc982203d1 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 17 Feb 2015 17:25:57 +0000 Subject: Imported from /home/lorry/working-area/delta_berkeleydb/db-6.1.23.tar.gz. --- .../java/com/sleepycat/persist/model/KeyField.html | 391 ++++++++++----------- 1 file changed, 191 insertions(+), 200 deletions(-) (limited to 'docs/java/com/sleepycat/persist/model/KeyField.html') diff --git a/docs/java/com/sleepycat/persist/model/KeyField.html b/docs/java/com/sleepycat/persist/model/KeyField.html index 3a6408f0..3b927031 100644 --- a/docs/java/com/sleepycat/persist/model/KeyField.html +++ b/docs/java/com/sleepycat/persist/model/KeyField.html @@ -1,111 +1,100 @@ - - - - - -KeyField (Oracle - Berkeley DB Java API) - - - - - - - - - - - - -
- - +//--> + + - - - - - - - - - - - - - - - - -
-Berkeley DB
version 5.3.21
-
- + + +
+ + +
+ + + - -
-

- -com.sleepycat.persist.model -
-Annotation Type KeyField

-
-
-
@Documented
-@Retention(value=RUNTIME)
-@Target(value=FIELD)
-public @interface KeyField
- - -

-Indicates the sorting position of a key field in a composite key class when +

+
com.sleepycat.persist.model
+

Annotation Type KeyField

+
+
+
+
    +
  • +
    +
    +
    @Documented
    +@Retention(value=RUNTIME)
    +@Target(value=FIELD)
    +public @interface KeyField
    +
    Indicates the sorting position of a key field in a composite key class when the Comparable interface is not implemented. The KeyField integer value specifies the sort order of this field within the set of fields in the composite key. -

    If the field type of a PrimaryKey or SecondaryKey is a +

    If the field type of a PrimaryKey or SecondaryKey is a composite key class containing more than one key field, then a KeyField annotation must be present on each non-transient instance field of the composite key class. The KeyField value must be a number between one and the number of non-transient instance fields declared in the @@ -145,7 +134,7 @@ Indicates the sorting position of a key field in a composite key class when

    Custom Sort Order

    To override the default sort order, a composite key class may implement - the Comparable interface. This allows overriding the sort order and + the Comparable interface. This allows overriding the sort order and is therefore useful even when there is only one key field in the composite key class. For example, the following class sorts Strings using a Canadian collator:

    @@ -195,122 +184,124 @@ Indicates the sorting position of a key field in a composite key class when
  • The comparison method must not assume that it is called after the store has been opened. With Berkeley DB Java Edition, the comparison method is - called during database recovery, which occurs in the Environment + called during database recovery, which occurs in the Environment constructor.

  • The comparison method must not assume that it will only be called with keys that are currently present in the database. The comparison method will occasionally be called with deleted keys or with keys for records that were not part of a committed transaction.
  • - -

    - -

    -


    - -

    +

+ + +
+
+ +
+
+ +
+ -
- - - - - - - - - - - - - - - - - - -
-Berkeley DB
version 5.3.21
-
- + + +
+ + +
+ + + - -
-Copyright (c) 1996, 2012 Oracle and/or its affiliates. All rights reserved. - - +

Copyright (c) 1996, 2015 Oracle and/or its affiliates. All rights reserved.

+ + -- cgit v1.2.1