本文整理了Java中org.teiid.metadata.Table.getFullName()
方法的一些代码示例,展示了Table.getFullName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.getFullName()
方法的具体详情如下:
包路径:org.teiid.metadata.Table
类名称:Table
方法名:getFullName
暂无
代码示例来源:origin: teiid/teiid
private void assignColumn(Table table, ColumnSet<?> columns, String columnName) {
Column column = table.getColumnByName(columnName);
if (column == null) {
throw new MetadataException(DataPlugin.Event.TEIID60011, DataPlugin.Util.gs(DataPlugin.Event.TEIID60011, table.getFullName(), columnName));
}
columns.getColumns().add(column);
}
代码示例来源:origin: teiid/teiid
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;
}
代码示例来源:origin: org.teiid/teiid-engine
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;
}
代码示例来源:origin: org.teiid/teiid-engine
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;
}
代码示例来源:origin: teiid/teiid
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;
}
代码示例来源:origin: org.jboss.teiid/teiid-engine
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;
}
代码示例来源:origin: org.teiid/teiid-engine
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;
}
代码示例来源:origin: org.jboss.teiid/teiid-engine
private void validateUpdatePlan(ModelMetaData model,
ValidatorReport report,
QueryMetadataInterface metadata,
Table t, String plan, int type) throws QueryParserException, QueryResolverException,
TeiidComponentException {
Command command = parser.parseProcedure(plan, true);
QueryResolver.resolveCommand(command, new GroupSymbol(t.getFullName()), type, metadata, false);
//determineDependencies(t, command); -- these should be tracked against triggers
ValidatorReport resolverReport = Validator.validate(command, metadata);
processReport(model, t, report, resolverReport);
}
代码示例来源:origin: org.jboss.teiid/teiid-engine
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;
}
代码示例来源:origin: org.teiid/teiid-olingo
public ScopedTable (Table table, EdmEntityType type, List<UriParameter> keys) {
setTable(table);
setEdmEntityType(type);
setGroupSymbol(new GroupSymbol(table.getFullName()));
setKeyPredicates(keys);
}
public ForeignKey getFk() {
代码示例来源:origin: org.teiid/teiid-engine
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;
}
代码示例来源:origin: teiid/teiid
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;
}
代码示例来源:origin: teiid/teiid
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;
}
代码示例来源:origin: org.jboss.teiid/teiid-engine
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;
}
代码示例来源:origin: org.teiid/teiid-engine
private void validateUpdatePlan(ModelMetaData model,
ValidatorReport report,
QueryMetadataInterface metadata,
Table t, String plan, int type) throws QueryParserException, QueryResolverException,
TeiidComponentException {
Command command = parser.parseProcedure(plan, true);
validateNoReferences(command, report, model);
QueryResolver.resolveCommand(command, new GroupSymbol(t.getFullName()), type, metadata, false);
//determineDependencies(t, command); -- these should be tracked against triggers
ValidatorReport resolverReport = Validator.validate(command, metadata);
processReport(model, t, report, resolverReport);
}
代码示例来源:origin: teiid/teiid
private void validateUpdatePlan(ModelMetaData model,
ValidatorReport report,
QueryMetadataInterface metadata,
Table t, String plan, int type) throws QueryParserException, QueryResolverException,
TeiidComponentException {
Command command = parser.parseProcedure(plan, true);
validateNoReferences(command, report, model);
QueryResolver.resolveCommand(command, new GroupSymbol(t.getFullName()), type, metadata, false);
//determineDependencies(t, command); -- these should be tracked against triggers
ValidatorReport resolverReport = Validator.validate(command, metadata);
processReport(model, t, report, resolverReport);
}
代码示例来源:origin: org.jboss.teiid/teiid-engine
private Column addColumn(String name, Class<?> type, Table table, MetadataFactory mf) throws TranslatorException {
if (type == null) {
throw new TranslatorException(QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31086, name, table.getFullName()));
}
Column column = mf.addColumn(name, DataTypeManager.getDataTypeName(type), table);
column.setUpdatable(table.supportsUpdate());
return column;
}
代码示例来源:origin: teiid/teiid
public void setViewDefinition(final String tableName, final String definition) {
if (!assertInEditMode(Mode.SCHEMA)) {
return;
}
Table table = (Table)getSchemaRecord(tableName, ResourceType.TABLE);
if (!table.isVirtual()) {
throw new org.teiid.metadata.MetadataException(QueryPlugin.Event.TEIID31238,
QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31238, table.getFullName()));
}
assertGrant(Grant.Permission.Privilege.ALTER, Database.ResourceType.TABLE, table);
table.setSelectTransformation(definition);
}
代码示例来源:origin: teiid/teiid
private Column addColumn(Expression toCopy, Table table, MetadataFactory mf, QueryMetadataInterface metadata) throws TranslatorException, QueryMetadataException, TeiidComponentException {
String name = Symbol.getShortName(toCopy);
Class<?> type = toCopy.getType();
if (type == null) {
throw new TranslatorException(QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31086, name, table.getFullName()));
}
Column column = mf.addColumn(name, DataTypeManager.getDataTypeName(type), table);
column.setUpdatable(table.supportsUpdate());
copyExpressionMetadata(toCopy, metadata, column);
return column;
}
代码示例来源:origin: org.teiid/teiid-engine
private Column addColumn(Expression toCopy, Table table, MetadataFactory mf, QueryMetadataInterface metadata) throws TranslatorException, QueryMetadataException, TeiidComponentException {
String name = Symbol.getShortName(toCopy);
Class<?> type = toCopy.getType();
if (type == null) {
throw new TranslatorException(QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31086, name, table.getFullName()));
}
Column column = mf.addColumn(name, DataTypeManager.getDataTypeName(type), table);
column.setUpdatable(table.supportsUpdate());
copyExpressionMetadata(toCopy, metadata, column);
return column;
}
内容来源于网络,如有侵权,请联系作者删除!