~ubuntu-branches/ubuntu/edgy/rpm/edgy

« back to all changes in this revision

Viewing changes to db/docs/api_java/db_get_byteswapped.html

  • Committer: Bazaar Package Importer
  • Author(s): Joey Hess
  • Date: 2002-01-22 20:56:57 UTC
  • Revision ID: james.westby@ubuntu.com-20020122205657-l74j50mr9z8ofcl5
Tags: upstream-4.0.3
ImportĀ upstreamĀ versionĀ 4.0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!--$Id: db_get_byteswapped.so,v 10.10 2001/06/06 18:35:55 bostic Exp $-->
 
2
<!--Copyright 1997-2001 by Sleepycat Software, Inc.-->
 
3
<!--All rights reserved.-->
 
4
<html>
 
5
<head>
 
6
<title>Berkeley DB: Db.get_byteswapped</title>
 
7
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
 
8
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
 
9
</head>
 
10
<body bgcolor=white>
 
11
<a name="2"><!--meow--></a>
 
12
<table width="100%"><tr valign=top>
 
13
<td>
 
14
<h1>Db.get_byteswapped</h1>
 
15
</td>
 
16
<td align=right>
 
17
<a href="../api_java/java_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
 
18
</td></tr></table>
 
19
<hr size=1 noshade>
 
20
<tt>
 
21
<h3><pre>
 
22
import com.sleepycat.db.*;
 
23
<p>
 
24
public boolean get_byteswapped();
 
25
</pre></h3>
 
26
<h1>Description</h1>
 
27
<p>The Db.get_byteswapped method
 
28
returns false
 
29
if the underlying database files were created on an architecture of the
 
30
same byte order as the current one, and
 
31
returns true
 
32
if they were not (that is, big-endian on a little-endian machine, or
 
33
vice versa). This field may be used to determine whether application
 
34
data needs to be adjusted for this architecture or not.
 
35
<p>The Db.get_byteswapped interface may be called only after the <a href="../api_java/db_open.html">Db.open</a>
 
36
interface has been called.
 
37
<h1>Errors</h1>
 
38
<p>The Db.get_byteswapped method may fail and throw an exception encapsulating a non-zero error for the following conditions:
 
39
<p><dl compact>
 
40
<p><dt>EINVAL<dd>An invalid flag value or parameter was specified.
 
41
<p>Called before <a href="../api_java/db_open.html">Db.open</a> was called.
 
42
</dl>
 
43
<p>The Db.get_byteswapped method may fail and throw an exception for errors specified for other Berkeley DB and C library or system methods.
 
44
If a catastrophic error has occurred, the Db.get_byteswapped method may fail and throw
 
45
a <a href="../api_java/runrec_class.html">DbRunRecoveryException</a>, in which case all subsequent Berkeley DB calls
 
46
will fail in the same way.
 
47
<h1>Class</h1>
 
48
<a href="../api_java/db_class.html">Db</a>
 
49
<h1>See Also</h1>
 
50
<a href="../api_java/db_associate.html">Db.associate</a>,
 
51
<a href="../api_java/db_close.html">Db.close</a>,
 
52
<a href="../api_java/db_cursor.html">Db.cursor</a>,
 
53
<a href="../api_java/db_del.html">Db.del</a>,
 
54
<a href="../api_java/db_fd.html">Db.fd</a>,
 
55
<a href="../api_java/db_get.html">Db.get</a>,
 
56
<a href="../api_java/db_get.html">Db.pget</a>,
 
57
<a href="../api_java/db_get_byteswapped.html">Db.get_byteswapped</a>,
 
58
<a href="../api_java/db_get_type.html">Db.get_type</a>,
 
59
<a href="../api_java/db_join.html">Db.join</a>,
 
60
<a href="../api_java/db_key_range.html">Db.key_range</a>,
 
61
<a href="../api_java/db_open.html">Db.open</a>,
 
62
<a href="../api_java/db_put.html">Db.put</a>,
 
63
<a href="../api_java/db_remove.html">Db.remove</a>,
 
64
<a href="../api_java/db_rename.html">Db.rename</a>,
 
65
<a href="../api_java/db_set_append_recno.html">Db.set_append_recno</a>,
 
66
<a href="../api_java/db_set_bt_minkey.html">Db.set_bt_minkey</a>,
 
67
<a href="../api_java/db_set_cachesize.html">Db.set_cachesize</a>,
 
68
<a href="../api_java/db_set_errcall.html">Db.set_errcall</a>,
 
69
<a href="../api_java/db_set_errpfx.html">Db.set_errpfx</a>,
 
70
<a href="../api_java/db_set_feedback.html">Db.set_feedback</a>,
 
71
<a href="../api_java/db_set_flags.html">Db.set_flags</a>,
 
72
<a href="../api_java/db_set_h_ffactor.html">Db.set_h_ffactor</a>,
 
73
<a href="../api_java/db_set_h_nelem.html">Db.set_h_nelem</a>,
 
74
<a href="../api_java/db_set_lorder.html">Db.set_lorder</a>,
 
75
<a href="../api_java/db_set_pagesize.html">Db.set_pagesize</a>,
 
76
<a href="../api_java/db_set_q_extentsize.html">Db.set_q_extentsize</a>,
 
77
<a href="../api_java/db_set_re_delim.html">Db.set_re_delim</a>,
 
78
<a href="../api_java/db_set_re_len.html">Db.set_re_len</a>,
 
79
<a href="../api_java/db_set_re_pad.html">Db.set_re_pad</a>,
 
80
<a href="../api_java/db_set_re_source.html">Db.set_re_source</a>,
 
81
<a href="../api_java/db_stat.html">Db.stat</a>,
 
82
<a href="../api_java/db_sync.html">Db.sync</a>,
 
83
<a href="../api_java/db_truncate.html">Db.truncate</a>,
 
84
<a href="../api_java/db_upgrade.html">Db.upgrade</a>,
 
85
and
 
86
<a href="../api_java/db_verify.html">Db.verify</a>.
 
87
</tt>
 
88
<table width="100%"><tr><td><br></td><td align=right>
 
89
<a href="../api_java/java_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
 
90
</td></tr></table>
 
91
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
 
92
</body>
 
93
</html>