Java Doc for DSDataSourceJDBC.java in  » J2EE » Sofia » com » salmonllc » 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 » J2EE » Sofia » com.salmonllc.sql 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.salmonllc.sql.DSDataSourceJDBC

All known Subclasses:   com.salmonllc.sql.DSDataSourceFireBird,  com.salmonllc.sql.DSDataSourceSybase,  com.salmonllc.sql.DSDataSourcePostGres,  com.salmonllc.sql.DSDataSourceANSISQL92,  com.salmonllc.sql.DSDataSourceIngres,  com.salmonllc.sql.DSDataSourceDB2MVS,  com.salmonllc.sql.DSDataSourceDB2400,  com.salmonllc.sql.DSDataSourceDB2,  com.salmonllc.sql.DSDataSourceDB2VSE,  com.salmonllc.sql.DSDataSourceOracle,  com.salmonllc.sql.DSDataSourceMySql,
DSDataSourceJDBC
abstract class DSDataSourceJDBC implements DataSourceIn,DataSourceOut,Serializable(Code)
This type was created in VisualAge.


Field Summary
final public static  intSEL_GEN_PREP_STMT
    
final public static  intSEL_GEN_PROC
    
final public static  intSEL_GEN_SELECT
    
final public static  intSEL_PREP_STMT
    
final public static  intSEL_STATIC
    
protected  int_autoIncrementCol
    
protected  SimpleDateFormat_dateTimeFormat
    
protected  boolean_fixDashes
    
protected  StoredProcedureParms_parms
    
protected  ResultSet_res
    
protected  int_selType
    
protected  String_sql_proc
    
protected  StringBuffer_sqlb
    
protected  Statement_st
    
protected  String_tables
    

Constructor Summary
public  DSDataSourceJDBC()
     DSSQLDataSource constructor comment.

Method Summary
public  voidcancel()
     This method was created in VisualAge.
public  booleandeleteRow(DataStore ds, DataStoreRow row, DBConnection conn)
     deleteRow method comment.
public  StringexportAsSQL(DataStore ds, DBConnection conn, String separator)
     This method takes the SQL INSERT statements that would have been generated to add these rows to the database, and, rather than executing them, returns them as a string that can be written to a SQL script file.
public  StringfixCRLF(String s, String concatOperator)
    
protected  StringfixDashes(String source)
    
static  StringformatDateTime(Timestamp t, SimpleDateFormat f, DBConnection conn)
    
protected  StringgeneratePrepStmt(DBConnection conn, DataStore ds)
    
public  StringgenerateProc(DBConnection conn, DataStore ds)
    
abstract public  StringgenerateSelect(DataStore ds, String criteria, boolean countOnly)
    
 SimpleDateFormatgetDateTimeFormat()
    
public  ResultSetMetaDatagetMetaData()
     This method was created in VisualAge.
public  StringgetSelect()
     This method was created in VisualAge.
public  booleaninsertRow(DataStore ds, DataStoreRow row, DBConnection conn)
     insertRow method comment.
protected  voidpopulateAutoIncrementValue(DataStoreRow row, DBConnection conn, int colNo)
     Called by SOFIA to find an auto-generated Primary Key after it does an Insert.
public  voidpostRetrieve(DataStore ds)
     postRetrieve method comment.
public  voidpostUpdate(DataStore ds, DBConnection conn, boolean handleTrans, boolean updateSuccessful)
     postUpdate method comment.
public  booleanpreRetrieve(DataStore ds, String criteria, boolean countOnly, DBConnection conn)
     preRetrieve method comment.
public  booleanpreUpdate(DataStore ds, DBConnection conn, boolean handleTrans)
     preUpdate method comment.
static  voidprepareForType(DataStore ds, PreparedStatement pst, Object data, int type, int pos)
     This method was created in VisualAge.
public  booleanretrieveRow(DataStore ds, DataStoreRow row)
     retrieveRow method comment.
 voidsetParms(StoredProcedureParms p)
    
public  voidsetProc(String proc, StoredProcedureParms p)
    
 voidsetSelType(int iSelType)
    
public  voidsetSelect(String sel)
    
public  booleanupdateRow(DataStore ds, DataStoreRow row, DBConnection conn)
    

Field Detail
SEL_GEN_PREP_STMT
final public static int SEL_GEN_PREP_STMT(Code)



SEL_GEN_PROC
final public static int SEL_GEN_PROC(Code)



