public synchronized OutputStream setBinaryStream() throws SQLException { checkFreed(); initialize(); _active = true; _byteArrayOutputStream = new ByteArrayOutputStream(); return _byteArrayOutputStream; }
public synchronized void setString(String value) throws SQLException { checkFreed(); initialize(); _data = value; }
public synchronized Reader getCharacterStream() throws SQLException { checkFreed(); ensureInitialized(); if (_data == null) return null; return new StringReader(_data); }
public synchronized String getString() throws SQLException { checkFreed(); ensureInitialized(); return _data; }
public synchronized Writer setCharacterStream() throws SQLException { checkFreed(); initialize(); _stringWriter = new StringWriter(); return _stringWriter; }
public synchronized Source getSource(Class sourceClass) throws SQLException checkFreed(); ensureInitialized();
public synchronized InputStream getBinaryStream() throws SQLException { checkFreed(); ensureInitialized(); if (_data == null) return null; try { return new ByteArrayInputStream(_conn.getEncoding().encode(_data)); } catch (IOException ioe) { // This should be a can't happen exception. We just // decoded this data, so it would be surprising that // we couldn't encode it. // For this reason don't make it translatable. throw new PSQLException("Failed to re-encode xml data.", PSQLState.DATA_ERROR, ioe); } }
public synchronized Result setResult(Class resultClass) throws SQLException checkFreed(); initialize();
public synchronized void setString(String value) throws SQLException { checkFreed(); initialize(); _data = value; }
public synchronized String getString() throws SQLException { checkFreed(); ensureInitialized(); return _data; }
public synchronized void setString(String value) throws SQLException { checkFreed(); initialize(); _data = value; }
public synchronized String getString() throws SQLException { checkFreed(); ensureInitialized(); return _data; }
public synchronized OutputStream setBinaryStream() throws SQLException { checkFreed(); initialize(); _active = true; _byteArrayOutputStream = new ByteArrayOutputStream(); return _byteArrayOutputStream; }
public synchronized Reader getCharacterStream() throws SQLException { checkFreed(); ensureInitialized(); if (_data == null) return null; return new StringReader(_data); }
public synchronized OutputStream setBinaryStream() throws SQLException { checkFreed(); initialize(); _active = true; _byteArrayOutputStream = new ByteArrayOutputStream(); return _byteArrayOutputStream; }
public synchronized Writer setCharacterStream() throws SQLException { checkFreed(); initialize(); _stringWriter = new StringWriter(); return _stringWriter; }
public synchronized Reader getCharacterStream() throws SQLException { checkFreed(); ensureInitialized(); if (_data == null) return null; return new StringReader(_data); }
public synchronized Writer setCharacterStream() throws SQLException { checkFreed(); initialize(); _stringWriter = new StringWriter(); return _stringWriter; }
public synchronized InputStream getBinaryStream() throws SQLException { checkFreed(); ensureInitialized(); if (_data == null) return null; try { return new ByteArrayInputStream(_conn.getEncoding().encode(_data)); } catch (IOException ioe) { // This should be a can't happen exception. We just // decoded this data, so it would be surprising that // we couldn't encode it. // For this reason don't make it translatable. throw new PSQLException("Failed to re-encode xml data.", PSQLState.DATA_ERROR, ioe); } }
public synchronized InputStream getBinaryStream() throws SQLException { checkFreed(); ensureInitialized(); if (_data == null) return null; try { return new ByteArrayInputStream(_conn.getEncoding().encode(_data)); } catch (IOException ioe) { // This should be a can't happen exception. We just // decoded this data, so it would be surprising that // we couldn't encode it. // For this reason don't make it translatable. throw new PSQLException("Failed to re-encode xml data.", PSQLState.DATA_ERROR, ioe); } }