public Object readMap(AbstractHessianInput in) throws IOException { try { Object obj = instantiate(); return readMap(in, obj); } catch (IOException e) { throw e; } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new IOExceptionWrapper(_type.getName() + ":" + e.getMessage(), e); } }
public Object readMap(AbstractHessianInput in) throws IOException { try { Object obj = instantiate(); return readMap(in, obj); } catch (IOException e) { throw e; } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new IOExceptionWrapper(_type.getName() + ":" + e.getMessage(), e); } }
public Object readMap(AbstractHessianInput in) throws IOException { try { Object obj = instantiate(); return readMap(in, obj); } catch (IOException e) { throw e; } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new IOExceptionWrapper(_type.getName() + ":" + e.getMessage(), e); } }
public Object readMap(AbstractHessianInput in) throws IOException { try { Object obj = instantiate(); return readMap(in, obj); } catch (IOException e) { throw e; } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new IOExceptionWrapper(_type.getName() + ":" + e.getMessage(), e); } }
public Object readMap(AbstractHessianInput in) throws IOException { Object object = super.readMap(in); if (object instanceof AbstractQuery) { AbstractQuery abstractClientQuery = (AbstractQuery) object; Object root = abstractClientQuery.getRoot(); if (root instanceof Class) { ObjEntity entity = clientResolver.lookupObjEntity((Class) root); if (entity == null) { throw new CayenneRuntimeException("Unmapped client class: " + root); } abstractClientQuery.setRoot(entity.getName()); } } return object; } }
public Object readMap(AbstractHessianInput in) throws IOException { Object object = super.readMap(in); if (object instanceof AbstractQuery) { AbstractQuery abstractClientQuery = (AbstractQuery) object; Object root = abstractClientQuery.getRoot(); if (root instanceof Class) { ObjEntity entity = clientResolver.lookupObjEntity((Class) root); if (entity == null) { throw new CayenneRuntimeException("Unmapped client class: " + root); } abstractClientQuery.setRoot(entity.getName()); } } return object; } }