Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'SimpleDBConn' of https://github.com/rhopp/teiid
Conflicts: connectors/pom.xml
- Loading branch information
Showing
28 changed files
with
1,779 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...-as7/modules/system/layers/base/org/jboss/teiid/resource-adapter/simpledb/main/module.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<module xmlns="urn:jboss:module:1.1" name="org.jboss.teiid.resource-adapter.simpledb"> | ||
|
||
<resources> | ||
<resource-root path="connector-simpledb-${project.version}.jar"/> | ||
<resource-root path="."/> | ||
<!-- Insert resources here --> | ||
</resources> | ||
|
||
<dependencies> | ||
<module name="javax.api"/> | ||
<module name="javax.resource.api"/> | ||
<module name="org.jboss.teiid.common-core"/> | ||
<module name="org.jboss.teiid.api"/> | ||
<module name="org.jboss.teiid.translator.simpledb.api"/> | ||
</dependencies> | ||
</module> |
19 changes: 19 additions & 0 deletions
19
...ss-as7/modules/system/layers/base/org/jboss/teiid/translator/simpledb/api/main/module.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module xmlns="urn:jboss:module:1.0" name="org.jboss.teiid.translator.simpledb.api"> | ||
<resources> | ||
<resource-root path="simpledb-api-${project.version}.jar" /> | ||
<resource-root path="aws-java-sdk-1.5.7.jar" /> | ||
<!-- Insert resources here --> | ||
</resources> | ||
|
||
|
||
<dependencies> | ||
<module name="javax.api"/> | ||
<module name="javax.resource.api"/> | ||
<module name="org.jboss.teiid.common-core" /> | ||
<module name="org.jboss.teiid.api" /> | ||
<module name="org.apache.commons.logging" /> | ||
<module name="org.apache.httpcomponents" /> | ||
<module name="org.apache.commons.codec" /> | ||
</dependencies> | ||
</module> |
16 changes: 16 additions & 0 deletions
16
.../jboss-as7/modules/system/layers/base/org/jboss/teiid/translator/simpledb/main/module.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module xmlns="urn:jboss:module:1.0" name="org.jboss.teiid.translator.simpledb"> | ||
<resources> | ||
<resource-root path="translator-simpledb-${project.version}.jar" /> | ||
<!-- Insert resources here --> | ||
</resources> | ||
|
||
|
||
<dependencies> | ||
<module name="javax.api"/> | ||
<module name="javax.resource.api"/> | ||
<module name="org.jboss.teiid.common-core" /> | ||
<module name="org.jboss.teiid.api" /> | ||
<module name="org.jboss.teiid.translator.simpledb.api" /> | ||
</dependencies> | ||
</module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<parent> | ||
<artifactId>connectors</artifactId> | ||
<groupId>org.jboss.teiid</groupId> | ||
<version>8.7.0.Alpha1-SNAPSHOT</version> | ||
</parent> | ||
<modelVersion>4.0.0</modelVersion> | ||
<artifactId>connector-simpledb</artifactId> | ||
<groupId>org.jboss.teiid.connectors</groupId> | ||
<name>SimpleDB Connector</name> | ||
<description>This connector reads data from SimpleDB database</description> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.jboss.teiid</groupId> | ||
<artifactId>teiid-api</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.jboss.teiid</groupId> | ||
<artifactId>teiid-common-core</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>javax.resource</groupId> | ||
<artifactId>connector-api</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.jboss.teiid.connectors</groupId> | ||
<artifactId>simpledb-api</artifactId> | ||
<version>${project.version}</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
</dependencies> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.felix</groupId> | ||
<artifactId>maven-bundle-plugin</artifactId> | ||
<extensions>true</extensions> | ||
<executions> | ||
<execution> | ||
<id>bundle</id> | ||
<phase>process-classes</phase> | ||
<goals> | ||
<goal>bundle</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<classifier>lib</classifier> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-rar-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>build_rar</id> | ||
<phase>install</phase> | ||
<goals> | ||
<goal>rar</goal> | ||
</goals> | ||
<configuration> | ||
<finalName>${project.artifactId}-${project.version}</finalName> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-install-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>install_rar</id> | ||
<phase>install</phase> | ||
<goals> | ||
<goal>install-file</goal> | ||
</goals> | ||
<configuration> | ||
<file> ${project.build.directory}/${project.artifactId}-${project.version}.rar</file> | ||
<artifactId>${project.artifactId}</artifactId> | ||
<groupId>${project.groupId}</groupId> | ||
<packaging>rar</packaging> | ||
<version>${project.version}</version> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
46 changes: 46 additions & 0 deletions
46
...or-simpledb/src/main/java/org/teiid/resource/adapter/simpledb/SimpleDBConnectionImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* JBoss, Home of Professional Open Source. | ||
* See the COPYRIGHT.txt file distributed with this work for information | ||
* regarding copyright ownership. Some portions may be licensed | ||
* to Red Hat, Inc. under one or more contributor license agreements. | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 2.1 of the License, or (at your option) any later version. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with this library; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
* 02110-1301 USA. | ||
*/ | ||
package org.teiid.resource.adapter.simpledb; | ||
|
||
import javax.resource.ResourceException; | ||
|
||
import org.teiid.resource.adpter.simpledb.SimpleDBConnection; | ||
import org.teiid.resource.adpter.simpledb.SimpleDbAPIClass; | ||
import org.teiid.resource.spi.BasicConnection; | ||
|
||
public class SimpleDBConnectionImpl extends BasicConnection implements | ||
SimpleDBConnection { | ||
|
||
private SimpleDbAPIClass apiClass; | ||
|
||
public SimpleDBConnectionImpl(String accessKey, String secretAccessKey) { | ||
apiClass = new SimpleDbAPIClass(accessKey, secretAccessKey); | ||
} | ||
|
||
public void close() throws ResourceException { | ||
|
||
} | ||
|
||
public SimpleDbAPIClass getAPIClass() { | ||
return apiClass; | ||
} | ||
} |
Oops, something went wrong.