Package org.teiid.deployers
Class TranslatorUtil
- java.lang.Object
-
- org.teiid.deployers.TranslatorUtil
-
public class TranslatorUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEPLOYMENT_NAME
-
Constructor Summary
Constructors Constructor Description TranslatorUtil()
-
Method Summary
-
-
-
Field Detail
-
DEPLOYMENT_NAME
public static final String DEPLOYMENT_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
buildExecutionFactory
public static ExecutionFactory buildExecutionFactory(VDBTranslatorMetaData data) throws TeiidException
- Throws:
TeiidException
-
buildDelegateAwareExecutionFactory
public static ExecutionFactory<Object,Object> buildDelegateAwareExecutionFactory(VDBTranslatorMetaData translator, ConnectorManagerRepository.ExecutionFactoryProvider provider) throws ConnectorManagerRepository.ConnectorManagerException
-
getSetter
public static Method getSetter(Class<?> clazz, Method method) throws SecurityException, TeiidException
- Throws:
SecurityException
TeiidException
-
getTranslatorName
public static String getTranslatorName(ExecutionFactory factory)
-
buildTranslatorMetadata
public static VDBTranslatorMetaData buildTranslatorMetadata(ExecutionFactory factory, String moduleName)
-
buildTranslatorMetadata
public static VDBTranslatorMetaData buildTranslatorMetadata(ExecutionFactory factory, String moduleName, boolean useNewInstance)
-
getDefaultValue
public static Object getDefaultValue(Object instance, Method method, TranslatorProperty prop)
-
getExecutionFactory
public static ExecutionFactory<Object,Object> getExecutionFactory(String name, TranslatorRepository vdbRepo, TranslatorRepository repo, VDBMetaData deployment, IdentityHashMap<Translator,ExecutionFactory<Object,Object>> map, HashSet<String> building) throws ConnectorManagerRepository.ConnectorManagerException
-
-