You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by ar...@apache.org on 2004/01/20 14:03:46 UTC
cvs commit: db-ojb/src/java/org/apache/ojb/broker/platforms PlatformSybaseImpl.java PlatformSybaseASEImpl.java PlatformSybaseASAImpl.java
arminw 2004/01/20 05:03:46
Modified: src/java/org/apache/ojb/broker/platforms
PlatformSybaseImpl.java PlatformSybaseASEImpl.java
PlatformSybaseASAImpl.java
Log:
make PlatformSybaseImpl a super-class for PlatformSybaseASAImpl and PlatformSybaseASEImpl
Revision Changes Path
1.6 +5 -6 db-ojb/src/java/org/apache/ojb/broker/platforms/PlatformSybaseImpl.java
Index: PlatformSybaseImpl.java
===================================================================
RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/platforms/PlatformSybaseImpl.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- PlatformSybaseImpl.java 20 Jan 2004 12:08:57 -0000 1.5
+++ PlatformSybaseImpl.java 20 Jan 2004 13:03:45 -0000 1.6
@@ -61,17 +61,16 @@
import java.sql.Statement;
/**
- * This class is a concrete implementation of <code>Platform</code>.
- * Provides an implementation for Sybase
- *
- * Modified by Nicus for Sybase ASA
+ * This class is a concrete implementation of {@link Platform}.
+ * Provides an base implementation for all Sybase DB server. It's recommended
+ * to use one of the specific Sybase platform classes like {@link PlatformSybaseASEImpl}
+ * or {@link PlatformSybaseASAImpl}.
*
*@author Oleg Nitz
- *@version 1.0
+ *@version $Id$
*/
public class PlatformSybaseImpl extends PlatformDefaultImpl
{
-
/**
* Get join syntax type for this RDBMS - one on of the constants from JoinSyntaxType interface
*/
1.4 +5 -13 db-ojb/src/java/org/apache/ojb/broker/platforms/PlatformSybaseASEImpl.java
Index: PlatformSybaseASEImpl.java
===================================================================
RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/platforms/PlatformSybaseASEImpl.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- PlatformSybaseASEImpl.java 20 Nov 2002 18:26:35 -0000 1.3
+++ PlatformSybaseASEImpl.java 20 Jan 2004 13:03:45 -0000 1.4
@@ -56,23 +56,15 @@
/**
- * This class extends <code>PlatformDefaultImpl</code> and defines specific
+ * This class extends {@link PlatformSybaseImpl} and defines specific
* behavior for the Sybase ASE platform.
- *
+ *
* NOTE: Different than the Sybase ASA platform
*
* @author <a href="mailto:mattbaird@yahoo.com">Matthew Baird<a>
* @version $Id$
*/
-
-public class PlatformSybaseASEImpl extends PlatformDefaultImpl
+public class PlatformSybaseASEImpl extends PlatformSybaseImpl
{
- /**
- * Get join syntax type for this RDBMS
- * one on of the constants from JoinSyntaxType interface
- */
- public byte getJoinSyntaxType()
- {
- return SYBASE_JOIN_SYNTAX;
- }
+
}
1.4 +10 -22 db-ojb/src/java/org/apache/ojb/broker/platforms/PlatformSybaseASAImpl.java
Index: PlatformSybaseASAImpl.java
===================================================================
RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/platforms/PlatformSybaseASAImpl.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- PlatformSybaseASAImpl.java 9 Jan 2003 17:01:34 -0000 1.3
+++ PlatformSybaseASAImpl.java 20 Jan 2004 13:03:45 -0000 1.4
@@ -61,39 +61,27 @@
import java.sql.Statement;
/**
- * This class is a concrete implementation of <code>Platform</code>.
- * Provides an implementation for Sybase ASA
- *
- * Modified by Nicus for Sybase ASA
- *
- * This class extends <code>PlatformDefaultImpl</code> and defines specific
+ * This class is a concrete implementation of <code>Platform</code>.
+ * Provides an implementation for Sybase ASA.
+ * <br/>
+ * This class extends {@link PlatformSybaseImpl} and defines specific
* behavior for the Sybase ASA platform.
*
- * NOTE: Different than the Sybase ASE platform
- *
+ * <br/>NOTE: Different than the Sybase ASE platform
+ * <br/> Modified by Nicus for Sybase ASA
* @author <a href="mailto:mattbaird@yahoo.com">Matthew Baird<a>
* @version $Id$
*/
-public class PlatformSybaseASAImpl extends PlatformDefaultImpl
+public class PlatformSybaseASAImpl extends PlatformSybaseImpl
{
-
- /**
- * Get join syntax type for this RDBMS - one on of the constants from JoinSyntaxType interface
- */
- public byte getJoinSyntaxType()
- {
- return SYBASE_JOIN_SYNTAX;
- }
-
-
/**
* Sybase Adaptive Server Enterprise (ASE) support timestamp to a precision of 1/300th of second.
* Adaptive Server Anywhere (ASA) support timestamp to a precision of 1/1000000tho of second.
* Sybase JDBC driver (JConnect) retrieving timestamp always rounds to 1/300th sec., causing rounding
* problems with ASA when retrieving Timestamp fields.
* This work around was suggested by Sybase Support. Unfortunately it works only with ASA.
- *
- * @author Lorenzo Nicora
+ * <br/>
+ * author Lorenzo Nicora
*/
public void initializeJdbcConnection(JdbcConnectionDescriptor jcd, Connection conn) throws PlatformException
{
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org