2
<!--Copyright 1997-2002 by Sleepycat Software, Inc.-->
3
<!--All rights reserved.-->
4
<!--See the file LICENSE for redistribution information.-->
7
<title>Berkeley DB: Db.set_lorder</title>
8
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
9
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
12
<a name="2"><!--meow--></a>
13
<table width="100%"><tr valign=top>
15
<h1>Db.set_lorder</h1>
18
<a href="../api_java/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
23
import com.sleepycat.db.*;
25
public void set_lorder(int lorder)
29
<p>Set the byte order for integers in the stored database metadata. The
30
number should represent the order as an integer; for example, big endian
31
order is the value 4,321, and little endian order is the value 1,234.
32
If <b>lorder</b> is not explicitly set, the host order of the machine
33
where the Berkeley DB library was compiled is used.
34
<p><b>The access methods provide no guarantees about the byte ordering of the
35
application data stored in the database, and applications are responsible
36
for maintaining any necessary ordering.</b>
37
<p>The Db.set_lorder method configures a database, not only operations performed
38
using the specified <a href="../api_java/db_class.html">Db</a> handle.
39
<p>The Db.set_lorder interface may not be called after the <a href="../api_java/db_open.html">Db.open</a>
41
If the database already exists when
42
<a href="../api_java/db_open.html">Db.open</a> is called, the information specified to Db.set_lorder will
44
If creating additional databases in a file, the byte order specified must
45
be consistent with the existing databases in the file or an error will be
47
<p>The Db.set_lorder method throws an exception that encapsulates a non-zero error value on
50
<p>The Db.set_lorder method may fail and throw an exception encapsulating a non-zero error for the following conditions:
52
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
53
<p>Called after <a href="../api_java/db_open.html">Db.open</a> was called.
55
<p>The Db.set_lorder method may fail and throw an exception for errors specified for other Berkeley DB and C library or system methods.
56
If a catastrophic error has occurred, the Db.set_lorder method may fail and
57
throw a <a href="../api_java/runrec_class.html">DbRunRecoveryException</a>,
58
in which case all subsequent Berkeley DB calls will fail in the same way.
60
<a href="../api_java/db_class.html">Db</a>
62
<a href="../api_java/db_list.html">Databases and Related Methods</a>
64
<table width="100%"><tr><td><br></td><td align=right>
65
<a href="../api_java/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
67
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>