Author: rareddy
Date: 2012-09-28 12:09:37 -0400 (Fri, 28 Sep 2012)
New Revision: 4487
Modified:
trunk/connectors/translator-jdbc/src/main/java/org/teiid/translator/jdbc/JDBCExecutionFactory.java
trunk/connectors/translator-jpa/src/main/java/org/teiid/translator/jpa/JPA2ExecutionFactory.java
trunk/connectors/translator-ldap/src/main/java/org/teiid/translator/ldap/LDAPExecutionFactory.java
trunk/connectors/translator-salesforce/src/main/java/org/teiid/translator/salesforce/SalesForceExecutionFactory.java
Log:
TEIID-2176: Turning off the native procedure by default; user can override the translator
property in the vdb.xml to turn it on
Modified:
trunk/connectors/translator-jdbc/src/main/java/org/teiid/translator/jdbc/JDBCExecutionFactory.java
===================================================================
---
trunk/connectors/translator-jdbc/src/main/java/org/teiid/translator/jdbc/JDBCExecutionFactory.java 2012-09-28
15:59:09 UTC (rev 4486)
+++
trunk/connectors/translator-jdbc/src/main/java/org/teiid/translator/jdbc/JDBCExecutionFactory.java 2012-09-28
16:09:37 UTC (rev 4487)
@@ -140,7 +140,6 @@
setSupportsInnerJoins(true);
setMaxInCriteriaSize(DEFAULT_MAX_IN_CRITERIA);
setMaxDependentInPredicates(DEFAULT_MAX_DEPENDENT_PREDICATES);
- setSupportsNativeQueries(true);
}
@Override
Modified:
trunk/connectors/translator-jpa/src/main/java/org/teiid/translator/jpa/JPA2ExecutionFactory.java
===================================================================
---
trunk/connectors/translator-jpa/src/main/java/org/teiid/translator/jpa/JPA2ExecutionFactory.java 2012-09-28
15:59:09 UTC (rev 4486)
+++
trunk/connectors/translator-jpa/src/main/java/org/teiid/translator/jpa/JPA2ExecutionFactory.java 2012-09-28
16:09:37 UTC (rev 4487)
@@ -52,10 +52,6 @@
public class JPA2ExecutionFactory extends ExecutionFactory<EntityManagerFactory,
EntityManager> {
private Map<String, FunctionModifier> functionModifiers = new TreeMap<String,
FunctionModifier>(String.CASE_INSENSITIVE_ORDER);
- public JPA2ExecutionFactory() {
- setSupportsNativeQueries(true);
- }
-
@Override
public void start() throws TranslatorException {
super.start();
Modified:
trunk/connectors/translator-ldap/src/main/java/org/teiid/translator/ldap/LDAPExecutionFactory.java
===================================================================
---
trunk/connectors/translator-ldap/src/main/java/org/teiid/translator/ldap/LDAPExecutionFactory.java 2012-09-28
15:59:09 UTC (rev 4486)
+++
trunk/connectors/translator-ldap/src/main/java/org/teiid/translator/ldap/LDAPExecutionFactory.java 2012-09-28
16:09:37 UTC (rev 4487)
@@ -63,7 +63,6 @@
public LDAPExecutionFactory() {
this.setMaxInCriteriaSize(1000);
this.setMaxDependentInPredicates(25); //no spec limit on query size, AD is 10MB for the
query
- setSupportsNativeQueries(true);
}
@TranslatorProperty(display="Default Search Base DN",
description="Default Base DN for LDAP Searches")
Modified:
trunk/connectors/translator-salesforce/src/main/java/org/teiid/translator/salesforce/SalesForceExecutionFactory.java
===================================================================
---
trunk/connectors/translator-salesforce/src/main/java/org/teiid/translator/salesforce/SalesForceExecutionFactory.java 2012-09-28
15:59:09 UTC (rev 4486)
+++
trunk/connectors/translator-salesforce/src/main/java/org/teiid/translator/salesforce/SalesForceExecutionFactory.java 2012-09-28
16:09:37 UTC (rev 4487)
@@ -70,7 +70,6 @@
setSupportsOrderBy(false);
setSupportsOuterJoins(true);
setSupportedJoinCriteria(SupportedJoinCriteria.KEY);
- setSupportsNativeQueries(true);
}
@TranslatorProperty(display="Audit Model Fields", advanced=true)
Show replies by date