Java Doc for JdbcState.java in  » Testing » PolePosition-0.20 » com » versant » core » jdbc » 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 » Testing » PolePosition 0.20 » com.versant.core.jdbc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.versant.core.jdbc.JdbcState

All known Subclasses:   com.versant.core.jdbc.JdbcGenericState,
JdbcState
public interface JdbcState (Code)
State's used by the JdbcStorageManager must implement this.




Method Summary
public  voidcopyPass1Fields(ResultSet rs, FetchGroup fetchGroup, int firstCol)
     Populate this State from the given ResultSet.
public  voidcopyPass1Fields(ResultSet rs, JdbcField[] fields)
    
public  booleanhasSameNullFields(State state, State mask)
     Does this State contain exactly the same null fields as the supplied State? A null field is a field that is filled in mask but that is null or not filled in this state.
public  intsetOptimisticLockingParams(PreparedStatement ps, int firstParam)
     Set parameters on a PrepareStatement from the optimistic locking field for the class for this State.
public  voidsetOracleStyleLOBs(ResultSet rs, int[] stateFieldNos, int numFieldNos, int firstCol)
     Call the set(rs,...) method on each of the converters for the first numFieldNos entries in stateFieldNos.
public  intsetParams(PreparedStatement ps, int[] fieldNos, int firstFieldNo, int lastFieldNo, int firstParam, PersistGraph pGraph, int tableNo)
     Set parameters on a PrepareStatement from this State.
public  intsetParamsChangedAndNotNull(PreparedStatement ps, int[] fieldNos, int firstFieldNo, int lastFieldNo, int firstParam, PersistGraph pGraph, int tableNo)
     Set parameters on a PrepareStatement from this State for fields that are not null and that are included when doing changed optimistic locking. The firstParam parameter specifies the column index of the first parameter.



Method Detail
copyPass1Fields
public void copyPass1Fields(ResultSet rs, FetchGroup fetchGroup, int firstCol) throws SQLException(Code)
Populate this State from the given ResultSet. The firstCol parameter specifies the column index of the first column to read from rs. All persistent pass 1 fields in the fetch group must be read in order.



copyPass1Fields
public void copyPass1Fields(ResultSet rs, JdbcField[] fields)(Code)



hasSameNullFields
public boolean hasSameNullFields(State state, State mask)(Code)
Does this State contain exactly the same null fields as the supplied State? A null field is a field that is filled in mask but that is null or not filled in this state. This must always return true for classes that do not use changed optimistic locking or that are not stored by the JdbcDataStore.
Parameters:
  state - State to compare to (will be for same class)
Parameters:
  mask - State providing the filled states to check



setOptimisticLockingParams
public int setOptimisticLockingParams(PreparedStatement ps, int firstParam) throws SQLException(Code)
Set parameters on a PrepareStatement from the optimistic locking field for the class for this State. The firstParam parameter specifies the column index of the first parameter to set. the index of the last param set + 1
throws:
  javax.jdo.JDOFatalInternalException - if there is no such field
See Also:   com.versant.core.jdbc.metadata.JdbcClass.optimisticLockingField



setOracleStyleLOBs
public void setOracleStyleLOBs(ResultSet rs, int[] stateFieldNos, int numFieldNos, int firstCol) throws SQLException(Code)
Call the set(rs,...) method on each of the converters for the first numFieldNos entries in stateFieldNos. This is used to handle Oracle style LOB columns.
Parameters:
  firstCol - The first column in rs to use
See Also:   com.versant.core.jdbc.JdbcConverter.set



setParams
public int setParams(PreparedStatement ps, int[] fieldNos, int firstFieldNo, int lastFieldNo, int firstParam, PersistGraph pGraph, int tableNo) throws SQLException(Code)
Set parameters on a PrepareStatement from this State. The firstParam parameter specifies the column index of the first parameter to set. Entries in fieldNos that are less than 0 should be skipped.
Parameters:
  firstFieldNo - The index of the first field to set
Parameters:
  lastFieldNo - The index of the last field to set + 1
Parameters:
  tableNo - Set fields with table == jdbcClass.allTables[tableNo] the index of the last param set + 1



setParamsChangedAndNotNull
public int setParamsChangedAndNotNull(PreparedStatement ps, int[] fieldNos, int firstFieldNo, int lastFieldNo, int firstParam, PersistGraph pGraph, int tableNo) throws SQLException(Code)
Set parameters on a PrepareStatement from this State for fields that are not null and that are included when doing changed optimistic locking. The firstParam parameter specifies the column index of the first parameter. This will not be called for classes that are not stored by the JdbcDataStore or that do not use changed optimistic locking. Entries in fieldNos that are less than 0 should be skipped.
Parameters:
  firstFieldNo - The index of the first field to set
Parameters:
  lastFieldNo - The index of the last field to set + 1
Parameters:
  tableNo - the index of the last param set + 1



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