<!--$Id: log_compare.so,v 10.14 2002/08/18 21:16:40 bostic Exp $--> <!--Copyright 1997-2002 by Sleepycat Software, Inc.--> <!--All rights reserved.--> <!--See the file LICENSE for redistribution information.--> <html> <head> <title>Berkeley DB: DbEnv.log_compare</title> <meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> <meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"> </head> <body bgcolor=white> <a name="2"><!--meow--></a> <table width="100%"><tr valign=top> <td> <h1>DbEnv.log_compare</h1> </td> <td align=right> <a href="../../db4-devel-4.1.25/api_java/c_index.html"><img src="../../db4-4.1.25/images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../../db4-4.1.25/images/ref.gif" alt="Ref"></a> </td></tr></table> <hr size=1 noshade> <tt> <h3><pre> import com.sleepycat.db.*; <p> public static int log_compare(DbLsn lsn0, DbLsn lsn1); </pre></h3> <h1>Description</h1> <p>The DbEnv.log_compare method allows the caller to compare two <a href="../../db4-devel-4.1.25/api_java/lsn_class.html">DbLsn</a> objects, returning 0 if they are equal, 1 if <b>lsn0</b> is greater than <b>lsn1</b>, and -1 if <b>lsn0</b> is less than <b>lsn1</b>. <h1>Class</h1> <a href="../../db4-devel-4.1.25/api_java/env_class.html">DbEnv</a>, <a href="../../db4-devel-4.1.25/api_java/logc_class.html">DbLogc</a>, <a href="../../db4-devel-4.1.25/api_java/lsn_class.html">DbLsn</a> <h1>See Also</h1> <a href="../../db4-devel-4.1.25/api_java/log_list.html">Logging Subsystem and Related Methods</a> </tt> <table width="100%"><tr><td><br></td><td align=right> <a href="../../db4-devel-4.1.25/api_java/c_index.html"><img src="../../db4-4.1.25/images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../../db4-4.1.25/images/ref.gif" alt="Ref"></a> </td></tr></table> <p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font> </body> </html>