Java Doc for Cursor.java in  » JMX » je » com » sleepycat » je » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » JMX » je » com.sleepycat.je 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sleepycat.je.Cursor

All known Subclasses:   com.sleepycat.je.SecondaryCursor,
Cursor
public class Cursor (Code)
Javadoc for this public class is generated via the doc templates in the doc_src directory.


Field Summary
 CursorConfigconfig
     The CursorConfig used to configure this cursor.
 CursorImplcursorImpl
     The underlying cursor.

Constructor Summary
 Cursor(Database dbHandle, Transaction txn, CursorConfig cursorConfig)
     Creates a cursor for a given user transaction.
 Cursor(Database dbHandle, Locker locker, CursorConfig cursorConfig)
     Creates a cursor for a given locker.
 Cursor(DatabaseImpl dbImpl, Locker locker, CursorConfig cursorConfig)
     Creates a cursor for a given locker and no db handle.

The locker parameter must be non-null.

 Cursor(Cursor cursor, boolean samePosition)
     Copy constructor.

Method Summary
 booleanadvanceCursor(DatabaseEntry key, DatabaseEntry data)
    
 voidcheckEnv()
    
 voidcheckState(boolean mustBeInitialized)
     Check the environment and cursor state.
protected  voidcheckUpdatesAllowed(String operation)
    
public  voidclose()
     Javadoc for this public method is generated via the doc templates in the doc_src directory.
synchronized  voidclose(boolean releaseNonTxnLocks)
    
Parameters:
  releaseNonTxnLocks - should normally be true.
public  intcount()
     Javadoc for this public method is generated via the doc templates in the doc_src directory.
 intcountInternal(LockMode lockMode)
     Counts duplicates without parameter checking.
public  OperationStatusdelete()
     Javadoc for this public method is generated via the doc templates in the doc_src directory.
 OperationStatusdeleteInternal()
     Internal version of delete() that does no parameter checking.
 OperationStatusdeleteNoNotify()
     Clone the cursor, delete at current position, and if successful, swap cursors.
public  Cursordup(boolean samePosition)
     Javadoc for this public method is generated via the doc templates in the doc_src directory.
public  CursorConfiggetConfig()
     Javadoc for this public method is generated via the doc templates in the doc_src directory.
public  OperationStatusgetCurrent(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)
     Javadoc for this public method is generated via the doc templates in the doc_src directory.
 OperationStatusgetCurrentInternal(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)
     Returns the current key and data.
 CursorImplgetCursorImpl()
     Internal entrypoint.
public  DatabasegetDatabase()
     Javadoc for this public method is generated via the doc templates in the doc_src directory.
 DatabaseImplgetDatabaseImpl()
     Always returns non-null, while getDatabase() returns null if no handle is associated with this cursor.
public  OperationStatusgetFirst(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)
     Javadoc for this public method is generated via the doc templates in the doc_src directory.
public  OperationStatusgetLast(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)
     Javadoc for this public method is generated via the doc templates in the doc_src directory.
public  OperationStatusgetNext(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)
     Javadoc for this public method is generated via the doc templates in the doc_src directory.
public  OperationStatusgetNextDup(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)
     Javadoc for this public method is generated via the doc templates in the doc_src directory.
public  OperationStatusgetNextNoDup(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)
     Javadoc for this public method is generated via the doc templates in the doc_src directory.
public  OperationStatusgetPrev(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)
     Javadoc for this public method is generated via the doc templates in the doc_src directory.
public  OperationStatusgetPrevDup(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)
     Javadoc for this public method is generated via the doc templates in the doc_src directory.
public  OperationStatusgetPrevNoDup(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)
     Javadoc for this public method is generated via the doc templates in the doc_src directory.
public  OperationStatusgetSearchBoth(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)
     Javadoc for this public method is generated via the doc templates in the doc_src directory.
public  OperationStatusgetSearchBothRange(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)
     Javadoc for this public method is generated via the doc templates in the doc_src directory.
