public void mergeInto (MetadataStore store) { store.addSchema(this.schema); store.addDataTypes(this.dataTypes); if (this.grants != null) { store.addGrants(this.grants.values()); } }
public void merge(MetadataStore store) { if (store != null) { for (Schema s:store.getSchemaList()) { addSchema(s); } addDataTypes(store.getDatatypes()); addGrants(store.grants.values()); roles.putAll(store.roles); } }
public void databaseCreated(Database db) { if (!assertInEditMode(Mode.DATABASE_STRUCTURE)) { return; } assertGrant(Grant.Permission.Privilege.CREATE, Database.ResourceType.DATABASE, db); Database database = this.databases.get(vdbKey(db)); if ( database != null) { throw new DuplicateRecordException(QueryPlugin.Event.TEIID31232, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31232, db.getName())); } if (this.currentDatabase != null) { throw new MetadataException(QueryPlugin.Event.TEIID31242, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31242)); } db.getMetadataStore().addDataTypes(getRuntimeTypes()); this.databases.put(vdbKey(db), db); }
public void databaseCreated(Database db) { if (!assertInEditMode(Mode.DATABASE_STRUCTURE)) { return; } assertGrant(Grant.Permission.Privilege.CREATE, Database.ResourceType.DATABASE, db); Database database = this.databases.get(vdbKey(db)); if ( database != null) { throw new DuplicateRecordException(QueryPlugin.Event.TEIID31232, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31232, db.getName())); } if (this.currentDatabase != null) { throw new MetadataException(QueryPlugin.Event.TEIID31242, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31242)); } db.getMetadataStore().addDataTypes(getRuntimeTypes()); this.databases.put(vdbKey(db), db); }
public void databaseCreated(Database db) { if (!assertInEditMode(Mode.DATABASE_STRUCTURE)) { return; } assertGrant(Grant.Permission.Privilege.CREATE, Database.ResourceType.DATABASE, db); Database database = this.databases.get(vdbKey(db)); if ( database != null) { throw new DuplicateRecordException(QueryPlugin.Event.TEIID31232, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31232, db.getName())); } if (this.currentDatabase != null) { throw new MetadataException(QueryPlugin.Event.TEIID31242, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31242)); } db.getMetadataStore().addDataTypes(getRuntimeTypes()); this.databases.put(vdbKey(db), db); }
QueryParser parser = new QueryParser(); systemStore = loadSchema(vdb, p, "SYS", parser).asMetadataStore(); //$NON-NLS-1$ systemStore.addDataTypes(typeMap); loadSchema(vdb, p, "SYSADMIN", parser).mergeInto(systemStore); //$NON-NLS-1$ TransformationMetadata tm = new TransformationMetadata(vdb, new CompositeMetadataStore(systemStore), null, systemFunctionManager.getSystemFunctions(), null);
QueryParser parser = new QueryParser(); systemStore = loadSchema(vdb, p, "SYS", parser).asMetadataStore(); //$NON-NLS-1$ systemStore.addDataTypes(typeMap); loadSchema(vdb, p, "SYSADMIN", parser).mergeInto(systemStore); //$NON-NLS-1$ TransformationMetadata tm = new TransformationMetadata(vdb, new CompositeMetadataStore(systemStore), null, systemFunctionManager.getSystemFunctions(), null);
QueryParser parser = new QueryParser(); systemStore = loadSchema(vdb, p, "SYS", parser).asMetadataStore(); //$NON-NLS-1$ systemStore.addDataTypes(typeMap); loadSchema(vdb, p, "SYSADMIN", parser).mergeInto(systemStore); //$NON-NLS-1$ TransformationMetadata tm = new TransformationMetadata(vdb, new CompositeMetadataStore(systemStore), null, systemFunctionManager.getSystemFunctions(), null);
protected void loadMetadata(VDBMetaData vdb, ConnectorManagerRepository cmr, MetadataStore store, VDBResources vdbResources) throws TranslatorException { store.addDataTypes(SystemMetadata.getInstance().getRuntimeTypeMap()); QueryParser.getQueryParser().parseDDL(dbStore, new StringReader(value)); dbStore.stopEditing(); store.addDataTypes(dbStore.getDatabase("x", "1").getMetadataStore().getDatatypes()); //$NON-NLS-1$ //$NON-NLS-2$
db.getMetadataStore().addDataTypes(metadataStore.getDatatypes());
db.getMetadataStore().addDataTypes(metadataStore.getDatatypes());
db.getMetadataStore().addDataTypes(metadataStore.getDatatypes());