public StoredProcedureInfo getStoredProcedureInfoForProcedure(final String name) throws TeiidComponentException, QueryMetadataException { StoredProcedureInfo result = getStoredProcInfoDirect(name); if (result == null) { throw new QueryMetadataException(QueryPlugin.Event.TEIID30357, name+NOT_EXISTS_MESSAGE); } return result; }
public StoredProcedureInfo getStoredProcedureInfoForProcedure(final String name) throws TeiidComponentException, QueryMetadataException { StoredProcedureInfo result = getStoredProcInfoDirect(name); if (result == null) { throw new QueryMetadataException(QueryPlugin.Event.TEIID30357, name+NOT_EXISTS_MESSAGE); } return result; }
public Column getElementID(final String elementName) throws TeiidComponentException, QueryMetadataException { int columnIndex = elementName.lastIndexOf(TransformationMetadata.DELIMITER_STRING); if (columnIndex == -1) { throw new QueryMetadataException(QueryPlugin.Event.TEIID30355, elementName+TransformationMetadata.NOT_EXISTS_MESSAGE); } Table table = this.store.findGroup(elementName.substring(0, columnIndex)); String shortElementName = elementName.substring(columnIndex + 1); return getColumn(elementName, table, shortElementName); }
public Column getElementID(final String elementName) throws TeiidComponentException, QueryMetadataException { int columnIndex = elementName.lastIndexOf(TransformationMetadata.DELIMITER_STRING); if (columnIndex == -1) { throw new QueryMetadataException(QueryPlugin.Event.TEIID30355, elementName+TransformationMetadata.NOT_EXISTS_MESSAGE); } Table table = this.store.findGroup(elementName.substring(0, columnIndex)); String shortElementName = elementName.substring(columnIndex + 1); return getColumn(elementName, table, shortElementName); }
public Column getElementID(final String elementName) throws TeiidComponentException, QueryMetadataException { int columnIndex = elementName.lastIndexOf(TransformationMetadata.DELIMITER_STRING); if (columnIndex == -1) { throw new QueryMetadataException(QueryPlugin.Event.TEIID30355, elementName+TransformationMetadata.NOT_EXISTS_MESSAGE); } Table table = this.store.findGroup(elementName.substring(0, columnIndex)); String shortElementName = elementName.substring(columnIndex + 1); return getColumn(elementName, table, shortElementName); }
@Override public Schema getModelID(String modelName) throws TeiidComponentException, QueryMetadataException { Schema s = this.getMetadataStore().getSchema(modelName); if (s == null) { throw new QueryMetadataException(QueryPlugin.Event.TEIID30352, modelName+TransformationMetadata.NOT_EXISTS_MESSAGE); } return s; }
@Override public Schema getModelID(String modelName) throws TeiidComponentException, QueryMetadataException { Schema s = this.getMetadataStore().getSchema(modelName); if (s == null) { throw new QueryMetadataException(QueryPlugin.Event.TEIID30352, modelName+TransformationMetadata.NOT_EXISTS_MESSAGE); } return s; }
@Override public Schema getModelID(String modelName) throws TeiidComponentException, QueryMetadataException { Schema s = this.getMetadataStore().getSchema(modelName); if (s == null) { throw new QueryMetadataException(QueryPlugin.Event.TEIID30352, modelName+TransformationMetadata.NOT_EXISTS_MESSAGE); } return s; }
public List<Column> getElementIDsInGroupID(final Object groupID) throws TeiidComponentException, QueryMetadataException { List<Column> columns = ((Table)groupID).getColumns(); if (columns == null || columns.isEmpty()) { throw new QueryMetadataException(QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31071, ((Table)groupID).getName())); } return columns; }
public List<Column> getElementIDsInGroupID(final Object groupID) throws TeiidComponentException, QueryMetadataException { List<Column> columns = ((Table)groupID).getColumns(); if (columns == null || columns.isEmpty()) { throw new QueryMetadataException(QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31071, ((Table)groupID).getName())); } return columns; }
public QueryNode getVirtualPlan(final Object groupID) throws TeiidComponentException, QueryMetadataException { Table tableRecord = (Table) groupID; if (!tableRecord.isVirtual()) { throw new QueryMetadataException(QueryPlugin.Event.TEIID30359, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30359, tableRecord.getFullName(), "Query")); //$NON-NLS-1$ } LiveTableQueryNode queryNode = new LiveTableQueryNode(tableRecord); return queryNode; }
public QueryNode getVirtualPlan(final Object groupID) throws TeiidComponentException, QueryMetadataException { Table tableRecord = (Table) groupID; if (!tableRecord.isVirtual()) { throw new QueryMetadataException(QueryPlugin.Event.TEIID30359, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30359, tableRecord.getFullName(), "Query")); //$NON-NLS-1$ } LiveTableQueryNode queryNode = new LiveTableQueryNode(tableRecord); return queryNode; }
public String getUpdatePlan(final Object groupID) throws TeiidComponentException, QueryMetadataException { Table tableRecordImpl = (Table)groupID; if (!tableRecordImpl.isVirtual()) { throw new QueryMetadataException(QueryPlugin.Event.TEIID30359, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30359, tableRecordImpl.getFullName(), "Update")); //$NON-NLS-1$ } return tableRecordImpl.isUpdatePlanEnabled()?tableRecordImpl.getUpdatePlan():null; }
public String getInsertPlan(final Object groupID) throws TeiidComponentException, QueryMetadataException { Table tableRecordImpl = (Table)groupID; if (!tableRecordImpl.isVirtual()) { throw new QueryMetadataException(QueryPlugin.Event.TEIID30359, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30359, tableRecordImpl.getFullName(), "Insert")); //$NON-NLS-1$ } return tableRecordImpl.isInsertPlanEnabled()?tableRecordImpl.getInsertPlan():null; }
public String getInsertPlan(final Object groupID) throws TeiidComponentException, QueryMetadataException { Table tableRecordImpl = (Table)groupID; if (!tableRecordImpl.isVirtual()) { throw new QueryMetadataException(QueryPlugin.Event.TEIID30359, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30359, tableRecordImpl.getFullName(), "Insert")); //$NON-NLS-1$ } return tableRecordImpl.isInsertPlanEnabled()?tableRecordImpl.getInsertPlan():null; }
public String getDeletePlan(final Object groupID) throws TeiidComponentException, QueryMetadataException { Table tableRecordImpl = (Table)groupID; if (!tableRecordImpl.isVirtual()) { throw new QueryMetadataException(QueryPlugin.Event.TEIID30359, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30359, tableRecordImpl.getFullName(), "Delete")); //$NON-NLS-1$ } return tableRecordImpl.isDeletePlanEnabled()?tableRecordImpl.getDeletePlan():null; }
public String getUpdatePlan(final Object groupID) throws TeiidComponentException, QueryMetadataException { Table tableRecordImpl = (Table)groupID; if (!tableRecordImpl.isVirtual()) { throw new QueryMetadataException(QueryPlugin.Event.TEIID30359, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30359, tableRecordImpl.getFullName(), "Update")); //$NON-NLS-1$ } return tableRecordImpl.isUpdatePlanEnabled()?tableRecordImpl.getUpdatePlan():null; }
public String getDeletePlan(final Object groupID) throws TeiidComponentException, QueryMetadataException { Table tableRecordImpl = (Table)groupID; if (!tableRecordImpl.isVirtual()) { throw new QueryMetadataException(QueryPlugin.Event.TEIID30359, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30359, tableRecordImpl.getFullName(), "Delete")); //$NON-NLS-1$ } return tableRecordImpl.isDeletePlanEnabled()?tableRecordImpl.getDeletePlan():null; }
public String getDeletePlan(final Object groupID) throws TeiidComponentException, QueryMetadataException { Table tableRecordImpl = (Table)groupID; if (!tableRecordImpl.isVirtual()) { throw new QueryMetadataException(QueryPlugin.Event.TEIID30359, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30359, tableRecordImpl.getFullName(), "Delete")); //$NON-NLS-1$ } return tableRecordImpl.isDeletePlanEnabled()?tableRecordImpl.getDeletePlan():null; }
public String getUpdatePlan(final Object groupID) throws TeiidComponentException, QueryMetadataException { Table tableRecordImpl = (Table)groupID; if (!tableRecordImpl.isVirtual()) { throw new QueryMetadataException(QueryPlugin.Event.TEIID30359, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30359, tableRecordImpl.getFullName(), "Update")); //$NON-NLS-1$ } return tableRecordImpl.isUpdatePlanEnabled()?tableRecordImpl.getUpdatePlan():null; }