public  OperationStatusgetSearchKey(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)
     Javadoc for this public method is generated via the doc templates in the doc_src directory.
public  OperationStatusgetSearchKeyRange(DatabaseEntry key, DatabaseEntry data, LockMode lockMode)
     Javadoc for this public method is generated via the doc templates in the doc_src directory.
 booleanisReadUncommittedMode(LockMode lockMode)
     Returns whether the given lock mode will cause a read-uncommitted when used with this cursor, taking into account the default cursor configuration.
 OperationStatusposition(DatabaseEntry key, DatabaseEntry data, LockMode lockMode, boolean first)
     Position the cursor at the first or last record of the database.
public  OperationStatusput(DatabaseEntry key, DatabaseEntry data)
     Javadoc for this public method is generated via the doc templates in the doc_src directory.
public  OperationStatusputCurrent(DatabaseEntry data)
     Javadoc for this public method is generated via the doc templates in the doc_src directory.
 OperationStatusputInternal(DatabaseEntry key, DatabaseEntry data, PutMode putMode)
     Internal version of put() that does no parameter checking.
public  OperationStatusputNoDupData(DatabaseEntry key, DatabaseEntry data)
     Javadoc for this public method is generated via the doc templates in the doc_src directory.
 OperationStatusputNoNotify(DatabaseEntry key, DatabaseEntry data, PutMode putMode, DatabaseEntry returnOldData)
     Performs the put operation but does not notify triggers (does not perform secondary updates).
public  OperationStatusputNoOverwrite(DatabaseEntry key, DatabaseEntry data)
     Javadoc for this public method is generated via the doc templates in the doc_src directory.
 OperationStatusretrieveNext(DatabaseEntry key, DatabaseEntry data, LockMode lockMode, GetMode getMode)
     Retrieve the next or previous record.
 OperationStatussearch(DatabaseEntry key, DatabaseEntry data, LockMode lockMode, SearchMode searchMode)
     Perform search by key, data, or both.
 voidsetNonCloning(boolean nonCloning)
    
 voidtrace(Level level, String methodName, DatabaseEntry key, DatabaseEntry data, LockMode lockMode)
     Send trace messages to the java.util.logger.
 voidtrace(Level level, String methodName, LockMode lockMode)
     Send trace messages to the java.util.logger.

Field Detail
config
CursorConfig config(Code)
The CursorConfig used to configure this cursor.



cursorImpl
CursorImpl cursorImpl(Code)
The underlying cursor.




Constructor Detail
Cursor
Cursor(Database dbHandle, Transaction txn, CursorConfig cursorConfig) throws DatabaseException(Code)
Creates a cursor for a given user transaction.

If txn is null, a non-transactional cursor will be created that releases locks for the prior operation when the next operation suceeds.




Cursor
Cursor(Database dbHandle, Locker locker, CursorConfig cursorConfig) throws DatabaseException(Code)
Creates a cursor for a given locker.

If locker is null or is non-transactional, a non-transactional cursor will be created that releases locks for the prior operation when the next operation suceeds.




Cursor
Cursor(DatabaseImpl dbImpl, Locker locker, CursorConfig cursorConfig) throws DatabaseException(Code)
Creates a cursor for a given locker and no db handle.

The locker parameter must be non-null. With this constructor, we use the given locker without applying any special rules for different isolation levels -- the caller must supply the correct locker.




Cursor
Cursor(Cursor cursor, boolean samePosition) throws DatabaseException(Code)
Copy constructor.




Method Detail
advanceCursor
boolean advanceCursor(DatabaseEntry key, DatabaseEntry data)(Code)



checkEnv
void checkEnv() throws RunRecoveryException(Code)

throws:
  RunRecoveryException - if the underlying environment is invalid.



checkState
void checkState(boolean mustBeInitialized) throws DatabaseException(Code)
Check the environment and cursor state.



