Java Doc for PlatformDefaultImpl.java in  » Database-ORM » db-ojb » org » apache » ojb » broker » platforms » 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 ORM » db ojb » org.apache.ojb.broker.platforms 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.ojb.broker.platforms.PlatformDefaultImpl

All known Subclasses:   org.apache.ojb.broker.platforms.PlatformMySQLImpl,  org.apache.ojb.broker.platforms.PlatformFirebirdImpl,  org.apache.ojb.broker.platforms.PlatformPostgreSQLImpl,  org.apache.ojb.broker.platforms.PlatformSapdbImpl,  org.apache.ojb.broker.platforms.PlatformHsqldbImpl,  org.apache.ojb.broker.platforms.PlatformOracleImpl,  org.apache.ojb.broker.platforms.PlatformDb2Impl,  org.apache.ojb.broker.platforms.PlatformSybaseImpl,  org.apache.ojb.broker.platforms.PlatformMsAccessImpl,  org.apache.ojb.broker.platforms.PlatformInformixImpl,  org.apache.ojb.broker.platforms.PlatformMsSQLServerImpl,  org.apache.ojb.broker.platforms.PlatformDerbyImpl,
PlatformDefaultImpl
public class PlatformDefaultImpl implements Platform,JoinSyntaxTypes(Code)
This class is a concrete implementation of Platform. Provides default implementations for all methods declared in Platform. It is intended as a vanilla implementation and as baseclass for platform specific implementations.
version:
   $Id: PlatformDefaultImpl.java,v 1.27.2.7 2005/12/18 16:43:19 tomdz Exp $
author:
   Thomas Mahler


Field Summary
protected  Loggerlog
    
protected  booleanm_batchUpdatesChecked
    
protected  booleanm_supportsBatchUpdates
    


Method Summary
public  voidaddBatch(PreparedStatement stmt)
    
public  voidaddPagingSql(StringBuffer anSqlString)
    
public  voidafterStatementClose(Statement stmt, ResultSet rs)
    
public  voidafterStatementCreate(Statement stmt)
    
public  voidbeforeBatch(PreparedStatement stmt)
    
public  voidbeforeStatementClose(Statement stmt, ResultSet rs)
    
public  intbindPagingParameters(PreparedStatement ps, int index, int startAt, int endAt)
    
public  booleanbindPagingParametersFirst()
    
public  voidchangeAutoCommitState(JdbcConnectionDescriptor jcd, Connection con, boolean newState)
    
protected  voidcheckForBatchSupport(Connection conn)
     Sets platform information for if the jdbc driver/db combo support batch operations.
public  Stringconcatenate(String[] theColumns)
    
public  StringcreateSequenceQuery(String sequenceName, Properties prop)
    
public  StringcreateSequenceQuery(String sequenceName)
    
public  StringdropSequenceQuery(String sequenceName)
    
public  int[]executeBatch(PreparedStatement stmt)
    
protected  StringgetConcatenationCharacter()
    
public  StringgetEscapeClause(LikeCriteria aCriteria)
    
public  bytegetJoinSyntaxType()
    
public  StringgetLastInsertIdentityQuery(String tableName)
    
public  voidinitializeJdbcConnection(JdbcConnectionDescriptor jcd, Connection conn)
    
public  StringnextSequenceQuery(String sequenceName)
    
public  CallableStatementprepareNextValProcedureStatement(Connection con, String procedureName, String sequenceName)
    
public  voidregisterOutResultSet(CallableStatement stmt, int position)
    
public  voidsetNullForStatement(PreparedStatement ps, int index, int sqlType)
    
public  voidsetObjectForStatement(PreparedStatement ps, int index, Object value, int sqlType)
    
public  booleansupportsBatchOperations()
    
public  booleansupportsMultiColumnCountDistinct()
    
public  booleansupportsPaging()
    
public  booleanuseCountForResultsetSize()
    

Field Detail
log
protected Logger log(Code)



m_batchUpdatesChecked
protected boolean m_batchUpdatesChecked(Code)



m_supportsBatchUpdates
protected boolean m_supportsBatchUpdates(Code)





Method Detail
addBatch
public void addBatch(PreparedStatement stmt) throws PlatformException(Code)



