public LanguageBridgeFactory(QueryMetadataInterface metadata) { if (metadata != null) { metadataFactory = new RuntimeMetadataImpl(metadata); } }
@Override public Column getColumn(String schema, String table, String name) throws TranslatorException { return getColumn(schema + AbstractMetadataRecord.NAME_DELIM_CHAR + table + AbstractMetadataRecord.NAME_DELIM_CHAR + name); }
@Override public Procedure getProcedure(String schema, String name) throws TranslatorException { return getProcedure(schema + AbstractMetadataRecord.NAME_DELIM_CHAR + name); }
if(sp.getProcedureID() != null) { try { proc = this.metadataFactory.getProcedure(sp.getGroup().getName()); } catch (TranslatorException e) { throw new TeiidRuntimeException(QueryPlugin.Event.TEIID30486, e); if (param.isUsingDefault() && BaseColumn.OMIT_DEFAULT.equalsIgnoreCase(metadataFactory.getMetadata().getExtensionProperty(param.getMetadataID(), BaseColumn.DEFAULT_HANDLING, false))) { continue; ProcedureParameter metadataParam = metadataFactory.getParameter(param);
@Override public Table getTable(String fullName) throws TranslatorException { try { Object groupId = metadata.getGroupID(fullName); return getGroup(groupId); } catch (QueryMetadataException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30466, e); } catch (TeiidComponentException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30467, e); } }
@Override public Column getColumn(String fullName) throws TranslatorException { try { Object metadataId = metadata.getElementID(fullName); return getElement(metadataId); } catch (QueryMetadataException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30464, e); } catch (TeiidComponentException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30465, e); } }
@Override public Table getTable(String schema, String name) throws TranslatorException { return getTable(schema + AbstractMetadataRecord.NAME_DELIM_CHAR + name); }
f.setType(args[i].getType()); FunctionDescriptor descriptor = metadataFactory.getMetadata().getFunctionLibrary().findFunction(SourceSystemFunctions.IFNULL, new Class[] { args[i].getType(), DataTypeManager.DefaultDataClasses.STRING }); f.setFunctionDescriptor(descriptor); metadataFactory.getMetadata().getFunctionLibrary().findFunction(SourceSystemFunctions.CONCAT, new Class[] { DataTypeManager.DefaultDataClasses.STRING, DataTypeManager.DefaultDataClasses.STRING }); concat.setFunctionDescriptor(descriptor);
if(sp.getProcedureID() != null) { try { proc = this.metadataFactory.getProcedure(sp.getGroup().getName()); } catch (TranslatorException e) { throw new TeiidRuntimeException(QueryPlugin.Event.TEIID30486, e); if (param.isUsingDefault() && "omit".equalsIgnoreCase(metadataFactory.getMetadata().getExtensionProperty(param.getMetadataID(), BaseColumn.DEFAULT_HANDLING, false))) { continue; ProcedureParameter metadataParam = metadataFactory.getParameter(param);
@Override public Table getTable(String fullName) throws TranslatorException { try { Object groupId = metadata.getGroupID(fullName); return getGroup(groupId); } catch (QueryMetadataException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30466, e); } catch (TeiidComponentException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30467, e); } }
@Override public Column getColumn(String fullName) throws TranslatorException { try { Object metadataId = metadata.getElementID(fullName); return getElement(metadataId); } catch (QueryMetadataException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30464, e); } catch (TeiidComponentException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30465, e); } }
@Override public Table getTable(String schema, String name) throws TranslatorException { return getTable(schema + AbstractMetadataRecord.NAME_DELIM_CHAR + name); }
f.setType(args[i].getType()); FunctionDescriptor descriptor = metadataFactory.getMetadata().getFunctionLibrary().findFunction(SourceSystemFunctions.IFNULL, new Class[] { args[i].getType(), DataTypeManager.DefaultDataClasses.STRING }); f.setFunctionDescriptor(descriptor); metadataFactory.getMetadata().getFunctionLibrary().findFunction(SourceSystemFunctions.CONCAT, new Class[] { DataTypeManager.DefaultDataClasses.STRING, DataTypeManager.DefaultDataClasses.STRING }); concat.setFunctionDescriptor(descriptor);
public LanguageBridgeFactory(QueryMetadataInterface metadata) { if (metadata != null) { metadataFactory = new RuntimeMetadataImpl(metadata); } }
if(sp.getProcedureID() != null) { try { proc = this.metadataFactory.getProcedure(sp.getGroup().getName()); } catch (TranslatorException e) { throw new TeiidRuntimeException(QueryPlugin.Event.TEIID30486, e); if (param.isUsingDefault() && BaseColumn.OMIT_DEFAULT.equalsIgnoreCase(metadataFactory.getMetadata().getExtensionProperty(param.getMetadataID(), BaseColumn.DEFAULT_HANDLING, false))) { continue; ProcedureParameter metadataParam = metadataFactory.getParameter(param);
@Override public Table getTable(String fullName) throws TranslatorException { try { Object groupId = metadata.getGroupID(fullName); return getGroup(groupId); } catch (QueryMetadataException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30466, e); } catch (TeiidComponentException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30467, e); } }
@Override public Column getColumn(String fullName) throws TranslatorException { try { Object metadataId = metadata.getElementID(fullName); return getElement(metadataId); } catch (QueryMetadataException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30464, e); } catch (TeiidComponentException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30465, e); } }
@Override public Procedure getProcedure(String schema, String name) throws TranslatorException { return getProcedure(schema + AbstractMetadataRecord.NAME_DELIM_CHAR + name); }
@Override public Column getColumn(String schema, String table, String name) throws TranslatorException { return getColumn(schema + AbstractMetadataRecord.NAME_DELIM_CHAR + table + AbstractMetadataRecord.NAME_DELIM_CHAR + name); }
@Override public Table getTable(String schema, String name) throws TranslatorException { return getTable(schema + AbstractMetadataRecord.NAME_DELIM_CHAR + name); }