/** * Supports Serialization interface. * * @param in a <code>java.io.ObjectInputStream</code> value * @exception IOException if an error occurs * @exception ClassNotFoundException if an error occurs */ private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { try { in.defaultReadObject(); PerUserPoolDataSource oldDS = (PerUserPoolDataSource) new PerUserPoolDataSourceFactory() .getObjectInstance(getReference(), null, null, null); this.managers = oldDS.managers; } catch (NamingException e) { throw new IOException("NamingException: " + e); } }
if (ra != null && ra.getContent() != null) { byte[] serialized = (byte[]) ra.getContent(); pupds.perUserDefaultAutoCommit = (Map) deserialize(serialized); byte[] serialized = (byte[]) ra.getContent(); pupds.perUserDefaultTransactionIsolation = (Map) deserialize(serialized); if (ra != null && ra.getContent() != null) { byte[] serialized = (byte[]) ra.getContent(); pupds.perUserMaxActive = (Map) deserialize(serialized); if (ra != null && ra.getContent() != null) { byte[] serialized = (byte[]) ra.getContent(); pupds.perUserMaxIdle = (Map) deserialize(serialized); if (ra != null && ra.getContent() != null) { byte[] serialized = (byte[]) ra.getContent(); pupds.perUserMaxWait = (Map) deserialize(serialized); if (ra != null && ra.getContent() != null) { byte[] serialized = (byte[]) ra.getContent(); pupds.perUserDefaultReadOnly = (Map) deserialize(serialized);
if (ra != null && ra.getContent() != null) { byte[] serialized = (byte[]) ra.getContent(); pupds.perUserDefaultAutoCommit = (Map) deserialize(serialized); byte[] serialized = (byte[]) ra.getContent(); pupds.perUserDefaultTransactionIsolation = (Map) deserialize(serialized); if (ra != null && ra.getContent() != null) { byte[] serialized = (byte[]) ra.getContent(); pupds.perUserMaxActive = (Map) deserialize(serialized); if (ra != null && ra.getContent() != null) { byte[] serialized = (byte[]) ra.getContent(); pupds.perUserMaxIdle = (Map) deserialize(serialized); if (ra != null && ra.getContent() != null) { byte[] serialized = (byte[]) ra.getContent(); pupds.perUserMaxWait = (Map) deserialize(serialized); if (ra != null && ra.getContent() != null) { byte[] serialized = (byte[]) ra.getContent(); pupds.perUserDefaultReadOnly = (Map) deserialize(serialized);
/** * Supports Serialization interface. * * @param in a <code>java.io.ObjectInputStream</code> value * @exception IOException if an error occurs * @exception ClassNotFoundException if an error occurs */ private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { try { in.defaultReadObject(); PerUserPoolDataSource oldDS = (PerUserPoolDataSource) new PerUserPoolDataSourceFactory() .getObjectInstance(getReference(), null, null, null); this.managers = oldDS.managers; } catch (NamingException e) { throw new IOException("NamingException: " + e); } }
if (ra != null && ra.getContent() != null) { byte[] serialized = (byte[]) ra.getContent(); pupds.perUserDefaultAutoCommit = (Map) deserialize(serialized); byte[] serialized = (byte[]) ra.getContent(); pupds.perUserDefaultTransactionIsolation = (Map) deserialize(serialized); if (ra != null && ra.getContent() != null) { byte[] serialized = (byte[]) ra.getContent(); pupds.perUserMaxActive = (Map) deserialize(serialized); if (ra != null && ra.getContent() != null) { byte[] serialized = (byte[]) ra.getContent(); pupds.perUserMaxIdle = (Map) deserialize(serialized); if (ra != null && ra.getContent() != null) { byte[] serialized = (byte[]) ra.getContent(); pupds.perUserMaxWait = (Map) deserialize(serialized); if (ra != null && ra.getContent() != null) { byte[] serialized = (byte[]) ra.getContent(); pupds.perUserDefaultReadOnly = (Map) deserialize(serialized);
/** * Supports Serialization interface. * * @param in a <code>java.io.ObjectInputStream</code> value * @exception IOException if an error occurs * @exception ClassNotFoundException if an error occurs */ private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { try { in.defaultReadObject(); PerUserPoolDataSource oldDS = (PerUserPoolDataSource) new PerUserPoolDataSourceFactory() .getObjectInstance(getReference(), null, null, null); this.pools = oldDS.pools; } catch (NamingException e) { throw new IOException("NamingException: " + e); } } }