addPagingSql
public void addPagingSql(StringBuffer anSqlString)(Code)

See Also:   org.apache.ojb.broker.platforms.Platform.addPagingSql(java.lang.StringBuffer)



afterStatementClose
public void afterStatementClose(Statement stmt, ResultSet rs) throws PlatformException(Code)



afterStatementCreate
public void afterStatementCreate(Statement stmt) throws PlatformException(Code)



beforeBatch
public void beforeBatch(PreparedStatement stmt) throws PlatformException(Code)



beforeStatementClose
public void beforeStatementClose(Statement stmt, ResultSet rs) throws PlatformException(Code)



bindPagingParameters
public int bindPagingParameters(PreparedStatement ps, int index, int startAt, int endAt) throws SQLException(Code)

See Also:   org.apache.ojb.broker.platforms.Platform.bindPagingParameters(java.sql.PreparedStatementintintint)



bindPagingParametersFirst
public boolean bindPagingParametersFirst()(Code)

See Also:   org.apache.ojb.broker.platforms.Platform.bindPagingParametersFirst



changeAutoCommitState
public void changeAutoCommitState(JdbcConnectionDescriptor jcd, Connection con, boolean newState)(Code)



checkForBatchSupport
protected void checkForBatchSupport(Connection conn)(Code)
Sets platform information for if the jdbc driver/db combo support batch operations. Will only be checked once, then have same batch support setting for the entire session.
Parameters:
  conn -



concatenate
public String concatenate(String[] theColumns)(Code)

See Also:   org.apache.ojb.broker.platforms.Platform.concatenate(java.lang.String[])



createSequenceQuery
public String createSequenceQuery(String sequenceName, Properties prop)(Code)



createSequenceQuery
public String createSequenceQuery(String sequenceName)(Code)
Override this method to enable database based sequence generation



dropSequenceQuery
public String dropSequenceQuery(String sequenceName)(Code)
Override this method to enable database based sequence generation



executeBatch
public int[] executeBatch(PreparedStatement stmt) throws PlatformException(Code)



getConcatenationCharacter
protected String getConcatenationCharacter()(Code)
Answer the Character for Concatenation



getEscapeClause
public String getEscapeClause(LikeCriteria aCriteria)(Code)

See Also:   org.apache.ojb.broker.platforms.Platform.getEscapeClause(org.apache.ojb.broker.query.LikeCriteria)



getJoinSyntaxType
public byte getJoinSyntaxType()(Code)
Get join syntax type for this RDBMS - one on of the constants from JoinSyntaxType interface
See Also:   Platform.getJoinSyntaxType



getLastInsertIdentityQuery
public String getLastInsertIdentityQuery(String tableName)(Code)



initializeJdbcConnection
public void initializeJdbcConnection(JdbcConnectionDescriptor jcd, Connection conn) throws PlatformException(Code)

See Also:   Platform.initializeJdbcConnection



nextSequenceQuery
public String nextSequenceQuery(String sequenceName)(Code)
Override this method to enable database based sequence generation



prepareNextValProcedureStatement
public CallableStatement prepareNextValProcedureStatement(Connection con, String procedureName, String sequenceName) throws PlatformException(Code)



registerOutResultSet
public void registerOutResultSet(CallableStatement stmt, int position) throws SQLException(Code)

See Also:   org.apache.ojb.broker.platforms.Platform.registerOutResultSet(java.sql.CallableStatementint)



setNullForStatement
public void setNullForStatement(PreparedStatement ps, int index, int sqlType) throws SQLException(Code)



setObjectForStatement
public void setObjectForStatement(PreparedStatement ps, int index, Object value, int sqlType) throws SQLException(Code)



supportsBatchOperations
public boolean supportsBatchOperations()(Code)



supportsMultiColumnCountDistinct
public boolean supportsMultiColumnCountDistinct()(Code)



supportsPaging
public boolean supportsPaging()(Code)

See Also:   org.apache.ojb.broker.platforms.Platform.supportsPaging



useCountForResultsetSize
public boolean useCountForResultsetSize()(Code)
Override default ResultSet size determination (rs.last();rs.getRow()) with select count(*) operation
See Also:   Platform.useCountForResultsetSize



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.