Java Doc for DatabaseRowModel.java in  » XML-UI » XUI » net » xoetrope » optional » data » 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 » XML UI » XUI » net.xoetrope.optional.data.sql 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.xoetrope.xui.data.XModel
      net.xoetrope.optional.data.sql.DatabaseRowModel

DatabaseRowModel
public class DatabaseRowModel extends XModel (Code)

Provides a model for table rows. The attributes are equivalent to the row fields. The row will have no children. As a Java object the fields and rows indices are zero based in contrast to the JDBC indexing setup.

Copyright (c) Xoetrope Ltd. 2001-2003

$Revision: 1.1 $


Field Summary
protected  introwIdx
    
protected  DatabaseTableModelxtable
    

Constructor Summary
public  DatabaseRowModel()
    
public  DatabaseRowModel(DatabaseTableModel table, int row)
    

Method Summary
public  voidappend(XModel newObject)
    
public  Objectappend(String id)
    
public  Objectget(String attribName)
    
public  XModelget(int i)
    
public  Objectget()
    
public  StringgetAttribName(int i)
    
public  ObjectgetAttribValue(int i)
    
public  doublegetAttribValueAsDouble(int i)
    
public  intgetAttribValueAsInt(int i)
    
public  StringgetAttribValueAsString(int i)
    
public  intgetAttribute(String attribName)
    
public  doublegetDouble(String attribName)
    
public  StringgetFieldValue(int fieldIdx)
    
public  StringgetId()
    
public  intgetInt(String attribName)
    
public  intgetNumChildren()
    
public  StringgetString(String attribName)
    
public  DatabaseTableModelgetTable()
    
public  StringgetTagName()
     Gets the model element tag name, e.g.
public  StringgetValue()
    
public  XModelgetValue(int i)
    
public  doublegetValueAsDouble(String elementName)
    
public  intgetValueAsInt(String elementName)
    
public  StringgetValueAsString(String elementName)
     Gets the value attribute of the specified node as a string.
public  inthashCode()
    
public  voidremove(XModel node)
    
public  voidset(String attribName, Object newObject)
    
public  voidset(Object s)
    
public  voidsetAttribValue(int i, Object value)
    
public  voidsetAttribValue(int i, String attribName, Object value)
    
public  voidsetFieldValue(int colIdx, String newValue)
    
public  voidsetRowReference(DatabaseTableModel table, int row)
    

Field Detail
rowIdx
protected int rowIdx(Code)



xtable
protected DatabaseTableModel xtable(Code)




Constructor Detail
DatabaseRowModel
public DatabaseRowModel()(Code)
Default constructor, no table or row is referenced



DatabaseRowModel
public DatabaseRowModel(DatabaseTableModel table, int row)(Code)
Construct a model node for a table
Parameters:
  table - the table to reference
Parameters:
  row - the row to reference




Method Detail
append
public void append(XModel newObject)(Code)
Append a node
Parameters:
  childNode - the child node



append
public Object append(String id)(Code)



get
public Object get(String attribName)(Code)
Get a field value
Parameters:
  attribName - the field name



get
public XModel get(int i)(Code)



get
public Object get()(Code)



getAttribName
public String getAttribName(int i)(Code)



getAttribValue
public Object getAttribValue(int i)(Code)
Get the value of an attribute
Parameters:
  i -



getAttribValueAsDouble
public double getAttribValueAsDouble(int i)(Code)

Parameters:
  i - The index of the attributeValues array whose value we want The double value of the attributeValues array at position i



getAttribValueAsInt
public int getAttribValueAsInt(int i)(Code)

Parameters:
  i - The index of the attributeValues array whose value we want The int value of the attributeValues array at position i



getAttribValueAsString
public String getAttribValueAsString(int i)(Code)



getAttribute
public int getAttribute(String attribName)(Code)



getDouble
public double getDouble(String attribName)(Code)
Get a field value as an double
Parameters:
  attribName - the fieldName the value



getFieldValue
public String getFieldValue(int fieldIdx)(Code)
Gets an individual field value
Parameters:
  fieldIdx - the field index the value



getId
public String getId()(Code)
Get the ID of this row



getInt
public int getInt(String attribName)(Code)
Get a field value as an int
Parameters:
  attribName - the fieldName the value



