activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r518296 - in /activemq/trunk/activemq-core/src/main: java/org/apache/activemq/store/jdbc/adapter/SybaseDBCAdapter.java resources/META-INF/services/org/apache/activemq/store/jdbc/jconnect__tm__for_jdbc__tm_
Date Wed, 14 Mar 2007 19:58:32 GMT
Author: jstrachan
Date: Wed Mar 14 12:58:31 2007
New Revision: 518296

URL: http://svn.apache.org/viewvc?view=rev&rev=518296
Log:
added JDBC driver for Sybase for AMQ-1204

Added:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/SybaseDBCAdapter.java
  (with props)
Modified:
    activemq/trunk/activemq-core/src/main/resources/META-INF/services/org/apache/activemq/store/jdbc/jconnect__tm__for_jdbc__tm_

Added: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/SybaseDBCAdapter.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/SybaseDBCAdapter.java?view=auto&rev=518296
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/SybaseDBCAdapter.java
(added)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/SybaseDBCAdapter.java
Wed Mar 14 12:58:31 2007
@@ -0,0 +1,34 @@
+/**
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.activemq.store.jdbc.adapter;
+
+import org.apache.activemq.store.jdbc.Statements;
+
+/**
+ * A JDBC Adapter for Sybase databases
+ *
+ * @version $Revision$
+ */
+public class SybaseDBCAdapter extends ImageBasedJDBCAdaptor {
+    public void setStatements(Statements statements) {
+        statements.setLockCreateStatement("LOCK TABLE " + statements.getFullLockTableName()
+ " IN EXCLUSIVE MODE");
+
+        statements.setLongDataType("DECIMAL");
+        super.setStatements(statements);
+    }
+}

Propchange: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/SybaseDBCAdapter.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/SybaseDBCAdapter.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/SybaseDBCAdapter.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: activemq/trunk/activemq-core/src/main/resources/META-INF/services/org/apache/activemq/store/jdbc/jconnect__tm__for_jdbc__tm_
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/resources/META-INF/services/org/apache/activemq/store/jdbc/jconnect__tm__for_jdbc__tm_?view=diff&rev=518296&r1=518295&r2=518296
==============================================================================
--- activemq/trunk/activemq-core/src/main/resources/META-INF/services/org/apache/activemq/store/jdbc/jconnect__tm__for_jdbc__tm_
(original)
+++ activemq/trunk/activemq-core/src/main/resources/META-INF/services/org/apache/activemq/store/jdbc/jconnect__tm__for_jdbc__tm_
Wed Mar 14 12:58:31 2007
@@ -1 +1 @@
-class=org.apache.activemq.store.jdbc.adapter.TransactJDBCAdapter
\ No newline at end of file
+class=org.apache.activemq.store.jdbc.adapter.SybaseJDBCAdapter
\ No newline at end of file



Mime
View raw message