SEL_GEN_SELECT
final public static int SEL_GEN_SELECT(Code)



SEL_PREP_STMT
final public static int SEL_PREP_STMT(Code)



SEL_STATIC
final public static int SEL_STATIC(Code)



_autoIncrementCol
protected int _autoIncrementCol(Code)



_dateTimeFormat
protected SimpleDateFormat _dateTimeFormat(Code)



_fixDashes
protected boolean _fixDashes(Code)



_parms
protected StoredProcedureParms _parms(Code)



_res
protected ResultSet _res(Code)



_selType
protected int _selType(Code)



_sql_proc
protected String _sql_proc(Code)



_sqlb
protected StringBuffer _sqlb(Code)



_st
protected Statement _st(Code)



_tables
protected String _tables(Code)




Constructor Detail
DSDataSourceJDBC
public DSDataSourceJDBC()(Code)
DSSQLDataSource constructor comment.




Method Detail
cancel
public void cancel() throws Exception(Code)
This method was created in VisualAge.



deleteRow
public boolean deleteRow(DataStore ds, DataStoreRow row, DBConnection conn) throws Exception(Code)
deleteRow method comment.



exportAsSQL
public String exportAsSQL(DataStore ds, DBConnection conn, String separator)(Code)
This method takes the SQL INSERT statements that would have been generated to add these rows to the database, and, rather than executing them, returns them as a string that can be written to a SQL script file.



fixCRLF
public String fixCRLF(String s, String concatOperator)(Code)



fixDashes
protected String fixDashes(String source)(Code)



formatDateTime
static String formatDateTime(Timestamp t, SimpleDateFormat f, DBConnection conn)(Code)



generatePrepStmt
protected String generatePrepStmt(DBConnection conn, DataStore ds) throws Exception(Code)



generateProc
public String generateProc(DBConnection conn, DataStore ds) throws Exception(Code)



generateSelect
abstract public String generateSelect(DataStore ds, String criteria, boolean countOnly) throws DataStoreException(Code)



getDateTimeFormat
SimpleDateFormat getDateTimeFormat()(Code)



getMetaData
public ResultSetMetaData getMetaData() throws Exception(Code)
This method was created in VisualAge. java.sql.ResultSetMetaData



getSelect
public String getSelect()(Code)
This method was created in VisualAge. java.lang.String



insertRow
public boolean insertRow(DataStore ds, DataStoreRow row, DBConnection conn) throws Exception(Code)
insertRow method comment.



populateAutoIncrementValue
protected void populateAutoIncrementValue(DataStoreRow row, DBConnection conn, int colNo)(Code)
Called by SOFIA to find an auto-generated Primary Key after it does an Insert. Note that you must call setAutoIncrement(pkey_col, true) and setUpdatable(pkey_col, false) for autogenerated pkeys to work. The default implementation of this method is null, and must be overridden on a per-database basis because of the lamentable lack of standardization on how to retrieve the pkey of an autonumbered row after inserting it.



postRetrieve
public void postRetrieve(DataStore ds) throws Exception(Code)
postRetrieve method comment.



postUpdate
public void postUpdate(DataStore ds, DBConnection conn, boolean handleTrans, boolean updateSuccessful) throws Exception(Code)
postUpdate method comment.



preRetrieve
public boolean preRetrieve(DataStore ds, String criteria, boolean countOnly, DBConnection conn) throws Exception(Code)
preRetrieve method comment.



preUpdate
public boolean preUpdate(DataStore ds, DBConnection conn, boolean handleTrans) throws Exception(Code)
preUpdate method comment.



prepareForType
static void prepareForType(DataStore ds, PreparedStatement pst, Object data, int type, int pos) throws java.sql.SQLException(Code)
This method was created in VisualAge.
Parameters:
  pst - java.sql.PreparedStatement
Parameters:
  data - java.lang.Object
Parameters:
  type - int



retrieveRow
public boolean retrieveRow(DataStore ds, DataStoreRow row) throws Exception(Code)
retrieveRow method comment.



setParms
void setParms(StoredProcedureParms p)(Code)



setProc
public void setProc(String proc, StoredProcedureParms p)(Code)



setSelType
void setSelType(int iSelType)(Code)



setSelect
public void setSelect(String sel)(Code)



updateRow
public boolean updateRow(DataStore ds, DataStoreRow row, DBConnection conn) throws Exception(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.