@Override public void setState(InputStream istream) { try { ObjectInputStream ois = new ObjectInputStream(istream); while (true) { String tableName = (String)ois.readObject(); if (tableName == null) { break; } loadTable(tableName, ois); } ois.close(); } catch (Exception e) { throw new TeiidRuntimeException(QueryPlugin.Event.TEIID30219, e); } }
@Override public void setState(InputStream istream) { try { ObjectInputStream ois = new ObjectInputStream(istream); while (true) { String tableName = (String)ois.readObject(); if (tableName == null) { break; } loadTable(tableName, ois); } ois.close(); } catch (Exception e) { throw new TeiidRuntimeException(QueryPlugin.Event.TEIID30219, e); } }
@Override public void setState(InputStream istream) { try { ObjectInputStream ois = new ObjectInputStream(istream); while (true) { String tableName = (String)ois.readObject(); if (tableName == null) { break; } loadTable(tableName, ois); } ois.close(); } catch (Exception e) { throw new TeiidRuntimeException(QueryPlugin.Event.TEIID30219, e); } }
@Override public void setState(String stateId, InputStream istream) { try { ObjectInputStream ois = new ObjectInputStream(istream); loadTable(stateId, ois); ois.close(); } catch (Exception e) { MatTableInfo info = this.getMatTableInfo(stateId); if (!info.isUpToDate()) { info.setState(MatState.FAILED_LOAD, null); } throw new TeiidRuntimeException(QueryPlugin.Event.TEIID30222, e); } }
@Override public void setState(String stateId, InputStream istream) { try { ObjectInputStream ois = new ObjectInputStream(istream); loadTable(stateId, ois); ois.close(); } catch (Exception e) { MatTableInfo info = this.getMatTableInfo(stateId); if (!info.isUpToDate()) { info.setState(MatState.FAILED_LOAD, null); } throw new TeiidRuntimeException(QueryPlugin.Event.TEIID30222, e); } }
@Override public void setState(String stateId, InputStream istream) { try { ObjectInputStream ois = new ObjectInputStream(istream); loadTable(stateId, ois); ois.close(); } catch (Exception e) { MatTableInfo info = this.getMatTableInfo(stateId); if (!info.isUpToDate()) { info.setState(MatState.FAILED_LOAD, null); } throw new TeiidRuntimeException(QueryPlugin.Event.TEIID30222, e); } }