Java Doc for Row.java in  » Database-DBMS » hsql » org » hsqldb » 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 DBMS » hsql » org.hsqldb 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.hsqldb.Row

All known Subclasses:   org.hsqldb.CachedRow,
Row
public class Row implements CachedObject(Code)
Base class for a database row object implementing rows for memory resident tables.

Subclass CachedRow implements rows for CACHED and TEXT tables
author:
   Thomas Mueller (Hypersonic SQL Group)
version:
   1.8.0
since:
   Hypersonic SQL



Field Summary
 intiPos
    
protected  NodenPrimaryNode
    
protected  Object[]oData
    
 inttableId
    

Constructor Summary
protected  Row()
     Default constructor used only in subclasses.
 Row(Table t, Object[] o)
     Constructor for MEMORY table Row.

Method Summary
 voidclearNodeLinks()
    
 voiddelete()
     Is used only when the database row is deleted, not when it is freed from the Cache.
public  booleanequals(Object obj)
     Lifetime scope of this method depends on the operations performed on any cached tables since this row or the parameter were constructed. If only deletes or only inserts have been performed, this method remains valid.
public  Object[]getData()
     Returns the array of fields in the database row.
public  longgetId()
    
public static  longgetId(Table table, int pos)
    
 NodegetNextNode(Node n)
     Returns the Node for the next Index on this database row, given the Node for any Index.
 NodegetNode(int index)
     Returns the Node for a given Index, using the ordinal position of the Index within the Table Object.
public  intgetPos()
    
public  intgetRealSize(RowOutputInterface out)
    
public  intgetStorageSize()
    
 RowgetUpdatedRow()
     Returns the Row Object that currently represents the same database row. In current implementations of Row, this is always the same as the this Object for MEMORY tables, but could be a different Object for CachedRow or CachedDataRow implementation.
public  booleanhasChanged()
    
public  inthashCode()
    
 booleanisCascadeDeleted()
    
public  booleanisInMemory()
    
public  booleanisKeepInMemory()
    
public  voidkeepInMemory(boolean keep)
    
public  voidsetInMemory(boolean in)
    
public  voidsetPos(int pos)
    
public  voidsetStorageSize(int size)
    
public  voidwrite(RowOutputInterface out)
    
public  voidwrite(RowOutputInterface out, IntLookup lookup)
    

Field Detail
iPos
int iPos(Code)



nPrimaryNode
protected Node nPrimaryNode(Code)



oData
protected Object[] oData(Code)



tableId
int tableId(Code)




Constructor Detail
Row
protected Row()(Code)
Default constructor used only in subclasses.



Row
Row(Table t, Object[] o) throws HsqlException(Code)
Constructor for MEMORY table Row. The result is a Row with Nodes that are not yet linked with other Nodes in the AVL indexes.




Method Detail
clearNodeLinks
void clearNodeLinks()(Code)



delete
void delete() throws HsqlException(Code)
Is used only when the database row is deleted, not when it is freed from the Cache.



equals
public boolean equals(Object obj)(Code)
Lifetime scope of this method depends on the operations performed on any cached tables since this row or the parameter were constructed. If only deletes or only inserts have been performed, this method remains valid. Otherwise it can return invalid results.
Parameters:
  obj - row to compare boolean



getData
public Object[] getData()(Code)
Returns the array of fields in the database row.



getId
public long getId()(Code)



getId
public static long getId(Table table, int pos)(Code)



getNextNode
Node getNextNode(Node n)(Code)
Returns the Node for the next Index on this database row, given the Node for any Index.



getNode
Node getNode(int index)(Code)
Returns the Node for a given Index, using the ordinal position of the Index within the Table Object.



getPos
public int getPos()(Code)



getRealSize
public int getRealSize(RowOutputInterface out)(Code)



getStorageSize
public int getStorageSize()(Code)



getUpdatedRow
Row getUpdatedRow() throws HsqlException(Code)
Returns the Row Object that currently represents the same database row. In current implementations of Row, this is always the same as the this Object for MEMORY tables, but could be a different Object for CachedRow or CachedDataRow implementation. For example the Row Object that represents a given database row can be freed from the Cache when other rows need to be loaded into the Cache. getUpdatedRow() returns a currently valid Row object that is in the Cache.



hasChanged
public boolean hasChanged()(Code)



hashCode
public int hashCode()(Code)
Hash code is valid only until a modification to the cache file position of row



isCascadeDeleted
boolean isCascadeDeleted()(Code)



isInMemory
public boolean isInMemory()(Code)



isKeepInMemory
public boolean isKeepInMemory()(Code)



keepInMemory
public void keepInMemory(boolean keep)(Code)



setInMemory
public void setInMemory(boolean in)(Code)



setPos
public void setPos(int pos)(Code)



setStorageSize
public void setStorageSize(int size)(Code)



write
public void write(RowOutputInterface out)(Code)



write
public void write(RowOutputInterface out, IntLookup lookup)(Code)



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.