[teiid-commits] teiid SVN: r3077 - in trunk: build/kits/jboss-container and 17 other directories.

teiid-commits at lists.jboss.org teiid-commits at lists.jboss.org
Thu Apr 7 16:21:18 EDT 2011


Author: rareddy
Date: 2011-04-07 16:21:17 -0400 (Thu, 07 Apr 2011)
New Revision: 3077

Added:
   trunk/client/src/main/java/net/
   trunk/client/src/main/java/net/sf/
   trunk/client/src/main/java/net/sf/retrotranslator/
   trunk/client/src/main/java/net/sf/retrotranslator/runtime/
   trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/
   trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/io/
   trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/io/_IOException.java
   trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/io/_ObjectStreamClass.java
   trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/
   trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/NClob_.java
   trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/RowId_.java
   trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/SQLClientInfoException_.java
   trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/SQLFeatureNotSupportedException_.java
   trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/SQLXML_.java
   trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/Wrapper_.java
   trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/_SQLException.java
   trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/_SQLWarning.java
   trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/_Types.java
   trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/util/
   trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/util/_Properties.java
   trunk/client/src/main/java/net/sf/retrotranslator/runtime/javax/
   trunk/client/src/main/java/net/sf/retrotranslator/runtime/javax/net/
   trunk/client/src/main/java/net/sf/retrotranslator/runtime/javax/net/ssl/
   trunk/client/src/main/java/net/sf/retrotranslator/runtime/javax/net/ssl/_SSLContext.java
   trunk/client/src/main/java/net/sf/retrotranslator/runtime/org/
   trunk/client/src/main/java/net/sf/retrotranslator/runtime/org/teiid/
   trunk/client/src/main/java/net/sf/retrotranslator/runtime/org/teiid/core/
   trunk/client/src/main/java/net/sf/retrotranslator/runtime/org/teiid/core/types/
   trunk/client/src/main/java/net/sf/retrotranslator/runtime/org/teiid/core/types/basic/
   trunk/client/src/main/java/net/sf/retrotranslator/runtime/org/teiid/core/types/basic/StringToSQLXMLTransform_.java
Modified:
   trunk/build/kits/jboss-container/teiid-releasenotes.html
   trunk/build/pom.xml
Log:
TEIID-1491: Adding support for building retro translated JDBC driver for JDK1.5

Modified: trunk/build/kits/jboss-container/teiid-releasenotes.html
===================================================================
--- trunk/build/kits/jboss-container/teiid-releasenotes.html	2011-04-07 15:23:10 UTC (rev 3076)
+++ trunk/build/kits/jboss-container/teiid-releasenotes.html	2011-04-07 20:21:17 UTC (rev 3077)
@@ -50,7 +50,8 @@
 			<LI><B>Dependent query parallization</B> - when multiple dependent queries are still required, then they will be run in parallel (up to MaxUserSourceRequestConcurrency), rather than sequentially.
 			<LI><B>Cost based back-off</B> - for cost based dependent joins if the number of independent values is too large, then the join will be performed as normal. 
 		</UL>
-	<LI><B>Enhanced Sort Join</B> - the partitioned merge join was replaced with an enhanced sort join.  The enhanced sort join will use the actual row counts from each side of the relation to perform a index based join if one side is small enough, a partial sort of the larger side and a repeated merge join if the tuples are unbalanced but one side is not small enough to form an index, or a standard sort merge join if the tuples are balanced.   
+	<LI><B>Enhanced Sort Join</B> - the partitioned merge join was replaced with an enhanced sort join.  The enhanced sort join will use the actual row counts from each side of the relation to perform a index based join if one side is small enough, a partial sort of the larger side and a repeated merge join if the tuples are unbalanced but one side is not small enough to form an index, or a standard sort merge join if the tuples are balanced.
+	<LI><B>JDK1.5 JDBC Client JAR</B> - A retro-translated Teiid client JDBC jar now available to use with JDK 1.5 VM. Note only JDBC API supported, not Admin API.
 </UL>
 
 <h2><a name="Compatibility">Compatibility Issues</a></h2>

Modified: trunk/build/pom.xml
===================================================================
--- trunk/build/pom.xml	2011-04-07 15:23:10 UTC (rev 3076)
+++ trunk/build/pom.xml	2011-04-07 20:21:17 UTC (rev 3077)
@@ -62,7 +62,7 @@
                 </goals>
               </execution>
             </executions>
-          </plugin>
+          </plugin>          
         </plugins>
     </build>
     
