protected void flushCatalog(String catalogName) { for (RolapSchema schema : RolapSchema.getRolapSchemas()) { if (schema.getName().equals(catalogName)) { schema.getInternalConnection().getCacheControl(null) .flushSchema(schema); } } }
public void flushSchemaCache(OlapConnection conn) throws OlapException { try { RolapConnection rConn = conn.unwrap(RolapConnection.class); rConn.getCacheControl(null).flushSchema( rConn.getSchema()); } catch (SQLException e) { throw new OlapException(e); } }