checkUpdatesAllowed
protected void checkUpdatesAllowed(String operation) throws DatabaseException(Code)



close
public void close() throws DatabaseException(Code)
Javadoc for this public method is generated via the doc templates in the doc_src directory.



close
synchronized void close(boolean releaseNonTxnLocks) throws DatabaseException(Code)

Parameters:
  releaseNonTxnLocks - should normally be true. SeeCursorImpl.close(boolean) [#15573]



count
public int count() throws DatabaseException(Code)
Javadoc for this public method is generated via the doc templates in the doc_src directory.



countInternal
int countInternal(LockMode lockMode) throws DatabaseException(Code)
Counts duplicates without parameter checking.



delete
public OperationStatus delete() throws DatabaseException(Code)
Javadoc for this public method is generated via the doc templates in the doc_src directory.



deleteInternal
OperationStatus deleteInternal() throws DatabaseException(Code)
Internal version of delete() that does no parameter checking. Calls deleteNoNotify() and notifies triggers (performs secondary updates).



deleteNoNotify
OperationStatus deleteNoNotify() throws DatabaseException(Code)
Clone the cursor, delete at current position, and if successful, swap cursors. Does not notify triggers (does not perform secondary updates).



dup
public Cursor dup(boolean samePosition) throws DatabaseException(Code)
Javadoc for this public method is generated via the doc templates in the doc_src directory.



getConfig
public CursorConfig getConfig()(Code)
Javadoc for this public method is generated via the doc templates in the doc_src directory.



getCurrent
public OperationStatus getCurrent(DatabaseEntry key, DatabaseEntry data, LockMode lockMode) throws DatabaseException(Code)
Javadoc for this public method is generated via the doc templates in the doc_src directory.



getCurrentInternal
OperationStatus getCurrentInternal(DatabaseEntry key, DatabaseEntry data, LockMode lockMode) throws DatabaseException(Code)
Returns the current key and data. There is no need to prevent phantoms.



getCursorImpl
CursorImpl getCursorImpl()(Code)
Internal entrypoint.



getDatabase
public Database getDatabase()(Code)
Javadoc for this public method is generated via the doc templates in the doc_src directory.



getDatabaseImpl
DatabaseImpl getDatabaseImpl()(Code)
Always returns non-null, while getDatabase() returns null if no handle is associated with this cursor.



getFirst
public OperationStatus getFirst(DatabaseEntry key, DatabaseEntry data, LockMode lockMode) throws DatabaseException(Code)
Javadoc for this public method is generated via the doc templates in the doc_src directory.



getLast
public OperationStatus getLast(DatabaseEntry key, DatabaseEntry data, LockMode lockMode) throws DatabaseException(Code)
Javadoc for this public method is generated via the doc templates in the doc_src directory.



getNext
public OperationStatus getNext(DatabaseEntry key, DatabaseEntry data, LockMode lockMode) throws DatabaseException(Code)
Javadoc for this public method is generated via the doc templates in the doc_src directory.



getNextDup
public OperationStatus getNextDup(DatabaseEntry key, DatabaseEntry data, LockMode lockMode) throws DatabaseException(Code)
Javadoc for this public method is generated via the doc templates in the doc_src directory.



getNextNoDup
public OperationStatus getNextNoDup(DatabaseEntry key, DatabaseEntry data, LockMode lockMode) throws DatabaseException(Code)
Javadoc for this public method is generated via the doc templates in the doc_src directory.



getPrev
public OperationStatus getPrev(DatabaseEntry key, DatabaseEntry data, LockMode lockMode) throws DatabaseException(Code)
Javadoc for this public method is generated via the doc templates in the doc_src directory.



getPrevDup
public OperationStatus getPrevDup(DatabaseEntry key, DatabaseEntry data, LockMode lockMode) throws DatabaseException(Code)
Javadoc for this public method is generated via the doc templates in the doc_src directory.



getPrevNoDup
public OperationStatus getPrevNoDup(DatabaseEntry key, DatabaseEntry data, LockMode lockMode) throws DatabaseException(Code)
Javadoc for this public method is generated via the doc templates in the doc_src directory.



getSearchBoth
public OperationStatus getSearchBoth(DatabaseEntry key, DatabaseEntry data, LockMode lockMode) throws DatabaseException(Code)
Javadoc for this public method is generated via the doc templates in the doc_src directory.



getSearchBothRange
public OperationStatus getSearchBothRange(DatabaseEntry key, DatabaseEntry data, LockMode lockMode) throws DatabaseException(Code)
Javadoc for this public method is generated via the doc templates in the doc_src directory.



getSearchKey
public OperationStatus getSearchKey(DatabaseEntry key, DatabaseEntry data, LockMode lockMode) throws DatabaseException(Code)
Javadoc for this public method is generated via the doc templates in the doc_src directory.



getSearchKeyRange
public OperationStatus getSearchKeyRange(DatabaseEntry key, DatabaseEntry data, LockMode lockMode) throws DatabaseException(Code)
Javadoc for this public method is generated via the doc templates in the doc_src directory.



isReadUncommittedMode
boolean isReadUncommittedMode(LockMode lockMode)(Code)
Returns whether the given lock mode will cause a read-uncommitted when used with this cursor, taking into account the default cursor configuration.



position
OperationStatus position(DatabaseEntry key, DatabaseEntry data, LockMode lockMode, boolean first) throws DatabaseException(Code)
Position the cursor at the first or last record of the database. Prevents phantoms.



put
public OperationStatus put(DatabaseEntry key, DatabaseEntry data) throws DatabaseException(Code)
Javadoc for this public method is generated via the doc templates in the doc_src directory.



putCurrent
public OperationStatus putCurrent(DatabaseEntry data) throws DatabaseException(Code)
Javadoc for this public method is generated via the doc templates in the doc_src directory.



putInternal
OperationStatus putInternal(DatabaseEntry key, DatabaseEntry data, PutMode putMode) throws DatabaseException(Code)
Internal version of put() that does no parameter checking. Calls putNoNotify() and notifies triggers (performs secondary updates). Prevents phantoms.



putNoDupData
public OperationStatus putNoDupData(DatabaseEntry key, DatabaseEntry data) throws DatabaseException(Code)
Javadoc for this public method is generated via the doc templates in the doc_src directory.



putNoNotify
OperationStatus putNoNotify(DatabaseEntry key, DatabaseEntry data, PutMode putMode, DatabaseEntry returnOldData) throws DatabaseException(Code)
Performs the put operation but does not notify triggers (does not perform secondary updates). Prevents phantoms.



putNoOverwrite
public OperationStatus putNoOverwrite(DatabaseEntry key, DatabaseEntry data) throws DatabaseException(Code)
Javadoc for this public method is generated via the doc templates in the doc_src directory.



retrieveNext
OperationStatus retrieveNext(DatabaseEntry key, DatabaseEntry data, LockMode lockMode, GetMode getMode) throws DatabaseException(Code)
Retrieve the next or previous record. Prevents phantoms.



search
OperationStatus search(DatabaseEntry key, DatabaseEntry data, LockMode lockMode, SearchMode searchMode) throws DatabaseException(Code)
Perform search by key, data, or both. Prevents phantoms.



setNonCloning
void setNonCloning(boolean nonCloning)(Code)



trace
void trace(Level level, String methodName, DatabaseEntry key, DatabaseEntry data, LockMode lockMode)(Code)
Send trace messages to the java.util.logger. Don't rely on the logger alone to conditionalize whether we send this message, we don't even want to construct the message if the level is not enabled.



trace
void trace(Level level, String methodName, LockMode lockMode)(Code)
Send trace messages to the java.util.logger. Don't rely on the logger alone to conditionalize whether we send this message, we don't even want to construct the message if the level is not enabled.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.