Java Doc for ResultSetBuffer.java in  » Database-Client » QueryForm » org » glasser » sql » 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 » Database Client » QueryForm » org.glasser.sql 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.util.Vector
   org.glasser.sql.ResultSetBuffer

ResultSetBuffer
public class ResultSetBuffer extends Vector (Code)


Field Summary
final protected static  intDEFAULT_READAHEAD
    
protected  Class[]columnClasses
    
protected  intcolumnCount
    
protected  String[]columnNames
    
protected  int[]columnTypes
    
protected  MutableListComparatorcomparator
    
protected  Connectionconn
    
protected  intcursor
    
public static  booleandebug
    
protected  booleandescendingSort
     This indicates whether the last sort applied to the buffer was in descending order or not.
protected  booleanendOfResultsReached
    
protected  SmartEventListenerListlisteners
    
protected  String[]nonDisplayableColumnStrings
    
protected  intreadAhead
    
protected  booleanreadAheadEnabled
    
protected  ResultSetresultSet
    
protected  intsortColumn
     This is the index of the last column on which the buffer was sorted.

Constructor Summary
public  ResultSetBuffer(Column[] columns, Class[] columnClasses)
     Constructs an empty ResultSetBuffer.
public  ResultSetBuffer(Column[] columns)
     Constructs an empty ResultSetBuffer.
public  ResultSetBuffer(ResultSet rs, int readAhead)
    
public  ResultSetBuffer(ResultSet rs)
    

Method Summary
public  voidaddResultSetBufferListener(ResultSetBufferListener listener)
    
public  ObjectelementAt(int index)
    
public  Objectget(int index)
    
public  Class[]getColumnClasses()
    
public  String[]getColumnNames()
    
public  VectorgetCurrentRow()
    
public  VectorgetCurrentRowClone()
    
public  Vector[]getCurrentRowset()
    
public  intgetCursor()
    
public  VectorgetFirstRow()
    
public  VectorgetNextRow()
    
public  VectorgetPreviousRow()
    
public  VectorgetRowAt(int row)
    
public  booleanisAtBeginning()
    
public  booleanisAtEnd()
    
public  booleanisEndOfResultsReached()
    
public  booleanisReadAheadEnabled()
    
public synchronized  booleanmaybeSetCursor(int value)
     This method can be called with values that are greater than the current number of records in the buffer.
final protected  VectorreadRow(ResultSet rs)
    
public  voidremoveCurrentRow()
     Removes the row at the cursor and repositions the cursor if necessary.
public  voidremoveResultSetBufferListener(ResultSetBufferListener listener)
    
public  voidreplaceCurrentRow(ResultSet rs)
    
public  voidsetCursor(int value)
    
public  voidsetReadAheadEnabled(boolean b)
    
public  voidsort(int columnIndex, boolean sortDescending)
    
public  booleansort(int columnIndex)
     Sorts the buffer on the indicated column, and returns true if the sort was in descending order, or false if it was in ascending order.

Field Detail
DEFAULT_READAHEAD
final protected static int DEFAULT_READAHEAD(Code)



columnClasses
protected Class[] columnClasses(Code)



columnCount
protected int columnCount(Code)



columnNames
protected String[] columnNames(Code)



columnTypes
protected int[] columnTypes(Code)



comparator
protected MutableListComparator comparator(Code)



conn
protected Connection conn(Code)



cursor
protected int cursor(Code)



debug
public static boolean debug(Code)



descendingSort
protected boolean descendingSort(Code)
This indicates whether the last sort applied to the buffer was in descending order or not.



endOfResultsReached
protected boolean endOfResultsReached(Code)



listeners
protected SmartEventListenerList listeners(Code)



nonDisplayableColumnStrings
protected String[] nonDisplayableColumnStrings(Code)



readAhead
protected int readAhead(Code)



readAheadEnabled
protected boolean readAheadEnabled(Code)



resultSet
protected ResultSet resultSet(Code)



sortColumn
protected int sortColumn(Code)
This is the index of the last column on which the buffer was sorted. Its value is -1 if the buffer has not yet been sorted.




Constructor Detail
ResultSetBuffer
public ResultSetBuffer(Column[] columns, Class[] columnClasses)(Code)
Constructs an empty ResultSetBuffer.



ResultSetBuffer
public ResultSetBuffer(Column[] columns)(Code)
Constructs an empty ResultSetBuffer.



ResultSetBuffer
public ResultSetBuffer(ResultSet rs, int readAhead) throws SQLException(Code)



ResultSetBuffer
public ResultSetBuffer(ResultSet rs) throws SQLException(Code)




Method Detail
addResultSetBufferListener
public void addResultSetBufferListener(ResultSetBufferListener listener)(Code)



elementAt
public Object elementAt(int index)(Code)



get
public Object get(int index)(Code)



getColumnClasses
public Class[] getColumnClasses()(Code)



getColumnNames
public String[] getColumnNames()(Code)



getCurrentRow
public Vector getCurrentRow()(Code)



getCurrentRowClone
public Vector getCurrentRowClone()(Code)



getCurrentRowset
public Vector[] getCurrentRowset()(Code)