getNumChildren
public int getNumChildren()(Code)
Gets the number of fields for this row the number of fields



getString
public String getString(String attribName)(Code)
Get a field value as an String
Parameters:
  attribName - the fieldName the value



getTable
public DatabaseTableModel getTable()(Code)
Get the referenced table



getTagName
public String getTagName()(Code)
Gets the model element tag name, e.g. 'Component' from the XML fragment



getValue
public String getValue()(Code)
Get the value of the first field in this row



getValue
public XModel getValue(int i)(Code)
Get the value of a field as a model node
Parameters:
  i - the field index the new field model node



getValueAsDouble
public double getValueAsDouble(String elementName)(Code)
Get a field as a double value
Parameters:
  elementName - the field name



getValueAsInt
public int getValueAsInt(String elementName)(Code)



getValueAsString
public String getValueAsString(String elementName)(Code)
Gets the value attribute of the specified node as a string.
Parameters:
  elementName - the value as a string



hashCode
public int hashCode()(Code)
Get the hashcode for this row the row id



remove
public void remove(XModel node)(Code)
Remove a node
Parameters:
  childnode - node to be removed



set
public void set(String attribName, Object newObject)(Code)



set
public void set(Object s)(Code)



setAttribValue
public void setAttribValue(int i, Object value)(Code)



setAttribValue
public void setAttribValue(int i, String attribName, Object value)(Code)



setFieldValue
public void setFieldValue(int colIdx, String newValue)(Code)
Set the value of a field
Parameters:
  colIdx - the field index
Parameters:
  newValue - the new field value



setRowReference
public void setRowReference(DatabaseTableModel table, int row)(Code)
Set the row to reference
Parameters:
  table - the table to reference
Parameters:
  row - the row to reference



Fields inherited from net.xoetrope.xui.data.XModel
protected String tagName(Code)(Java Doc)

Methods inherited from net.xoetrope.xui.data.XModel
public void addModelListener(XModelListener listener, String name)(Code)(Java Doc)
abstract public void append(XModel childNode)(Code)(Java Doc)
abstract public Object append(String elementName)(Code)(Java Doc)
public void clear()(Code)(Java Doc)
public void fireModelUpdated()(Code)(Java Doc)
public Object get(String element)(Code)(Java Doc)
abstract public XModel get(int i)(Code)(Java Doc)
abstract public Object get()(Code)(Java Doc)
abstract public String getAttribName(int i)(Code)(Java Doc)
abstract public Object getAttribValue(int i)(Code)(Java Doc)
abstract public double getAttribValueAsDouble(int i)(Code)(Java Doc)
abstract public int getAttribValueAsInt(int i)(Code)(Java Doc)
abstract public String getAttribValueAsString(int i)(Code)(Java Doc)
abstract public int getAttribute(String attribName)(Code)(Java Doc)
abstract public String getId()(Code)(Java Doc)
public static XModel getInstance()(Code)(Java Doc)
public int getNumAttributes()(Code)(Java Doc)
public int getNumChildren()(Code)(Java Doc)
public String getTagName()(Code)(Java Doc)
abstract public double getValueAsDouble(String elementName)(Code)(Java Doc)
abstract public int getValueAsInt(String elementName)(Code)(Java Doc)
abstract public String getValueAsString(String elementName)(Code)(Java Doc)
public boolean hasAutoId()(Code)(Java Doc)
public void hasAutoId(boolean b)(Code)(Java Doc)
abstract public int hashCode()(Code)(Java Doc)
public static String prefixOutputPath(String path)(Code)(Java Doc)
public void removeChildren()(Code)(Java Doc)
public XModel reset()(Code)(Java Doc)
public void resetAttributes()(Code)(Java Doc)
abstract public void set(String attribName, Object newObject)(Code)(Java Doc)
abstract public void set(Object s)(Code)(Java Doc)
abstract public void setAttribValue(int i, Object value)(Code)(Java Doc)
abstract public void setAttribValue(int i, String attribName, Object value)(Code)(Java Doc)
public void setId(String newId)(Code)(Java Doc)
public void setNumAttributes(int num)(Code)(Java Doc)
public void setNumChildren(int num)(Code)(Java Doc)
public void setTagName(String name)(Code)(Java Doc)

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.