activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r389551 - in /incubator/activemq/trunk/activemq-core/src/main: java/org/apache/activemq/store/jdbc/adapter/MaxDBJDBCAdapter.java resources/META-INF/services/org/apache/activemq/store/jdbc/sap_db
Date Tue, 28 Mar 2006 17:23:57 GMT
Author: chirino
Date: Tue Mar 28 09:23:55 2006
New Revision: 389551

URL: http://svn.apache.org/viewcvs?rev=389551&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQ-660
adding support for MaxDB

Added:
    incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/MaxDBJDBCAdapter.java
    incubator/activemq/trunk/activemq-core/src/main/resources/META-INF/services/org/apache/activemq/store/jdbc/sap_db

Added: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/MaxDBJDBCAdapter.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/MaxDBJDBCAdapter.java?rev=389551&view=auto
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/MaxDBJDBCAdapter.java
(added)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/MaxDBJDBCAdapter.java
Tue Mar 28 09:23:55 2006
@@ -0,0 +1,35 @@
+/**
+ * 
+ * Copyright 2005-2006 The Apache Software Foundation
+ *
+ * Licensed 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;
+
+/**
+ * JDBC Adapter for the MaxDB database.
+ */
+public class MaxDBJDBCAdapter extends DefaultJDBCAdapter {
+
+    public void setStatements(Statements statements) {
+        statements.setBinaryDataType("LONG BYTE");
+        statements.setStringIdDataType("VARCHAR(250) ASCII");
+        statements.setContainerNameDataType("VARCHAR(250) ASCII");
+        statements.setLongDataType("INTEGER");
+        super.setStatements(statements);
+    }
+
+}

Added: incubator/activemq/trunk/activemq-core/src/main/resources/META-INF/services/org/apache/activemq/store/jdbc/sap_db
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/resources/META-INF/services/org/apache/activemq/store/jdbc/sap_db?rev=389551&view=auto
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/resources/META-INF/services/org/apache/activemq/store/jdbc/sap_db
(added)
+++ incubator/activemq/trunk/activemq-core/src/main/resources/META-INF/services/org/apache/activemq/store/jdbc/sap_db
Tue Mar 28 09:23:55 2006
@@ -0,0 +1 @@
+class=org.apache.activemq.store.jdbc.adapter.MaxDBJDBCAdapter
\ No newline at end of file



Mime
View raw message