@@ -86,6 +86,32 @@
                 </descriptors>
               </configuration>
             </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>retrotranslator-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>translate</goal>
+                        </goals>
+                        <configuration>
+                            <attach>true</attach>
+                            <target>1.5</target>
+                            <embed>org.teiid.retroruntime</embed>
+                            <destjar>target/teiid-${pom.version}-client-jdk15.jar</destjar>
+                            <verify>false</verify>
+                            <failonwarning>true</failonwarning>
+                            <includes>
+                                <include>
+                                    <directory>target</directory>
+                                    <pattern>teiid-${pom.version}-client.jar</pattern>
+                                </include>
+                            </includes>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>             
           </plugins>
         </build>
       </profile>

Added: trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/io/_IOException.java
===================================================================
--- trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/io/_IOException.java	                        (rev 0)
+++ trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/io/_IOException.java	2011-04-07 20:21:17 UTC (rev 3077)
@@ -0,0 +1,33 @@
+/*
+ * JBoss, Home of Professional Open Source
+ *
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * by the @author tags. See the COPYRIGHT.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package net.sf.retrotranslator.runtime.java.io;
+
+import java.io.IOException;
+
+public class _IOException {
+	public static IOException createNewInstance(Throwable t){
+		IOException io = new IOException();
+		io.initCause(t);
+		return io;
+	}
+}


Property changes on: trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/io/_IOException.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/io/_ObjectStreamClass.java
===================================================================
--- trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/io/_ObjectStreamClass.java	                        (rev 0)
+++ trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/io/_ObjectStreamClass.java	2011-04-07 20:21:17 UTC (rev 3077)
@@ -0,0 +1,38 @@
+/*
+ * JBoss, Home of Professional Open Source
+ *
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * by the @author tags. See the COPYRIGHT.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package net.sf.retrotranslator.runtime.java.io;
+
+import java.io.ObjectStreamClass;
+import java.lang.reflect.Method;
+
+public class _ObjectStreamClass {
+	public static ObjectStreamClass lookupAny(Class<?> cl) {
+		try {
+			Method m = ObjectStreamClass.class.getDeclaredMethod("lookup",new Class[] { Class.class, Boolean.TYPE }); //$NON-NLS-1$
+			m.setAccessible(true);
+			return (ObjectStreamClass) m.invoke(null, new Object[] { cl,Boolean.valueOf(true) });
+		} catch (Exception e) {
+			throw new RuntimeException(e);
+		}
+	}
+}


Property changes on: trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/io/_ObjectStreamClass.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/NClob_.java
===================================================================
--- trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/NClob_.java	                        (rev 0)
+++ trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/NClob_.java	2011-04-07 20:21:17 UTC (rev 3077)
@@ -0,0 +1,29 @@
+/*
+ * JBoss, Home of Professional Open Source
+ *
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * by the @author tags. See the COPYRIGHT.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package net.sf.retrotranslator.runtime.java.sql;
+
+import java.sql.Clob;
+
+public abstract interface NClob_ extends Clob
+{
+}
\ No newline at end of file


Property changes on: trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/NClob_.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/RowId_.java
===================================================================
--- trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/RowId_.java	                        (rev 0)
+++ trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/RowId_.java	2011-04-07 20:21:17 UTC (rev 3077)
@@ -0,0 +1,30 @@
+/*
+ * JBoss, Home of Professional Open Source
+ *
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * by the @author tags. See the COPYRIGHT.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package net.sf.retrotranslator.runtime.java.sql;
+
+public interface RowId_ {
+	boolean equals(Object obj);
+	byte[] getBytes();
+	String toString();
+	int hashCode();
+}


Property changes on: trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/RowId_.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/SQLClientInfoException_.java
===================================================================
--- trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/SQLClientInfoException_.java	                        (rev 0)
+++ trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/SQLClientInfoException_.java	2011-04-07 20:21:17 UTC (rev 3077)
@@ -0,0 +1,29 @@
+/*
+ * JBoss, Home of Professional Open Source
+ *
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * by the @author tags. See the COPYRIGHT.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package net.sf.retrotranslator.runtime.java.sql;
+
+import java.sql.SQLException;
+
+public class SQLClientInfoException_ extends SQLException {
+
+}


Property changes on: trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/SQLClientInfoException_.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/SQLFeatureNotSupportedException_.java
===================================================================
--- trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/SQLFeatureNotSupportedException_.java	                        (rev 0)
+++ trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/SQLFeatureNotSupportedException_.java	2011-04-07 20:21:17 UTC (rev 3077)
@@ -0,0 +1,29 @@
+/*
+ * JBoss, Home of Professional Open Source
+ *
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * by the @author tags. See the COPYRIGHT.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package net.sf.retrotranslator.runtime.java.sql;
+
+import java.sql.SQLException;
+
+public class SQLFeatureNotSupportedException_ extends SQLException {
+
+}


Property changes on: trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/SQLFeatureNotSupportedException_.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/SQLXML_.java
===================================================================
--- trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/SQLXML_.java	                        (rev 0)
+++ trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/SQLXML_.java	2011-04-07 20:21:17 UTC (rev 3077)
@@ -0,0 +1,61 @@
+/*
+ * JBoss, Home of Professional Open Source
+ *
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * by the @author tags. See the COPYRIGHT.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package net.sf.retrotranslator.runtime.java.sql;
+
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.io.Reader;
+import java.io.Writer;
+import java.sql.SQLException;
+import javax.xml.transform.Result;
+import javax.xml.transform.Source;
+
+public abstract interface SQLXML_
+{
+  public abstract void free()
+    throws SQLException;
+
+  public abstract InputStream getBinaryStream()
+    throws SQLException;
+
+  public abstract OutputStream setBinaryStream()
+    throws SQLException;
+
+  public abstract Reader getCharacterStream()
+    throws SQLException;
+
+  public abstract Writer setCharacterStream()
+    throws SQLException;
+
+  public abstract String getString()
+    throws SQLException;
+
+  public abstract void setString(String paramString)
+    throws SQLException;
+
+  public abstract <T extends Source> T getSource(Class<T> paramClass)
+    throws SQLException;
+
+  public abstract <T extends Result> T setResult(Class<T> paramClass)
+    throws SQLException;
+}
\ No newline at end of file


Property changes on: trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/SQLXML_.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/Wrapper_.java
===================================================================
--- trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/Wrapper_.java	                        (rev 0)
+++ trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/Wrapper_.java	2011-04-07 20:21:17 UTC (rev 3077)
@@ -0,0 +1,34 @@
+/*
+ * JBoss, Home of Professional Open Source
+ *
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * by the @author tags. See the COPYRIGHT.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package net.sf.retrotranslator.runtime.java.sql;
+
+import java.sql.SQLException;
+
+public abstract interface Wrapper_
+{
+  public abstract <T> T unwrap(Class<T> paramClass)
+    throws SQLException;
+
+  public abstract boolean isWrapperFor(Class<?> paramClass)
+    throws SQLException;
+}
\ No newline at end of file


Property changes on: trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/Wrapper_.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/_SQLException.java
===================================================================
--- trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/_SQLException.java	                        (rev 0)
+++ trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/_SQLException.java	2011-04-07 20:21:17 UTC (rev 3077)
@@ -0,0 +1,33 @@
+/*
+ * JBoss, Home of Professional Open Source
+ *
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * by the @author tags. See the COPYRIGHT.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package net.sf.retrotranslator.runtime.java.sql;
+
+import java.sql.SQLException;
+
+public class _SQLException {
+	public static SQLException createNewInstance(Throwable t){
+		SQLException sql = new SQLException();
+		sql.initCause(t);
+		return sql;
+	}
+}


Property changes on: trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/_SQLException.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/_SQLWarning.java
===================================================================
--- trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/_SQLWarning.java	                        (rev 0)
+++ trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/_SQLWarning.java	2011-04-07 20:21:17 UTC (rev 3077)
@@ -0,0 +1,33 @@
+/*
+ * JBoss, Home of Professional Open Source
+ *
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * by the @author tags. See the COPYRIGHT.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package net.sf.retrotranslator.runtime.java.sql;
+
+import java.sql.SQLWarning;
+
+public class _SQLWarning {
+	public static SQLWarning createNewInstance(Throwable t){
+		SQLWarning sql = new SQLWarning();
+		sql.initCause(t);
+		return sql;
+	}
+}


Property changes on: trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/_SQLWarning.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/_Types.java
===================================================================
--- trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/_Types.java	                        (rev 0)
+++ trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/_Types.java	2011-04-07 20:21:17 UTC (rev 3077)
@@ -0,0 +1,32 @@
+/*
+ * JBoss, Home of Professional Open Source
+ *
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * by the @author tags. See the COPYRIGHT.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package net.sf.retrotranslator.runtime.java.sql;
+
+public class _Types {
+    public final static int ROWID = -8;
+    public static final int NCHAR = -15;
+    public static final int NVARCHAR = -9;
+    public static final int LONGNVARCHAR = -16;
+    public static final int NCLOB = 2011;
+    public static final int SQLXML = 2009;
+}


Property changes on: trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/sql/_Types.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/util/_Properties.java
===================================================================
--- trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/util/_Properties.java	                        (rev 0)
+++ trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/util/_Properties.java	2011-04-07 20:21:17 UTC (rev 3077)
@@ -0,0 +1,36 @@
+/*
+ * JBoss, Home of Professional Open Source
+ *
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * by the @author tags. See the COPYRIGHT.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package net.sf.retrotranslator.runtime.java.util;
+
+import java.util.Collections;
+import java.util.Enumeration;
+import java.util.HashSet;
+import java.util.Properties;
+import java.util.Set;
+
+public class _Properties {
+	
+    public static Set<String> stringPropertyNames(Properties props) {
+    	return new HashSet<String>(Collections.list((Enumeration<String>)props.propertyNames()));
+    }
+}


Property changes on: trunk/client/src/main/java/net/sf/retrotranslator/runtime/java/util/_Properties.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: trunk/client/src/main/java/net/sf/retrotranslator/runtime/javax/net/ssl/_SSLContext.java
===================================================================
--- trunk/client/src/main/java/net/sf/retrotranslator/runtime/javax/net/ssl/_SSLContext.java	                        (rev 0)
+++ trunk/client/src/main/java/net/sf/retrotranslator/runtime/javax/net/ssl/_SSLContext.java	2011-04-07 20:21:17 UTC (rev 3077)
@@ -0,0 +1,33 @@
+/*
+ * JBoss, Home of Professional Open Source
+ *
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * by the @author tags. See the COPYRIGHT.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package net.sf.retrotranslator.runtime.javax.net.ssl;
+
+import java.security.NoSuchAlgorithmException;
+
+import javax.net.ssl.SSLContext;
+
+public class _SSLContext {
+	public static SSLContext getDefault() throws NoSuchAlgorithmException {
+		return SSLContext.getInstance("TLSv1"); //$NON-NLS-1$
+    }
+}


Property changes on: trunk/client/src/main/java/net/sf/retrotranslator/runtime/javax/net/ssl/_SSLContext.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: trunk/client/src/main/java/net/sf/retrotranslator/runtime/org/teiid/core/types/basic/StringToSQLXMLTransform_.java
===================================================================
--- trunk/client/src/main/java/net/sf/retrotranslator/runtime/org/teiid/core/types/basic/StringToSQLXMLTransform_.java	                        (rev 0)
+++ trunk/client/src/main/java/net/sf/retrotranslator/runtime/org/teiid/core/types/basic/StringToSQLXMLTransform_.java	2011-04-07 20:21:17 UTC (rev 3077)
@@ -0,0 +1,72 @@
+/*
+ * JBoss, Home of Professional Open Source
+ *
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * by the @author tags. See the COPYRIGHT.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This 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 software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package net.sf.retrotranslator.runtime.org.teiid.core.types.basic;
+
+import java.io.Reader;
+
+import org.teiid.core.types.DataTypeManager;
+import org.teiid.core.types.Transform;
+import org.teiid.core.types.TransformationException;
+import org.teiid.core.types.XMLType.Type;
+
+public class StringToSQLXMLTransform_ extends Transform {
+	
+	public static Type isXml(Reader reader) throws TransformationException {
+		return Type.UNKNOWN;
+	}
+	
+	/**
+	 * This method transforms a value of the source type into a value
+	 * of the target type.
+	 * @param value Incoming value of source type
+	 * @return Outgoing value of target type
+	 * @throws TransformationException if value is an incorrect input type or
+	 * the transformation fails
+	 */
+	public Object transformDirect(Object value) throws TransformationException {
+		throw new UnsupportedOperationException();
+	}
+
+
+
+	/**
+	 * Type of the incoming value.
+	 * @return Source type
+	 */
+	public Class<?> getSourceType() {
+		return DataTypeManager.DefaultDataClasses.STRING;
+	}
+
+	/**
+	 * Type of the outgoing value.
+	 * @return Target type
+	 */
+	public Class<?> getTargetType() {
+		return DataTypeManager.DefaultDataClasses.XML;
+	}
+	
+	@Override
+	public boolean isExplicit() {
+		return true;
+	}	
+}


Property changes on: trunk/client/src/main/java/net/sf/retrotranslator/runtime/org/teiid/core/types/basic/StringToSQLXMLTransform_.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain



More information about the teiid-commits mailing list