db.KeyRange Extends
Creates a new IDBKeyRange wrapper object. Should not be created directly, instead use one of the static factory methods. For example:

Inheritance

Constructor

goog.db.KeyRange(range)

Parameters

range : !IDBKeyRange
Underlying IDBKeyRange object.

Instance Methods

Public Protected Private
range() !IDBKeyRange
Returns underlying key range object. This is used in ObjectStore's openCursor and count methods.
Returns: !IDBKeyRange  No description.
code »

Instance Properties

range_ :
Underlying IDBKeyRange object.
Code »

Static Methods

goog.db.KeyRange.bound(lowerupperopt_lowerOpenopt_upperOpen) !goog.db.KeyRange
Creates a key range with upper and lower bounds.
Arguments:
lower : IDBKeyType
The value of the lower bound.
upper : IDBKeyType
The value of the upper bound.
opt_lowerOpen : boolean=
If true, the range excludes the lower bound value.
opt_upperOpen : boolean=
If true, the range excludes the upper bound value.
Returns: !goog.db.KeyRange  The key range.
code »
goog.db.KeyRange.lowerBound(loweropt_lowerOpen) !goog.db.KeyRange
Creates a key range with a lower bound only, finishes at the last record.
Arguments:
lower : IDBKeyType
The value of the lower bound.
opt_lowerOpen : boolean=
If true, the range excludes the lower bound value.
Returns: !goog.db.KeyRange  The key range.
code »
goog.db.KeyRange.only(key) !goog.db.KeyRange
Creates a new key range for a single value.
Arguments:
key : IDBKeyType
The single value in the range.
Returns: !goog.db.KeyRange  The key range.
code »
goog.db.KeyRange.upperBound(upperopt_upperOpen) !goog.db.KeyRange
Creates a key range with a upper bound only, starts at the first record.
Arguments:
upper : IDBKeyType
The value of the upper bound.
opt_upperOpen : boolean=
If true, the range excludes the upper bound value.
Returns: !goog.db.KeyRange  The key range.
code »

Static Properties

goog.db.KeyRange.IDB_KEY_RANGE_ :
The IDBKeyRange.
Code »

Package db

Package Reference