teiid SVN: r1362 - in branches/6.2.x: connectors/connector-jdbc/src/test/java/org/teiid/connector/jdbc and 1 other directories.
by teiid-commits@lists.jboss.org
Author: shawkins
Date: 2009-09-16 13:09:12 -0400 (Wed, 16 Sep 2009)
New Revision: 1362
Modified:
branches/6.2.x/connectors/connector-jdbc/src/main/java/org/teiid/connector/jdbc/JDBCProcedureExecution.java
branches/6.2.x/connectors/connector-jdbc/src/test/java/org/teiid/connector/jdbc/TestJDBCProcedureExecution.java
branches/6.2.x/documentation/salesforce-connector-guide/
Log:
TEIID-831 fix for invalid index with out parameters and in parameters
Modified: branches/6.2.x/connectors/connector-jdbc/src/main/java/org/teiid/connector/jdbc/JDBCProcedureExecution.java
===================================================================
--- branches/6.2.x/connectors/connector-jdbc/src/main/java/org/teiid/connector/jdbc/JDBCProcedureExecution.java 2009-09-15 20:21:08 UTC (rev 1361)
+++ branches/6.2.x/connectors/connector-jdbc/src/main/java/org/teiid/connector/jdbc/JDBCProcedureExecution.java 2009-09-16 17:09:12 UTC (rev 1362)
@@ -115,10 +115,14 @@
}
}
for (IParameter parameter : proc.getParameters()) {
- if (parameter.getDirection() == Direction.RETURN || parameter.getDirection() == Direction.RESULT_SET) {
+ switch (parameter.getDirection()) {
+ case IN:
+ paramIndex++;
+ case RETURN:
+ case RESULT_SET:
continue;
- }
- if (parameter.getDirection() == Direction.INOUT || parameter.getDirection() == Direction.OUT) {
+ case INOUT:
+ case OUT:
addParameterValue(result, paramIndex++, parameter);
}
}
Modified: branches/6.2.x/connectors/connector-jdbc/src/test/java/org/teiid/connector/jdbc/TestJDBCProcedureExecution.java
===================================================================
--- branches/6.2.x/connectors/connector-jdbc/src/test/java/org/teiid/connector/jdbc/TestJDBCProcedureExecution.java 2009-09-15 20:21:08 UTC (rev 1361)
+++ branches/6.2.x/connectors/connector-jdbc/src/test/java/org/teiid/connector/jdbc/TestJDBCProcedureExecution.java 2009-09-16 17:09:12 UTC (rev 1362)
@@ -58,5 +58,21 @@
assertEquals(Arrays.asList(5), procedureExecution.getOutputParameterValues());
Mockito.verify(cs, Mockito.times(1)).registerOutParameter(1, Types.INTEGER);
}
+
+ @Test public void testProcedureExecution1() throws Exception {
+ ICommand command = MetadataFactory.helpTranslate(MetadataFactory.BQT_VDB, "exec pm2.spTest8(1)"); //$NON-NLS-1$
+ Connection connection = Mockito.mock(Connection.class);
+ CallableStatement cs = Mockito.mock(CallableStatement.class);
+ Mockito.stub(cs.getUpdateCount()).toReturn(-1);
+ Mockito.stub(cs.getInt(2)).toReturn(5);
+ Mockito.stub(connection.prepareCall("{ call spTest8(?,?)}")).toReturn(cs); //$NON-NLS-1$
+ Translator sqlTranslator = new Translator();
+ ExecutionContext context = EnvironmentUtility.createSecurityContext("user"); //$NON-NLS-1$
+ RuntimeMetadataImpl runtimeMetadata = new RuntimeMetadataImpl(FakeMetadataFactory.exampleBQTCached());
+ JDBCProcedureExecution procedureExecution = new JDBCProcedureExecution(command, connection, sqlTranslator, Mockito.mock(ConnectorLogger.class), new Properties(), runtimeMetadata, context, EnvironmentUtility.createEnvironment(new Properties()) );
+ procedureExecution.execute();
+ assertEquals(Arrays.asList(5), procedureExecution.getOutputParameterValues());
+ Mockito.verify(cs, Mockito.times(1)).registerOutParameter(2, Types.INTEGER);
+ }
}
Property changes on: branches/6.2.x/documentation/salesforce-connector-guide
___________________________________________________________________
Name: svn:ignore
+ .classpath
target
.settings
.project
15 years, 3 months
teiid SVN: r1361 - trunk/test-integration/db/src/main/java/org/teiid/test/framework/datasource.
by teiid-commits@lists.jboss.org
Author: vhalbert(a)redhat.com
Date: 2009-09-15 16:21:08 -0400 (Tue, 15 Sep 2009)
New Revision: 1361
Added:
trunk/test-integration/db/src/main/java/org/teiid/test/framework/datasource/DataSourceMgr.java
Removed:
trunk/test-integration/db/src/main/java/org/teiid/test/framework/datasource/DataSourceMgr.java
Log:
Teiid 773 - organize integration test - changes to support multiple datasources
Deleted: trunk/test-integration/db/src/main/java/org/teiid/test/framework/datasource/DataSourceMgr.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/framework/datasource/DataSourceMgr.java 2009-09-15 20:08:41 UTC (rev 1360)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/framework/datasource/DataSourceMgr.java 2009-09-15 20:21:08 UTC (rev 1361)
@@ -1,290 +0,0 @@
-/*
- * Copyright (c) 2000-2007 MetaMatrix, Inc.
- * All rights reserved.
- */
-package org.teiid.test.framework.datasource;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-import java.util.Properties;
-import java.util.Set;
-
-import org.jdom.Document;
-import org.jdom.Element;
-import org.jdom.JDOMException;
-import org.teiid.test.framework.exception.QueryTestFailedException;
-import org.teiid.test.framework.exception.TransactionRuntimeException;
-
-import com.metamatrix.common.xml.XMLReaderWriter;
-import com.metamatrix.common.xml.XMLReaderWriterImpl;
-
-/**
- * The DataSourceMgr is responsible for loading and managing the datasource
- * mapping properties file {@see #DATASOURCE_MAPPING_FILE} and the mapped
- * datasource properties files. The {@link #getDatasourceProperties(String)}
- * returns the properties defined for that datasourceid, which is mapped in the
- * mnappings file. This mapping allows the test
- *
- * @author vanhalbert
- *
- */
-public class DataSourceMgr {
-
- static final String DIRECTORY = "datasources/";
- static final String DATASOURCE_MAPPING_FILE = "datasource_mapping.xml";
-
- private static DataSourceMgr _instance = null;
-
- private Map<String, Map<String, DataSource>>dstypeMap = new HashMap<String, Map<String, DataSource>>(); //key=datasourcetype
-
- private Map<String, DataSource> allDatasourcesMap = new HashMap<String, DataSource>(); // key=datasource name
-
- private Map<String, DataSource> modelToDatasourceMap = new HashMap<String, DataSource>(); // key=modelname
-
- private Set<String> usedDataSources = new HashSet<String>();
-
-
- private DataSourceMgr() {
- }
-
- public static synchronized DataSourceMgr getInstance() {
- if (_instance == null) {
- _instance = new DataSourceMgr();
- try {
- _instance.loadDataSourceMappings();
- } catch (QueryTestFailedException e) {
- // TODO Auto-generated catch block
- throw new TransactionRuntimeException(e);
- } catch (TransactionRuntimeException e) {
- // TODO Auto-generated catch block
- throw e;
- }
-
- }
- return _instance;
- }
-
- public int numberOfAvailDataSources() {
- return allDatasourcesMap.size();
- }
-
- public DataSource getDatasource(String datasourceid, String modelName)
- throws QueryTestFailedException {
- DataSource ds = null;
-
- // map the datasource to the model and datasourceid
- // this is so the next time this combination is requested,
- // the same datasource is returned to ensure when consecutive calls during the process
- // corresponds to the same datasource
- String key = modelName + "_"+datasourceid;
-
- if (modelToDatasourceMap.containsKey(key)) {
- return modelToDatasourceMap.get(key);
- }
- if (dstypeMap.containsKey(datasourceid)) {
-
- Map datasources = dstypeMap.get(datasourceid);
- Iterator<DataSource> it= datasources.values().iterator();
- while(it.hasNext()) {
- DataSource checkit = it.next();
- if (!usedDataSources.contains(checkit.getName())) {
- usedDataSources.add(checkit.getName());
- ds = checkit;
- break;
- }
- }
-
- } else {
- ds = allDatasourcesMap.get(datasourceid);
- }
- if (ds == null) {
- throw new QueryTestFailedException("DatasourceID " + datasourceid
- + " is not a defined datasource in the mappings file ");
-
- }
-
- modelToDatasourceMap.put(key, ds);
- return ds;
-
- }
-
- public Properties getDatasourceProperties(String datasourceid, String modelname)
- throws QueryTestFailedException {
- DataSource ds = getDatasource(datasourceid, modelname);
-
- return ds.getProperties();
-
- }
-
- private void loadDataSourceMappings()
- throws QueryTestFailedException {
-
- Document doc = null;
- XMLReaderWriter readerWriter = new XMLReaderWriterImpl();
-
- try {
- doc = readerWriter.readDocument(getInputStream());
- } catch (JDOMException e) {
- e.printStackTrace();
- throw new TransactionRuntimeException(e);
- } catch (IOException e) {
- e.printStackTrace();
- throw new TransactionRuntimeException(e);
- }
-
- Element root = doc.getRootElement();
- List<Element> rootElements = root.getChildren();
- if (rootElements == null || rootElements.size() == 0) {
- throw new TransactionRuntimeException("No children defined under root element " + DSCONFIG);
- }
-
- for (Iterator<Element> it = rootElements.iterator(); it.hasNext();) {
- Element type = it.next();
-// System.out.println("Loading ds transactional type " + type.getName());
- String typename = type.getAttributeValue(Property.Attributes.NAME);
-
- List<Element> typeElements = type.getChildren();
- if (typeElements != null) {
- Map<String, DataSource> datasources = new HashMap<String, DataSource>(typeElements.size());
-
- for (Iterator<Element> typeit = typeElements.iterator(); typeit.hasNext();) {
- Element e = typeit.next();
-// System.out.println("Loading ds type " + e.getName());
- addDataSource(e, typename, datasources);
- }
- dstypeMap.put(typename, datasources);
- allDatasourcesMap.putAll(datasources);
-
- }
-
-
- }
-
- if (dstypeMap == null || dstypeMap.isEmpty()) {
- throw new TransactionRuntimeException(
- "No Datasources were found in the mappings file");
- }
-
- System.out.println("Number of datasource types loaded " + dstypeMap.size());
- System.out.println("Number of total datasource mappings loaded " + allDatasourcesMap.size());
-
-
-
- }
-
- private static void addDataSource(Element element, String type, Map<String, DataSource> datasources) {
- String name = element.getAttributeValue(Property.Attributes.NAME);
- Properties props = getProperties(element);
-
- String dir = props.getProperty(DataSource.DIRECTORY);
- String dsfile = DIRECTORY + dir + "/connection.properties";
- Properties dsprops = loadProperties(dsfile);
- if (dsprops != null) {
- props.putAll(dsprops);
- DataSource ds = new DataSource(name,
- type,
- props);
- datasources.put(ds.getName(), ds);
- System.out.println("Loaded datasource " + ds.getName());
-
- }
-
- }
-
-
- private static Properties loadProperties(String filename) {
- Properties props = null;
-
- try {
- InputStream in = DataSourceMgr.class.getResourceAsStream("/"
- + filename);
- if (in != null) {
- props = new Properties();
- props.load(in);
- return props;
- }
- return null;
- } catch (IOException e) {
- throw new TransactionRuntimeException("Error loading properties from file '"
- + filename + "'" + e.getMessage());
- }
- }
-
- private static Properties getProperties(Element propertiesElement) {
- Properties props = new Properties();
-
- List<Element> properties = propertiesElement
- .getChildren(Property.ELEMENT);
- Iterator<Element> iterator = properties.iterator();
- while (iterator.hasNext()) {
- Element propertyElement = (Element) iterator.next();
- String propertyName = propertyElement
- .getAttributeValue(Property.Attributes.NAME);
- String propertyValue = propertyElement.getText();
-
- props.setProperty(propertyName, propertyValue);
-
- }
- return props;
- }
-
- private static InputStream getInputStream() {
-
- InputStream in = DataSourceMgr.class.getResourceAsStream("/"
- + DIRECTORY + DATASOURCE_MAPPING_FILE);
- if (in != null) {
-
- return in;
- } else {
- throw new RuntimeException(
- "Failed to load datasource mapping file '" + DIRECTORY
- + DATASOURCE_MAPPING_FILE + "'");
- }
-
- }
-
- static final String DSCONFIG = "datasourceconfig";
- static final String DATASOURCETYPE = "datasourcetype";
- static final String DATASOURCE = "datasource";
-
- static class Property {
-
- /**
- * This is the name of the Property Element.
- */
- public static final String ELEMENT = "property"; //$NON-NLS-1$
-
- /**
- * This class defines the Attributes of the Element class that contains
- * it.
- */
- public static class Attributes {
- public static final String NAME = "name"; //$NON-NLS-1$
- }
-
- }
-
- public static void main(String[] args) {
- DataSourceMgr mgr = DataSourceMgr.getInstance();
-
- try {
- DataSource ds1 = mgr.getDatasource("ds_mysql5", "model1");
-
- DataSource ds2 = mgr.getDatasource("ds_mysql5", "model1");
- if (ds1 != ds2) {
- throw new RuntimeException("Datasources are not the same");
- }
- System.out.println("Value for ds_mysql5: "
- + mgr.getDatasourceProperties("ds_mysql5", "model1"));
- } catch (QueryTestFailedException e) {
- e.printStackTrace();
- }
-
- }
-
-}
Added: trunk/test-integration/db/src/main/java/org/teiid/test/framework/datasource/DataSourceMgr.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/framework/datasource/DataSourceMgr.java (rev 0)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/framework/datasource/DataSourceMgr.java 2009-09-15 20:21:08 UTC (rev 1361)
@@ -0,0 +1,290 @@
+/*
+ * Copyright (c) 2000-2007 MetaMatrix, Inc.
+ * All rights reserved.
+ */
+package org.teiid.test.framework.datasource;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Properties;
+import java.util.Set;
+
+import org.jdom.Document;
+import org.jdom.Element;
+import org.jdom.JDOMException;
+import org.teiid.test.framework.exception.QueryTestFailedException;
+import org.teiid.test.framework.exception.TransactionRuntimeException;
+
+import com.metamatrix.common.xml.XMLReaderWriter;
+import com.metamatrix.common.xml.XMLReaderWriterImpl;
+
+/**
+ * The DataSourceMgr is responsible for loading and managing the datasource
+ * mapping properties file {@see #DATASOURCE_MAPPING_FILE} and the mapped
+ * datasource properties files. The {@link #getDatasourceProperties(String)}
+ * returns the properties defined for that datasourceid, which is mapped in the
+ * mnappings file. This mapping allows the test
+ *
+ * @author vanhalbert
+ *
+ */
+public class DataSourceMgr {
+
+ static final String DIRECTORY = "datasources/";
+ static final String DATASOURCE_MAPPING_FILE = "datasource_mapping.xml";
+
+ private static DataSourceMgr _instance = null;
+
+ private Map<String, Map<String, DataSource>>dstypeMap = new HashMap<String, Map<String, DataSource>>(); //key=datasourcetype
+
+ private Map<String, DataSource> allDatasourcesMap = new HashMap<String, DataSource>(); // key=datasource name
+
+ private Map<String, DataSource> modelToDatasourceMap = new HashMap<String, DataSource>(); // key=modelname
+
+ private Set<String> usedDataSources = new HashSet<String>();
+
+
+ private DataSourceMgr() {
+ }
+
+ public static synchronized DataSourceMgr getInstance() {
+ if (_instance == null) {
+ _instance = new DataSourceMgr();
+ try {
+ _instance.loadDataSourceMappings();
+ } catch (QueryTestFailedException e) {
+ // TODO Auto-generated catch block
+ throw new TransactionRuntimeException(e);
+ } catch (TransactionRuntimeException e) {
+ // TODO Auto-generated catch block
+ throw e;
+ }
+
+ }
+ return _instance;
+ }
+
+ public int numberOfAvailDataSources() {
+ return allDatasourcesMap.size();
+ }
+
+ public DataSource getDatasource(String datasourceid, String modelName)
+ throws QueryTestFailedException {
+ DataSource ds = null;
+
+ // map the datasource to the model and datasourceid
+ // this is so the next time this combination is requested,
+ // the same datasource is returned to ensure when consecutive calls during the process
+ // corresponds to the same datasource
+ String key = modelName + "_"+datasourceid;
+
+ if (modelToDatasourceMap.containsKey(key)) {
+ return modelToDatasourceMap.get(key);
+ }
+ if (dstypeMap.containsKey(datasourceid)) {
+
+ Map datasources = dstypeMap.get(datasourceid);
+ Iterator<DataSource> it= datasources.values().iterator();
+ while(it.hasNext()) {
+ DataSource checkit = it.next();
+ if (!usedDataSources.contains(checkit.getName())) {
+ usedDataSources.add(checkit.getName());
+ ds = checkit;
+ break;
+ }
+ }
+
+ } else {
+ ds = allDatasourcesMap.get(datasourceid);
+ }
+ if (ds == null) {
+ throw new QueryTestFailedException("DatasourceID " + datasourceid
+ + " is not a defined datasource in the mappings file ");
+
+ }
+
+ modelToDatasourceMap.put(key, ds);
+ return ds;
+
+ }
+
+ public Properties getDatasourceProperties(String datasourceid, String modelname)
+ throws QueryTestFailedException {
+ DataSource ds = getDatasource(datasourceid, modelname);
+
+ return ds.getProperties();
+
+ }
+
+ private void loadDataSourceMappings()
+ throws QueryTestFailedException {
+
+ Document doc = null;
+ XMLReaderWriter readerWriter = new XMLReaderWriterImpl();
+
+ try {
+ doc = readerWriter.readDocument(getInputStream());
+ } catch (JDOMException e) {
+ e.printStackTrace();
+ throw new TransactionRuntimeException(e);
+ } catch (IOException e) {
+ e.printStackTrace();
+ throw new TransactionRuntimeException(e);
+ }
+
+ Element root = doc.getRootElement();
+ List<Element> rootElements = root.getChildren();
+ if (rootElements == null || rootElements.size() == 0) {
+ throw new TransactionRuntimeException("No children defined under root element " + DSCONFIG);
+ }
+
+ for (Iterator<Element> it = rootElements.iterator(); it.hasNext();) {
+ Element type = it.next();
+// System.out.println("Loading ds transactional type " + type.getName());
+ String typename = type.getAttributeValue(Property.Attributes.NAME);
+
+ List<Element> typeElements = type.getChildren();
+ if (typeElements != null) {
+ Map<String, DataSource> datasources = new HashMap<String, DataSource>(typeElements.size());
+
+ for (Iterator<Element> typeit = typeElements.iterator(); typeit.hasNext();) {
+ Element e = typeit.next();
+// System.out.println("Loading ds type " + e.getName());
+ addDataSource(e, typename, datasources);
+ }
+ dstypeMap.put(typename, datasources);
+ allDatasourcesMap.putAll(datasources);
+
+ }
+
+
+ }
+
+ if (dstypeMap == null || dstypeMap.isEmpty()) {
+ throw new TransactionRuntimeException(
+ "No Datasources were found in the mappings file");
+ }
+
+ System.out.println("Number of datasource types loaded " + dstypeMap.size());
+ System.out.println("Number of total datasource mappings loaded " + allDatasourcesMap.size());
+
+
+
+ }
+
+ private static void addDataSource(Element element, String type, Map<String, DataSource> datasources) {
+ String name = element.getAttributeValue(Property.Attributes.NAME);
+ Properties props = getProperties(element);
+
+ String dir = props.getProperty(DataSource.DIRECTORY);
+ String dsfile = DIRECTORY + dir + "/connection.properties";
+ Properties dsprops = loadProperties(dsfile);
+ if (dsprops != null) {
+ props.putAll(dsprops);
+ DataSource ds = new DataSource(name,
+ type,
+ props);
+ datasources.put(ds.getName(), ds);
+ System.out.println("Loaded datasource " + ds.getName());
+
+ }
+
+ }
+
+
+ private static Properties loadProperties(String filename) {
+ Properties props = null;
+
+ try {
+ InputStream in = DataSourceMgr.class.getResourceAsStream("/"
+ + filename);
+ if (in != null) {
+ props = new Properties();
+ props.load(in);
+ return props;
+ }
+ return null;
+ } catch (IOException e) {
+ throw new TransactionRuntimeException("Error loading properties from file '"
+ + filename + "'" + e.getMessage());
+ }
+ }
+
+ private static Properties getProperties(Element propertiesElement) {
+ Properties props = new Properties();
+
+ List<Element> properties = propertiesElement
+ .getChildren(Property.ELEMENT);
+ Iterator<Element> iterator = properties.iterator();
+ while (iterator.hasNext()) {
+ Element propertyElement = (Element) iterator.next();
+ String propertyName = propertyElement
+ .getAttributeValue(Property.Attributes.NAME);
+ String propertyValue = propertyElement.getText();
+
+ props.setProperty(propertyName, propertyValue);
+
+ }
+ return props;
+ }
+
+ private static InputStream getInputStream() {
+
+ InputStream in = DataSourceMgr.class.getResourceAsStream("/"
+ + DIRECTORY + DATASOURCE_MAPPING_FILE);
+ if (in != null) {
+
+ return in;
+ } else {
+ throw new RuntimeException(
+ "Failed to load datasource mapping file '" + DIRECTORY
+ + DATASOURCE_MAPPING_FILE + "'");
+ }
+
+ }
+
+ static final String DSCONFIG = "datasourceconfig";
+ static final String DATASOURCETYPE = "datasourcetype";
+ static final String DATASOURCE = "datasource";
+
+ static class Property {
+
+ /**
+ * This is the name of the Property Element.
+ */
+ public static final String ELEMENT = "property"; //$NON-NLS-1$
+
+ /**
+ * This class defines the Attributes of the Element class that contains
+ * it.
+ */
+ public static class Attributes {
+ public static final String NAME = "name"; //$NON-NLS-1$
+ }
+
+ }
+
+ public static void main(String[] args) {
+ DataSourceMgr mgr = DataSourceMgr.getInstance();
+
+ try {
+ DataSource ds1 = mgr.getDatasource("ds_mysql5", "model1");
+
+ DataSource ds2 = mgr.getDatasource("ds_mysql5", "model1");
+ if (ds1 != ds2) {
+ throw new RuntimeException("Datasources are not the same");
+ }
+ System.out.println("Value for ds_mysql5: "
+ + mgr.getDatasourceProperties("ds_mysql5", "model1"));
+ } catch (QueryTestFailedException e) {
+ e.printStackTrace();
+ }
+
+ }
+
+}
Property changes on: trunk/test-integration/db/src/main/java/org/teiid/test/framework/datasource/DataSourceMgr.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 3 months
teiid SVN: r1360 - in trunk: metadata/src/main/java/org/teiid/connector/metadata and 1 other directories.
by teiid-commits@lists.jboss.org
Author: shawkins
Date: 2009-09-15 16:08:41 -0400 (Tue, 15 Sep 2009)
New Revision: 1360
Modified:
trunk/connector-metadata/src/main/java/com/metamatrix/connector/metadata/internal/MetadataSearchCriteriaBuilder.java
trunk/metadata/src/main/java/org/teiid/connector/metadata/MetadataConnectorMetadata.java
trunk/metadata/src/main/java/org/teiid/metadata/index/RecordFactory.java
trunk/metadata/src/main/java/org/teiid/metadata/index/SimpleIndexUtil.java
Log:
removal of unused index logic post fork
Modified: trunk/connector-metadata/src/main/java/com/metamatrix/connector/metadata/internal/MetadataSearchCriteriaBuilder.java
===================================================================
--- trunk/connector-metadata/src/main/java/com/metamatrix/connector/metadata/internal/MetadataSearchCriteriaBuilder.java 2009-09-15 20:06:39 UTC (rev 1359)
+++ trunk/connector-metadata/src/main/java/com/metamatrix/connector/metadata/internal/MetadataSearchCriteriaBuilder.java 2009-09-15 20:08:41 UTC (rev 1360)
@@ -44,6 +44,7 @@
import com.metamatrix.core.util.ArgCheck;
import com.metamatrix.core.util.Assertion;
import com.metamatrix.core.util.StringUtil;
+import com.metamatrix.query.sql.lang.MatchCriteria;
import com.metamatrix.query.sql.lang.MatchCriteria.PatternTranslator;
@@ -58,15 +59,7 @@
// Map of fieldNames to MetadataSearchCriteria objects used to search
private final Map criteriaMap = new HashMap();
private ObjectQuery query;
- /** The default wildcard character - '%' */
- public static final char WILDCARD_CHAR = '%';
- /** The default single match character - '_' */
- public static final char MATCH_CHAR = '_';
-
- /** The internal null escape character */
- public static final char NULL_ESCAPE_CHAR = 0;
-
private final static PatternTranslator LIKE_TO_INDEX = new PatternTranslator("*", "?", new char[0], '\\'); //$NON-NLS-1$ //$NON-NLS-2$
/**
@@ -200,7 +193,7 @@
String literalValue = (String) this.query.getExpressionValue(rtExpression);
StringBuffer rePattern = null;
- char escapeChar = NULL_ESCAPE_CHAR;
+ char escapeChar = MatchCriteria.NULL_ESCAPE_CHAR;
if ( escape != null ) {
escapeChar = escape.charValue();
}
Modified: trunk/metadata/src/main/java/org/teiid/connector/metadata/MetadataConnectorMetadata.java
===================================================================
--- trunk/metadata/src/main/java/org/teiid/connector/metadata/MetadataConnectorMetadata.java 2009-09-15 20:06:39 UTC (rev 1359)
+++ trunk/metadata/src/main/java/org/teiid/connector/metadata/MetadataConnectorMetadata.java 2009-09-15 20:08:41 UTC (rev 1360)
@@ -203,11 +203,7 @@
AbstractMetadataRecord record = (AbstractMetadataRecord)j.next();
if (!StringUtil.isEmpty(record.getName())) {
String recordName = record.getName();
- if (hasCaseFunctions) {
- nameCriteria = nameCriteria.toUpperCase();
- recordName = recordName.toUpperCase();
- }
- if (!CharOperation.match(nameCriteria.toCharArray(), recordName.toCharArray(), true)) {
+ if (!CharOperation.match(nameCriteria.toCharArray(), recordName.toCharArray(), !hasCaseFunctions)) {
j.remove();
}
}
Modified: trunk/metadata/src/main/java/org/teiid/metadata/index/RecordFactory.java
===================================================================
--- trunk/metadata/src/main/java/org/teiid/metadata/index/RecordFactory.java 2009-09-15 20:06:39 UTC (rev 1359)
+++ trunk/metadata/src/main/java/org/teiid/metadata/index/RecordFactory.java 2009-09-15 20:08:41 UTC (rev 1360)
@@ -152,7 +152,7 @@
public static Collection getMetadataRecord(final IEntryResult[] queryResult) {
final Collection records = new ArrayList(queryResult.length);
for (int i = 0; i < queryResult.length; i++) {
- final AbstractMetadataRecord record = getMetadataRecord(queryResult[i]);
+ final AbstractMetadataRecord record = getMetadataRecord(queryResult[i].getWord());
if (record != null) {
records.add(record);
}
@@ -198,17 +198,6 @@
}
/**
- * Return the {@link com.metamatrix.modeler.core.metadata.runtime.MetadataRecord}
- * instances for specified IEntryResult.
- * @param entryResult
- * @param container Container reference to be set on the record
- */
- public static AbstractMetadataRecord getMetadataRecord(final IEntryResult queryResult) {
- AbstractMetadataRecord record = getMetadataRecord(queryResult.getWord());
- return record;
- }
-
- /**
* Append the specified IEntryResult[] to the IEntryResult
* to create a single result representing an index entry that
* was split across multiple index records.
@@ -329,9 +318,6 @@
final List tokens = StringUtil.split(str,String.valueOf(IndexConstants.RECORD_STRING.RECORD_DELIMITER));
final ModelRecordImpl model = new ModelRecordImpl();
- // Extract the index version information from the record
- int indexVersion = getIndexVersion(record);
-
// The tokens are the standard header values
int tokenIndex = 0;
setRecordHeaderValues(model, (String)tokens.get(tokenIndex++), (String)tokens.get(tokenIndex++), (String)tokens.get(tokenIndex++),
@@ -767,9 +753,6 @@
final List tokens = StringUtil.split(str,String.valueOf(IndexConstants.RECORD_STRING.RECORD_DELIMITER));
final ProcedureParameterRecordImpl paramRd = new ProcedureParameterRecordImpl();
- // Extract the index version information from the record
- int indexVersion = getIndexVersion(record);
-
// The tokens are the standard header values
int tokenIndex = 0;
Modified: trunk/metadata/src/main/java/org/teiid/metadata/index/SimpleIndexUtil.java
===================================================================
--- trunk/metadata/src/main/java/org/teiid/metadata/index/SimpleIndexUtil.java 2009-09-15 20:06:39 UTC (rev 1359)
+++ trunk/metadata/src/main/java/org/teiid/metadata/index/SimpleIndexUtil.java 2009-09-15 20:08:41 UTC (rev 1360)
@@ -25,17 +25,12 @@
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.Iterator;
import java.util.List;
import org.teiid.connector.metadata.runtime.MetadataConstants;
import org.teiid.core.index.IEntryResult;
-import org.teiid.internal.core.index.BlocksIndexInput;
import org.teiid.internal.core.index.Index;
-import com.metamatrix.api.exception.query.QueryMetadataException;
import com.metamatrix.core.MetaMatrixCoreException;
import com.metamatrix.core.util.ArgCheck;
import com.metamatrix.core.util.FileUtils;
@@ -78,135 +73,18 @@
//############################################################################################################################
/**
- * Return all index file records that match the specified record pattern.
- * The pattern can be constructed from any combination of characters
- * including the multiple character wildcard '*' and single character
- * wildcard '?'. The field delimiter is used to tokenize both the pattern
- * and the index record so that individual fields can be matched. The method
- * assumes that the first occurrence of the delimiter in the record alligns
- * with the first occurrence in the pattern. Any wildcard characters in the
- * pattern cannot represent a delimiter character.
- * @param indexes the array of MtkIndex instances to query
- * @param pattern
- * @param fieldDelimiter
- * @return results
- * @throws QueryMetadataException
- */
- public static IEntryResult[] queryIndex(final Index[] indexes, final char[] pattern, final char fieldDelimiter) throws MetaMatrixCoreException {
- final boolean isCaseSensitive = false;
- final List<IEntryResult> queryResult = new ArrayList<IEntryResult>();
-
- try {
- for (int i = 0; i < indexes.length; i++) {
- // Search for index records matching the specified pattern
- IEntryResult[] partialResults = indexes[i].queryEntriesMatching(pattern,isCaseSensitive);
-
- // If any of these IEntryResults represent an index record that is continued
- // across multiple entries within the index file then we must query for those
- // records and build the complete IEntryResult
- if (partialResults != null) {
- partialResults = addContinuationRecords(indexes[i], partialResults);
- }
-
- if (partialResults != null) {
- queryResult.addAll(Arrays.asList(partialResults));
- }
- }
- } catch(IOException e) {
- throw new MetaMatrixCoreException(e);
- }
-
- // Remove any results that do not match after tokenizing the record
- for (int i = 0, n = queryResult.size(); i < n; i++) {
- IEntryResult record = queryResult.get(i);
- if ( record == null || !entryMatches(record.getWord(),pattern,fieldDelimiter) ) {
- queryResult.remove(record);
- }
- }
-
- return queryResult.toArray(new IEntryResult[queryResult.size()]);
- }
-
- /**
- * Return true if the record matches the pattern after being tokenized using
- * the specified delimiter. The method assumes that the first occurrence of
- * the delimiter in the record alligns with the first occurrence in the pattern.
- * Any wildcard characters in the pattern cannot represent a delimiter character.
- * @param record
- * @param pattern
- * @param fieldDelimiter
- * @return
- */
- private static boolean entryMatches(final char[] record, final char[] pattern, final char fieldDelimiter) {
- final boolean isCaseSensitive = false;
- if (record == null)
- return false; // null record cannot match
- if (pattern == null)
- return true; // null pattern is equivalent to '*'
-
- String delimiter = String.valueOf(fieldDelimiter);
- List recordTokens = StringUtil.split(new String(record),delimiter);
- List patternTokens = StringUtil.split(new String(pattern),delimiter);
- if (patternTokens.size() > recordTokens.size()) {
- return false;
- }
-
- for (int i = 0, n = patternTokens.size(); i < n; i++) {
- char[] patternToken = ((String)patternTokens.get(i)).toCharArray();
- char[] recordToken = ((String)recordTokens.get(i)).toCharArray();
- if (!CharOperation.match(patternToken,recordToken,isCaseSensitive)) {
- return false;
- }
- }
- return true;
- }
-
- /**
* Return all index file records that match the specified record prefix
* or pattern. The pattern can be constructed from any combination of characters
* including the multiple character wildcard '*' and single character
* wildcard '?'. The prefix may be constructed from any combination of
* characters excluding the wildcard characters. The prefix specifies a fixed
* number of characters that the index record must start with.
- * @param indexes the array of MtkIndex instances to query
- * @param pattern
- * @return results
- * @throws MetamatrixCoreException
- */
- public static IEntryResult[] queryIndex(final Index[] indexes, final char[] pattern, final boolean isPrefix, final boolean returnFirstMatch) throws MetaMatrixCoreException {
- return queryIndex(null, indexes, pattern, isPrefix, true, returnFirstMatch);
- }
-
- /**
- * Return all index file records that match the specified record prefix
- * or pattern. The pattern can be constructed from any combination of characters
- * including the multiple character wildcard '*' and single character
- * wildcard '?'. The prefix may be constructed from any combination of
- * characters excluding the wildcard characters. The prefix specifies a fixed
- * number of characters that the index record must start with.
* @param monitor an optional ProgressMonitor
* @param indexes the array of MtkIndex instances to query
* @param pattern
* @return results
* @throws MetamatrixCoreException
*/
- public static IEntryResult[] queryIndex(ProgressMonitor monitor, final Index[] indexes, final char[] pattern, final boolean isPrefix, final boolean returnFirstMatch) throws MetaMatrixCoreException {
- return queryIndex(monitor, indexes, pattern, isPrefix, true, returnFirstMatch);
- }
-
- /**
- * Return all index file records that match the specified record prefix
- * or pattern. The pattern can be constructed from any combination of characters
- * including the multiple character wildcard '*' and single character
- * wildcard '?'. The prefix may be constructed from any combination of
- * characters excluding the wildcard characters. The prefix specifies a fixed
- * number of characters that the index record must start with.
- * @param monitor an optional ProgressMonitor
- * @param indexes the array of MtkIndex instances to query
- * @param pattern
- * @return results
- * @throws MetamatrixCoreException
- */
public static IEntryResult[] queryIndex(ProgressMonitor monitor, final Index[] indexes, final char[] pattern, final boolean isPrefix, final boolean isCaseSensitive, final boolean returnFirstMatch) throws MetaMatrixCoreException {
final List<IEntryResult> queryResult = new ArrayList<IEntryResult>();
if ( monitor != null ) {
@@ -264,104 +142,6 @@
return queryResult.toArray(new IEntryResult[queryResult.size()]);
}
- /**
- * Return all index file records that match the specified record prefix
- * or pattern. The pattern can be constructed from any combination of characters
- * including the multiple character wildcard '*' and single character
- * wildcard '?'. The prefix may be constructed from any combination of
- * characters excluding the wildcard characters. The prefix specifies a fixed
- * number of characters that the index record must start with.
- * @param monitor an optional ProgressMonitor
- * @param indexes the array of MtkIndex instances to query
- * @param pattern
- * @return results
- * @throws MetamatrixCoreException
- */
- public static IEntryResult[] queryIndex(ProgressMonitor monitor, final Index[] indexes, final Collection patterns, final boolean isPrefix, final boolean isCaseSensitive, final boolean returnFirstMatch) throws MetaMatrixCoreException {
- final List<IEntryResult> queryResult = new ArrayList<IEntryResult>();
- if ( monitor != null ) {
- monitor.beginTask( null, indexes.length );
- }
-
- // index file input
- BlocksIndexInput input = null;
-
- try {
- for (int i = 0; i < indexes.length; i++) {
-
- if ( monitor != null ) {
- monitor.worked( 1 );
- }
- // initialize input for the index file
- input = new BlocksIndexInput(indexes[i].getIndexFile());
-
- IEntryResult[] partialResults = null;
- for(final Iterator patternIter = patterns.iterator(); patternIter.hasNext();) {
- char[] pattern = ((String) patternIter.next()).toCharArray();
- if(isPrefix) {
- // Query based on prefix. This uses a fast binary search
- // based on matching the first n characters in the index record.
- // The index files contain records that are sorted alphabetically
- // by fullname such that the search algorithm can quickly determine
- // which index block(s) contain the matching prefixes.
- partialResults = input.queryEntriesPrefixedBy(pattern, isCaseSensitive);
- } else {
- // Search for index records matching the specified pattern
- partialResults = input.queryEntriesMatching(pattern, isCaseSensitive);
- }
-
- // If any of these IEntryResults represent an index record that is continued
- // across multiple entries within the index file then we must query for those
- // records and build the complete IEntryResult
- if (partialResults != null) {
- partialResults = addContinuationRecords(indexes[i], partialResults);
- }
-
- // Process these results against the specified pattern and return
- // only the subset entries that match both criteria
- if (partialResults != null) {
- for (int j = 0; j < partialResults.length; j++) {
- IEntryResult record = partialResults[j];
- if(record != null) {
- char[] recordWord = partialResults[j].getWord();
- // filter out any continuation records, they should already appended
- // to index record thet is continued
- if(recordWord[0] != MetadataConstants.RECORD_TYPE.RECORD_CONTINUATION) {
- if (!isPrefix) {
- // filter results that do not match after tokenizing the record
- if(entryMatches(recordWord,pattern,IndexConstants.RECORD_STRING.RECORD_DELIMITER) ) {
- queryResult.add(partialResults[j]);
- }
- } else {
- queryResult.add(partialResults[j]);
- }
- }
- }
- }
- }
- if (returnFirstMatch && queryResult.size() > 0) {
- break;
- }
-
- // close file input
- input.close();
- }
- }
- } catch(IOException e) {
- throw new MetaMatrixCoreException(e);
- } finally {
- // close file input
- try {
- if(input != null) {
- input.close();
- }
- } catch(IOException io) {}
- }
-
- return queryResult.toArray(new IEntryResult[queryResult.size()]);
- }
-
-
private static IEntryResult[] addContinuationRecords(final Index index, final IEntryResult[] partialResults) throws IOException {
final int blockSize = RecordFactory.INDEX_RECORD_BLOCK_SIZE;
@@ -564,27 +344,4 @@
return StringUtil.Constants.EMPTY_STRING + recordType;
}
-
- /**
- * Return the prefix match string that could be used to exactly match a fully
- * qualified entity name in an index record. All index records
- * contain a header portion of the form:
- * recordType|name|
- * @param name The fully qualified name for which the prefix match
- * string is to be constructed.
- * @return The pattern match string of the form: recordType|name|
- */
- public static String getPrefixPattern(final char recordType, final String uuid) {
-
- // construct the pattern string
- String patternStr = "" //$NON-NLS-1$
- + recordType
- + IndexConstants.RECORD_STRING.RECORD_DELIMITER;
- if(uuid != null && !uuid.equals(StringUtil.Constants.EMPTY_STRING)) {
- patternStr = patternStr + uuid.trim() + IndexConstants.RECORD_STRING.RECORD_DELIMITER;
- }
-
- return patternStr;
- }
-
}
15 years, 3 months
teiid SVN: r1359 - trunk/test-integration/db/src/main/java/org/teiid/test/framework/datasource.
by teiid-commits@lists.jboss.org
Author: shawkins
Date: 2009-09-15 16:06:39 -0400 (Tue, 15 Sep 2009)
New Revision: 1359
Removed:
trunk/test-integration/db/src/main/java/org/teiid/test/framework/datasource/DatasourceMgr.java
Log:
removing invalid class
Deleted: trunk/test-integration/db/src/main/java/org/teiid/test/framework/datasource/DatasourceMgr.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/framework/datasource/DatasourceMgr.java 2009-09-15 20:05:57 UTC (rev 1358)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/framework/datasource/DatasourceMgr.java 2009-09-15 20:06:39 UTC (rev 1359)
@@ -1,290 +0,0 @@
-/*
- * Copyright (c) 2000-2007 MetaMatrix, Inc.
- * All rights reserved.
- */
-package org.teiid.test.framework.datasource;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-import java.util.Properties;
-import java.util.Set;
-
-import org.jdom.Document;
-import org.jdom.Element;
-import org.jdom.JDOMException;
-import org.teiid.test.framework.exception.QueryTestFailedException;
-import org.teiid.test.framework.exception.TransactionRuntimeException;
-
-import com.metamatrix.common.xml.XMLReaderWriter;
-import com.metamatrix.common.xml.XMLReaderWriterImpl;
-
-/**
- * The DataSourceMgr is responsible for loading and managing the datasource
- * mapping properties file {@see #DATASOURCE_MAPPING_FILE} and the mapped
- * datasource properties files. The {@link #getDatasourceProperties(String)}
- * returns the properties defined for that datasourceid, which is mapped in the
- * mnappings file. This mapping allows the test
- *
- * @author vanhalbert
- *
- */
-public class DataSourceMgr {
-
- static final String DIRECTORY = "datasources/";
- static final String DATASOURCE_MAPPING_FILE = "datasource_mapping.xml";
-
- private static DataSourceMgr _instance = null;
-
- private Map<String, Map<String, DataSource>>dstypeMap = new HashMap<String, Map<String, DataSource>>(); //key=datasourcetype
-
- private Map<String, DataSource> allDatasourcesMap = new HashMap<String, DataSource>(); // key=datasource name
-
- private Map<String, DataSource> modelToDatasourceMap = new HashMap<String, DataSource>(); // key=modelname
-
- private Set<String> usedDataSources = new HashSet<String>();
-
-
- private DataSourceMgr() {
- }
-
- public static synchronized DataSourceMgr getInstance() {
- if (_instance == null) {
- _instance = new DataSourceMgr();
- try {
- _instance.loadDataSourceMappings();
- } catch (QueryTestFailedException e) {
- // TODO Auto-generated catch block
- throw new TransactionRuntimeException(e);
- } catch (TransactionRuntimeException e) {
- // TODO Auto-generated catch block
- throw e;
- }
-
- }
- return _instance;
- }
-
- public int numberOfAvailDataSources() {
- return allDatasourcesMap.size();
- }
-
- public DataSource getDatasource(String datasourceid, String modelName)
- throws QueryTestFailedException {
- DataSource ds = null;
-
- // map the datasource to the model and datasourceid
- // this is so the next time this combination is requested,
- // the same datasource is returned to ensure when consecutive calls during the process
- // corresponds to the same datasource
- String key = modelName + "_"+datasourceid;
-
- if (modelToDatasourceMap.containsKey(key)) {
- return modelToDatasourceMap.get(key);
- }
- if (dstypeMap.containsKey(datasourceid)) {
-
- Map datasources = dstypeMap.get(datasourceid);
- Iterator<DataSource> it= datasources.values().iterator();
- while(it.hasNext()) {
- DataSource checkit = it.next();
- if (!usedDataSources.contains(checkit.getName())) {
- usedDataSources.add(checkit.getName());
- ds = checkit;
- break;
- }
- }
-
- } else {
- ds = allDatasourcesMap.get(datasourceid);
- }
- if (ds == null) {
- throw new QueryTestFailedException("DatasourceID " + datasourceid
- + " is not a defined datasource in the mappings file ");
-
- }
-
- modelToDatasourceMap.put(key, ds);
- return ds;
-
- }
-
- public Properties getDatasourceProperties(String datasourceid, String modelname)
- throws QueryTestFailedException {
- DataSource ds = getDatasource(datasourceid, modelname);
-
- return ds.getProperties();
-
- }
-
- private void loadDataSourceMappings()
- throws QueryTestFailedException {
-
- Document doc = null;
- XMLReaderWriter readerWriter = new XMLReaderWriterImpl();
-
- try {
- doc = readerWriter.readDocument(getInputStream());
- } catch (JDOMException e) {
- e.printStackTrace();
- throw new TransactionRuntimeException(e);
- } catch (IOException e) {
- e.printStackTrace();
- throw new TransactionRuntimeException(e);
- }
-
- Element root = doc.getRootElement();
- List<Element> rootElements = root.getChildren();
- if (rootElements == null || rootElements.size() == 0) {
- throw new TransactionRuntimeException("No children defined under root element " + DSCONFIG);
- }
-
- for (Iterator<Element> it = rootElements.iterator(); it.hasNext();) {
- Element type = it.next();
-// System.out.println("Loading ds transactional type " + type.getName());
- String typename = type.getAttributeValue(Property.Attributes.NAME);
-
- List<Element> typeElements = type.getChildren();
- if (typeElements != null) {
- Map<String, DataSource> datasources = new HashMap<String, DataSource>(typeElements.size());
-
- for (Iterator<Element> typeit = typeElements.iterator(); typeit.hasNext();) {
- Element e = typeit.next();
-// System.out.println("Loading ds type " + e.getName());
- addDataSource(e, typename, datasources);
- }
- dstypeMap.put(typename, datasources);
- allDatasourcesMap.putAll(datasources);
-
- }
-
-
- }
-
- if (dstypeMap == null || dstypeMap.isEmpty()) {
- throw new TransactionRuntimeException(
- "No Datasources were found in the mappings file");
- }
-
- System.out.println("Number of datasource types loaded " + dstypeMap.size());
- System.out.println("Number of total datasource mappings loaded " + allDatasourcesMap.size());
-
-
-
- }
-
- private static void addDataSource(Element element, String type, Map<String, DataSource> datasources) {
- String name = element.getAttributeValue(Property.Attributes.NAME);
- Properties props = getProperties(element);
-
- String dir = props.getProperty(DataSource.DIRECTORY);
- String dsfile = DIRECTORY + dir + "/connection.properties";
- Properties dsprops = loadProperties(dsfile);
- if (dsprops != null) {
- props.putAll(dsprops);
- DataSource ds = new DataSource(name,
- type,
- props);
- datasources.put(ds.getName(), ds);
- System.out.println("Loaded datasource " + ds.getName());
-
- }
-
- }
-
-
- private static Properties loadProperties(String filename) {
- Properties props = null;
-
- try {
- InputStream in = DataSourceMgr.class.getResourceAsStream("/"
- + filename);
- if (in != null) {
- props = new Properties();
- props.load(in);
- return props;
- }
- return null;
- } catch (IOException e) {
- throw new TransactionRuntimeException("Error loading properties from file '"
- + filename + "'" + e.getMessage());
- }
- }
-
- private static Properties getProperties(Element propertiesElement) {
- Properties props = new Properties();
-
- List<Element> properties = propertiesElement
- .getChildren(Property.ELEMENT);
- Iterator<Element> iterator = properties.iterator();
- while (iterator.hasNext()) {
- Element propertyElement = (Element) iterator.next();
- String propertyName = propertyElement
- .getAttributeValue(Property.Attributes.NAME);
- String propertyValue = propertyElement.getText();
-
- props.setProperty(propertyName, propertyValue);
-
- }
- return props;
- }
-
- private static InputStream getInputStream() {
-
- InputStream in = DataSourceMgr.class.getResourceAsStream("/"
- + DIRECTORY + DATASOURCE_MAPPING_FILE);
- if (in != null) {
-
- return in;
- } else {
- throw new RuntimeException(
- "Failed to load datasource mapping file '" + DIRECTORY
- + DATASOURCE_MAPPING_FILE + "'");
- }
-
- }
-
- static final String DSCONFIG = "datasourceconfig";
- static final String DATASOURCETYPE = "datasourcetype";
- static final String DATASOURCE = "datasource";
-
- static class Property {
-
- /**
- * This is the name of the Property Element.
- */
- public static final String ELEMENT = "property"; //$NON-NLS-1$
-
- /**
- * This class defines the Attributes of the Element class that contains
- * it.
- */
- public static class Attributes {
- public static final String NAME = "name"; //$NON-NLS-1$
- }
-
- }
-
- public static void main(String[] args) {
- DataSourceMgr mgr = DataSourceMgr.getInstance();
-
- try {
- DataSource ds1 = mgr.getDatasource("ds_mysql5", "model1");
-
- DataSource ds2 = mgr.getDatasource("ds_mysql5", "model1");
- if (ds1 != ds2) {
- throw new RuntimeException("Datasources are not the same");
- }
- System.out.println("Value for ds_mysql5: "
- + mgr.getDatasourceProperties("ds_mysql5", "model1"));
- } catch (QueryTestFailedException e) {
- e.printStackTrace();
- }
-
- }
-
-}
15 years, 3 months
teiid SVN: r1358 - trunk/test-integration/db.
by teiid-commits@lists.jboss.org
Author: shawkins
Date: 2009-09-15 16:05:57 -0400 (Tue, 15 Sep 2009)
New Revision: 1358
Added:
trunk/test-integration/db/.classpath
trunk/test-integration/db/.project
Modified:
trunk/test-integration/db/
Log:
adding to svn ignore
Property changes on: trunk/test-integration/db
___________________________________________________________________
Name: svn:ignore
+ target
.settings
Added: trunk/test-integration/db/.classpath
===================================================================
--- trunk/test-integration/db/.classpath (rev 0)
+++ trunk/test-integration/db/.classpath 2009-09-15 20:05:57 UTC (rev 1358)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" output="target/classes" path="src/main/java"/>
+ <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
+ <classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
+ <classpathentry kind="output" path="target/classes"/>
+</classpath>
Property changes on: trunk/test-integration/db/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/test-integration/db/.project
===================================================================
--- trunk/test-integration/db/.project (rev 0)
+++ trunk/test-integration/db/.project 2009-09-15 20:05:57 UTC (rev 1358)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>db</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.maven.ide.eclipse.maven2Builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.maven.ide.eclipse.maven2Nature</nature>
+ </natures>
+</projectDescription>
Property changes on: trunk/test-integration/db/.project
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 3 months
teiid SVN: r1357 - trunk/documentation/salesforce-connector-guide.
by teiid-commits@lists.jboss.org
Author: shawkins
Date: 2009-09-15 15:44:46 -0400 (Tue, 15 Sep 2009)
New Revision: 1357
Modified:
trunk/documentation/salesforce-connector-guide/
Log:
adding to svn ignore
Property changes on: trunk/documentation/salesforce-connector-guide
___________________________________________________________________
Name: svn:ignore
+ target
.classpath
.settings
.project
15 years, 3 months
teiid SVN: r1356 - in trunk: adminshell and 42 other directories.
by teiid-commits@lists.jboss.org
Author: shawkins
Date: 2009-09-15 11:10:09 -0400 (Tue, 15 Sep 2009)
New Revision: 1356
Modified:
trunk/adminshell/pom.xml
trunk/build/pom.xml
trunk/cache-jbosscache/pom.xml
trunk/client-jdbc/pom.xml
trunk/client/pom.xml
trunk/common-core/pom.xml
trunk/common-internal/pom.xml
trunk/connector-api/pom.xml
trunk/connector-metadata/pom.xml
trunk/connector-sdk/pom.xml
trunk/connectors/connector-jdbc/pom.xml
trunk/connectors/connector-ldap/pom.xml
trunk/connectors/connector-loopback/pom.xml
trunk/connectors/connector-salesforce/pom.xml
trunk/connectors/connector-text/pom.xml
trunk/connectors/connector-xml-common/pom.xml
trunk/connectors/connector-xml/pom.xml
trunk/connectors/pom.xml
trunk/connectors/salesforce-api/pom.xml
trunk/connectors/sandbox/connector-exec/pom.xml
trunk/connectors/sandbox/connector-object/pom.xml
trunk/connectors/sandbox/connector-yahoo/pom.xml
trunk/connectors/sandbox/pom.xml
trunk/console/pom.xml
trunk/console/src/resources/embedded/META-INF/rhq-plugin.xml
trunk/documentation/admin-guide/pom.xml
trunk/documentation/connector-developer-guide/pom.xml
trunk/documentation/docbook/custom.dtd
trunk/documentation/jdbc-connector-guide/pom.xml
trunk/documentation/pom.xml
trunk/documentation/quick-start-example/pom.xml
trunk/documentation/reference/pom.xml
trunk/documentation/salesforce-connector-guide/pom.xml
trunk/documentation/server-extensions-guide/pom.xml
trunk/engine/pom.xml
trunk/hibernate-dialect/pom.xml
trunk/metadata/pom.xml
trunk/pom.xml
trunk/runtime/pom.xml
trunk/server/pom.xml
trunk/test-integration/common/pom.xml
trunk/test-integration/db/pom.xml
trunk/test-integration/pom.xml
trunk/txn-jbossts/pom.xml
Log:
promoting trunk to 6.3
Modified: trunk/adminshell/pom.xml
===================================================================
--- trunk/adminshell/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/adminshell/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -3,7 +3,7 @@
<parent>
<artifactId>teiid</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>teiid-adminshell</artifactId>
Modified: trunk/build/pom.xml
===================================================================
--- trunk/build/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/build/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -3,7 +3,7 @@
<parent>
<artifactId>teiid</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>build</artifactId>
Modified: trunk/cache-jbosscache/pom.xml
===================================================================
--- trunk/cache-jbosscache/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/cache-jbosscache/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -4,7 +4,7 @@
<parent>
<artifactId>teiid</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>teiid-cache-jbosscache</artifactId>
Modified: trunk/client/pom.xml
===================================================================
--- trunk/client/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/client/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -5,7 +5,7 @@
<parent>
<artifactId>teiid</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>teiid-client</artifactId>
Modified: trunk/client-jdbc/pom.xml
===================================================================
--- trunk/client-jdbc/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/client-jdbc/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -6,7 +6,7 @@
<parent>
<artifactId>teiid</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>teiid-client-jdbc</artifactId>
Modified: trunk/common-core/pom.xml
===================================================================
--- trunk/common-core/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/common-core/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -4,7 +4,7 @@
<parent>
<artifactId>teiid</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>teiid-common-core</artifactId>
Modified: trunk/common-internal/pom.xml
===================================================================
--- trunk/common-internal/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/common-internal/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -5,7 +5,7 @@
<parent>
<artifactId>teiid</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>teiid-common-internal</artifactId>
Modified: trunk/connector-api/pom.xml
===================================================================
--- trunk/connector-api/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/connector-api/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -5,7 +5,7 @@
<parent>
<artifactId>teiid</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>teiid-connector-api</artifactId>
Modified: trunk/connector-metadata/pom.xml
===================================================================
--- trunk/connector-metadata/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/connector-metadata/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -4,7 +4,7 @@
<parent>
<artifactId>teiid</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.teiid</groupId>
Modified: trunk/connector-sdk/pom.xml
===================================================================
--- trunk/connector-sdk/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/connector-sdk/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -4,7 +4,7 @@
<parent>
<artifactId>teiid</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>teiid-connector-sdk</artifactId>
Modified: trunk/connectors/connector-jdbc/pom.xml
===================================================================
--- trunk/connectors/connector-jdbc/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/connectors/connector-jdbc/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -5,7 +5,7 @@
<parent>
<artifactId>connectors</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>connector-jdbc</artifactId>
Modified: trunk/connectors/connector-ldap/pom.xml
===================================================================
--- trunk/connectors/connector-ldap/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/connectors/connector-ldap/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -2,7 +2,7 @@
<parent>
<artifactId>connectors</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>connector-ldap</artifactId>
Modified: trunk/connectors/connector-loopback/pom.xml
===================================================================
--- trunk/connectors/connector-loopback/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/connectors/connector-loopback/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -5,7 +5,7 @@
<parent>
<artifactId>connectors</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>connector-loopback</artifactId>
Modified: trunk/connectors/connector-salesforce/pom.xml
===================================================================
--- trunk/connectors/connector-salesforce/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/connectors/connector-salesforce/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -5,7 +5,7 @@
<parent>
<artifactId>connectors</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>connector-salesforce</artifactId>
Modified: trunk/connectors/connector-text/pom.xml
===================================================================
--- trunk/connectors/connector-text/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/connectors/connector-text/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -3,7 +3,7 @@
<parent>
<artifactId>connectors</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>connector-text</artifactId>
Modified: trunk/connectors/connector-xml/pom.xml
===================================================================
--- trunk/connectors/connector-xml/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/connectors/connector-xml/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -5,7 +5,7 @@
<parent>
<artifactId>connectors</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>connector-xml</artifactId>
Modified: trunk/connectors/connector-xml-common/pom.xml
===================================================================
--- trunk/connectors/connector-xml-common/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/connectors/connector-xml-common/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -5,7 +5,7 @@
<parent>
<artifactId>connectors</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>connector-xml-common</artifactId>
Modified: trunk/connectors/pom.xml
===================================================================
--- trunk/connectors/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/connectors/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -4,7 +4,7 @@
<parent>
<artifactId>teiid</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.teiid</groupId>
Modified: trunk/connectors/salesforce-api/pom.xml
===================================================================
--- trunk/connectors/salesforce-api/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/connectors/salesforce-api/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -2,7 +2,7 @@
<parent>
<artifactId>connectors</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>salesforce-api</artifactId>
Modified: trunk/connectors/sandbox/connector-exec/pom.xml
===================================================================
--- trunk/connectors/sandbox/connector-exec/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/connectors/sandbox/connector-exec/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -3,7 +3,7 @@
<parent>
<artifactId>sandbox</artifactId>
<groupId>org.jboss.teiid.connectors</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>connector-exec</artifactId>
Modified: trunk/connectors/sandbox/connector-object/pom.xml
===================================================================
--- trunk/connectors/sandbox/connector-object/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/connectors/sandbox/connector-object/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -4,7 +4,7 @@
<parent>
<artifactId>sandbox</artifactId>
<groupId>org.jboss.teiid.connectors</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>connector-object</artifactId>
Modified: trunk/connectors/sandbox/connector-yahoo/pom.xml
===================================================================
--- trunk/connectors/sandbox/connector-yahoo/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/connectors/sandbox/connector-yahoo/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -3,7 +3,7 @@
<parent>
<artifactId>sandbox</artifactId>
<groupId>org.jboss.teiid.connectors</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>connector-yahoo</artifactId>
Modified: trunk/connectors/sandbox/pom.xml
===================================================================
--- trunk/connectors/sandbox/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/connectors/sandbox/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -3,7 +3,7 @@
<parent>
<artifactId>connectors</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.teiid.connectors</groupId>
Modified: trunk/console/pom.xml
===================================================================
--- trunk/console/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/console/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -3,7 +3,7 @@
<parent>
<artifactId>teiid</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: trunk/console/src/resources/embedded/META-INF/rhq-plugin.xml
===================================================================
--- trunk/console/src/resources/embedded/META-INF/rhq-plugin.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/console/src/resources/embedded/META-INF/rhq-plugin.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -24,7 +24,7 @@
<plugin name="TeiidPlugin" displayName="Teiid Plugin"
package="org.teiid.rhq.plugin" version="2.0.0"
- description="Supports management and monitoring of JBoss Teiid DataServices version 6.2"
+ description="Supports management and monitoring of JBoss Teiid"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:xmlns:rhq-plugin"
Modified: trunk/documentation/admin-guide/pom.xml
===================================================================
--- trunk/documentation/admin-guide/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/documentation/admin-guide/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -3,7 +3,7 @@
<parent>
<groupId>org.jboss.teiid.documentation</groupId>
<artifactId>documentation</artifactId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>admin-guide</artifactId>
Modified: trunk/documentation/connector-developer-guide/pom.xml
===================================================================
--- trunk/documentation/connector-developer-guide/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/documentation/connector-developer-guide/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -3,7 +3,7 @@
<parent>
<groupId>org.jboss.teiid.documentation</groupId>
<artifactId>documentation</artifactId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>connector-developer-guide</artifactId>
Modified: trunk/documentation/docbook/custom.dtd
===================================================================
--- trunk/documentation/docbook/custom.dtd 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/documentation/docbook/custom.dtd 2009-09-15 15:10:09 UTC (rev 1356)
@@ -1,4 +1,4 @@
-<!ENTITY versionNumber "6.2.0">
+<!ENTITY versionNumber "6.3.0">
<!ENTITY copyrightYear "2009">
<!ENTITY copyrightHolder "Red Hat, Inc.">
<!ENTITY url "http://www.jboss.org/teiid/">
Modified: trunk/documentation/jdbc-connector-guide/pom.xml
===================================================================
--- trunk/documentation/jdbc-connector-guide/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/documentation/jdbc-connector-guide/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -3,7 +3,7 @@
<parent>
<groupId>org.jboss.teiid.documentation</groupId>
<artifactId>documentation</artifactId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>jdbc-connector</artifactId>
Modified: trunk/documentation/pom.xml
===================================================================
--- trunk/documentation/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/documentation/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -3,7 +3,7 @@
<parent>
<artifactId>teiid</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.teiid.documentation</groupId>
Modified: trunk/documentation/quick-start-example/pom.xml
===================================================================
--- trunk/documentation/quick-start-example/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/documentation/quick-start-example/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -3,7 +3,7 @@
<parent>
<groupId>org.jboss.teiid.documentation</groupId>
<artifactId>documentation</artifactId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>quick-start-guide</artifactId>
Modified: trunk/documentation/reference/pom.xml
===================================================================
--- trunk/documentation/reference/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/documentation/reference/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -3,7 +3,7 @@
<parent>
<groupId>org.jboss.teiid.documentation</groupId>
<artifactId>documentation</artifactId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>reference</artifactId>
Modified: trunk/documentation/salesforce-connector-guide/pom.xml
===================================================================
--- trunk/documentation/salesforce-connector-guide/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/documentation/salesforce-connector-guide/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -3,7 +3,7 @@
<parent>
<groupId>org.jboss.teiid.documentation</groupId>
<artifactId>documentation</artifactId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>salesforce-connector-guide</artifactId>
Modified: trunk/documentation/server-extensions-guide/pom.xml
===================================================================
--- trunk/documentation/server-extensions-guide/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/documentation/server-extensions-guide/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -3,7 +3,7 @@
<parent>
<groupId>org.jboss.teiid.documentation</groupId>
<artifactId>documentation</artifactId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>server-extensions-guide</artifactId>
Modified: trunk/engine/pom.xml
===================================================================
--- trunk/engine/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/engine/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -3,7 +3,7 @@
<parent>
<artifactId>teiid</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>teiid-engine</artifactId>
Modified: trunk/hibernate-dialect/pom.xml
===================================================================
--- trunk/hibernate-dialect/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/hibernate-dialect/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -3,12 +3,11 @@
<parent>
<artifactId>teiid</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>teiid-hibernate-dialect</artifactId>
<name>Hibernate Dialect</name>
- <version>6.2.0-SNAPSHOT</version>
<description>Teiid Hibernate Dialect</description>
<dependencies>
<dependency>
Modified: trunk/metadata/pom.xml
===================================================================
--- trunk/metadata/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/metadata/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -3,7 +3,7 @@
<parent>
<artifactId>teiid</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>teiid-metadata</artifactId>
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -6,7 +6,7 @@
<artifactId>teiid</artifactId>
<packaging>pom</packaging>
<name>Teiid</name>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
<description>Federated SQL and XML query engine.</description>
<properties>
<ant.version>1.7.0</ant.version>
Modified: trunk/runtime/pom.xml
===================================================================
--- trunk/runtime/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/runtime/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -3,7 +3,7 @@
<parent>
<artifactId>teiid</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.teiid</groupId>
Modified: trunk/server/pom.xml
===================================================================
--- trunk/server/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/server/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -5,7 +5,7 @@
<parent>
<artifactId>teiid</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>teiid-server</artifactId>
Modified: trunk/test-integration/common/pom.xml
===================================================================
--- trunk/test-integration/common/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/test-integration/common/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -4,7 +4,7 @@
<parent>
<artifactId>teiid-test-integration</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>common</artifactId>
Modified: trunk/test-integration/db/pom.xml
===================================================================
--- trunk/test-integration/db/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/test-integration/db/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -4,7 +4,7 @@
<parent>
<artifactId>teiid-test-integration</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>db</artifactId>
Modified: trunk/test-integration/pom.xml
===================================================================
--- trunk/test-integration/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/test-integration/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -4,7 +4,7 @@
<parent>
<artifactId>teiid</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>teiid-test-integration</artifactId>
Modified: trunk/txn-jbossts/pom.xml
===================================================================
--- trunk/txn-jbossts/pom.xml 2009-09-15 03:49:18 UTC (rev 1355)
+++ trunk/txn-jbossts/pom.xml 2009-09-15 15:10:09 UTC (rev 1356)
@@ -3,7 +3,7 @@
<parent>
<artifactId>teiid</artifactId>
<groupId>org.jboss.teiid</groupId>
- <version>6.2.0-SNAPSHOT</version>
+ <version>6.3.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>teiid-txn-jbossts</artifactId>
15 years, 3 months
teiid SVN: r1355 - in trunk/test-integration/db/src/main/resources/datasources: postgres and 1 other directory.
by teiid-commits@lists.jboss.org
Author: vhalbert(a)redhat.com
Date: 2009-09-14 23:49:18 -0400 (Mon, 14 Sep 2009)
New Revision: 1355
Added:
trunk/test-integration/db/src/main/resources/datasources/postgres/
trunk/test-integration/db/src/main/resources/datasources/postgres/example_connection.properties
Log:
Teiid 773 - adding postgres eample datasource
Added: trunk/test-integration/db/src/main/resources/datasources/postgres/example_connection.properties
===================================================================
--- trunk/test-integration/db/src/main/resources/datasources/postgres/example_connection.properties (rev 0)
+++ trunk/test-integration/db/src/main/resources/datasources/postgres/example_connection.properties 2009-09-15 03:49:18 UTC (rev 1355)
@@ -0,0 +1,17 @@
+db.type=postgres
+driver=org.postgresql.Driver
+URL=jdbc:postgresql://(servername):5432/(databasename)
+User=
+Password=
+
+servername=(servername)
+databasename=(databasename)
+portnumber=1527
+ds-jndiname=(servername)_1527
+
+Immutable=true
+
+
+
+
+
Property changes on: trunk/test-integration/db/src/main/resources/datasources/postgres/example_connection.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 3 months