getCursor
public int getCursor()(Code)



getFirstRow
public Vector getFirstRow()(Code)



getNextRow
public Vector getNextRow()(Code)



getPreviousRow
public Vector getPreviousRow()(Code)



getRowAt
public Vector getRowAt(int row)(Code)



isAtBeginning
public boolean isAtBeginning()(Code)



isAtEnd
public boolean isAtEnd()(Code)



isEndOfResultsReached
public boolean isEndOfResultsReached()(Code)



isReadAheadEnabled
public boolean isReadAheadEnabled()(Code)



maybeSetCursor
public synchronized boolean maybeSetCursor(int value)(Code)
This method can be called with values that are greater than the current number of records in the buffer. If the value is out of range, it will attempt to read in enough records from the ResultSet so that the cursor can be set to the new value. If it is successful, true is returned, if not, false is returned.



readRow
final protected Vector readRow(ResultSet rs) throws SQLException(Code)



removeCurrentRow
public void removeCurrentRow() throws SQLException(Code)
Removes the row at the cursor and repositions the cursor if necessary. If the buffer is empty after the remove, the cursor is set at -1.



removeResultSetBufferListener
public void removeResultSetBufferListener(ResultSetBufferListener listener)(Code)



replaceCurrentRow
public void replaceCurrentRow(ResultSet rs) throws SQLException(Code)



setCursor
public void setCursor(int value)(Code)



setReadAheadEnabled
public void setReadAheadEnabled(boolean b)(Code)



sort
public void sort(int columnIndex, boolean sortDescending)(Code)



sort
public boolean sort(int columnIndex)(Code)
Sorts the buffer on the indicated column, and returns true if the sort was in descending order, or false if it was in ascending order. The order will usually be ascending, unless the same column is sorted multiple times consecutively, in which case the sort order is reversed each time.



Fields inherited from java.util.Vector
protected int capacityIncrement(Code)(Java Doc)
protected int elementCount(Code)(Java Doc)
protected Object[] elementData(Code)(Java Doc)

Methods inherited from java.util.Vector
public synchronized boolean add(E e)(Code)(Java Doc)
public void add(int index, E element)(Code)(Java Doc)
public synchronized boolean addAll(Collection<? extends E> c)(Code)(Java Doc)
public synchronized boolean addAll(int index, Collection<? extends E> c)(Code)(Java Doc)
public synchronized void addElement(E obj)(Code)(Java Doc)
public synchronized int capacity()(Code)(Java Doc)
public void clear()(Code)(Java Doc)
public synchronized Object clone()(Code)(Java Doc)
public boolean contains(Object o)(Code)(Java Doc)
public synchronized boolean containsAll(Collection c)(Code)(Java Doc)
public synchronized void copyInto(Object[] anArray)(Code)(Java Doc)
public synchronized E elementAt(int index)(Code)(Java Doc)
public Enumeration<E> elements()(Code)(Java Doc)
public synchronized void ensureCapacity(int minCapacity)(Code)(Java Doc)
public synchronized boolean equals(Object o)(Code)(Java Doc)
public synchronized E firstElement()(Code)(Java Doc)
public synchronized E get(int index)(Code)(Java Doc)
public synchronized int hashCode()(Code)(Java Doc)
public int indexOf(Object o)(Code)(Java Doc)
public synchronized int indexOf(Object o, int index)(Code)(Java Doc)
public synchronized void insertElementAt(E obj, int index)(Code)(Java Doc)
public synchronized boolean isEmpty()(Code)(Java Doc)
public synchronized Iterator<E> iterator()(Code)(Java Doc)
public synchronized E lastElement()(Code)(Java Doc)
public synchronized int lastIndexOf(Object o)(Code)(Java Doc)
public synchronized int lastIndexOf(Object o, int index)(Code)(Java Doc)
public synchronized ListIterator<E> listIterator(int index)(Code)(Java Doc)
public synchronized ListIterator<E> listIterator()(Code)(Java Doc)
public boolean remove(Object o)(Code)(Java Doc)
public synchronized E remove(int index)(Code)(Java Doc)
public synchronized boolean removeAll(Collection c)(Code)(Java Doc)
public synchronized void removeAllElements()(Code)(Java Doc)
public synchronized boolean removeElement(Object obj)(Code)(Java Doc)
public synchronized void removeElementAt(int index)(Code)(Java Doc)
protected synchronized void removeRange(int fromIndex, int toIndex)(Code)(Java Doc)
public synchronized boolean retainAll(Collection c)(Code)(Java Doc)
public synchronized E set(int index, E element)(Code)(Java Doc)
public synchronized void setElementAt(E obj, int index)(Code)(Java Doc)
public synchronized void setSize(int newSize)(Code)(Java Doc)
public synchronized int size()(Code)(Java Doc)
public synchronized List<E> subList(int fromIndex, int toIndex)(Code)(Java Doc)
public synchronized Object[] toArray()(Code)(Java Doc)
public synchronized T[] toArray(T[] a)(Code)(Java Doc)
public synchronized String toString()(Code)(Java Doc)
public synchronized void trimToSize()(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.