From: <one...@us...> - 2003-01-04 11:16:03
|
Update of /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/lob In directory sc8-pr-cvs1:/tmp/cvs-serv14211/src/net/sf/hibernate/lob Modified Files: BlobImpl.java ClobImpl.java Log Message: reformatted code with beautiful, shiny, happy TABS! improved an exception Index: BlobImpl.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/lob/BlobImpl.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** BlobImpl.java 1 Jan 2003 13:56:12 -0000 1.1.1.1 --- BlobImpl.java 4 Jan 2003 11:15:29 -0000 1.2 *************** *** 19,23 **** this.bytes = bytes; } ! /** * @see java.sql.Blob#length() --- 19,23 ---- this.bytes = bytes; } ! /** * @see java.sql.Blob#length() *************** *** 26,30 **** return bytes.length; } ! /** * @see java.sql.Blob#truncate(long) --- 26,30 ---- return bytes.length; } ! /** * @see java.sql.Blob#truncate(long) *************** *** 33,37 **** excep(); } ! /** * @see java.sql.Blob#getBytes(long, int) --- 33,37 ---- excep(); } ! /** * @see java.sql.Blob#getBytes(long, int) *************** *** 40,44 **** excep(); return null; } ! /** * @see java.sql.Blob#setBytes(long, byte[]) --- 40,44 ---- excep(); return null; } ! /** * @see java.sql.Blob#setBytes(long, byte[]) *************** *** 47,59 **** excep(); return 0; } ! /** * @see java.sql.Blob#setBytes(long, byte[], int, int) */ public int setBytes(long arg0, byte[] arg1, int arg2, int arg3) ! throws SQLException { excep(); return 0; } ! /** * @see java.sql.Blob#position(byte[], long) --- 47,59 ---- excep(); return 0; } ! /** * @see java.sql.Blob#setBytes(long, byte[], int, int) */ public int setBytes(long arg0, byte[] arg1, int arg2, int arg3) ! throws SQLException { excep(); return 0; } ! /** * @see java.sql.Blob#position(byte[], long) *************** *** 62,66 **** excep(); return 0; } ! /** * @see java.sql.Blob#getBinaryStream() --- 62,66 ---- excep(); return 0; } ! /** * @see java.sql.Blob#getBinaryStream() *************** *** 69,73 **** return new ByteArrayInputStream(bytes); } ! /** * @see java.sql.Blob#setBinaryStream(long) --- 69,73 ---- return new ByteArrayInputStream(bytes); } ! /** * @see java.sql.Blob#setBinaryStream(long) *************** *** 76,80 **** excep(); return null; } ! /** * @see java.sql.Blob#position(Blob, long) --- 76,80 ---- excep(); return null; } ! /** * @see java.sql.Blob#position(Blob, long) *************** *** 87,90 **** throw new UnsupportedOperationException("Blob may not be manipulated from creating session"); } ! } --- 87,93 ---- throw new UnsupportedOperationException("Blob may not be manipulated from creating session"); } ! } + + + Index: ClobImpl.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/lob/ClobImpl.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** ClobImpl.java 1 Jan 2003 13:56:12 -0000 1.1.1.1 --- ClobImpl.java 4 Jan 2003 11:15:29 -0000 1.2 *************** *** 22,26 **** return new String(chars); } ! /** * @see java.sql.Clob#length() --- 22,26 ---- return new String(chars); } ! /** * @see java.sql.Clob#length() *************** *** 29,33 **** return chars.length; } ! /** * @see java.sql.Clob#truncate(long) --- 29,33 ---- return chars.length; } ! /** * @see java.sql.Clob#truncate(long) *************** *** 36,40 **** excep(); } ! /** * @see java.sql.Clob#getAsciiStream() --- 36,40 ---- excep(); } ! /** * @see java.sql.Clob#getAsciiStream() *************** *** 43,47 **** return new StringBufferInputStream( new String(chars) ); } ! /** * @see java.sql.Clob#setAsciiStream(long) --- 43,47 ---- return new StringBufferInputStream( new String(chars) ); } ! /** * @see java.sql.Clob#setAsciiStream(long) *************** *** 50,54 **** excep(); return null; } ! /** * @see java.sql.Clob#getCharacterStream() --- 50,54 ---- excep(); return null; } ! /** * @see java.sql.Clob#getCharacterStream() *************** *** 57,61 **** return new CharArrayReader(chars); } ! /** * @see java.sql.Clob#setCharacterStream(long) --- 57,61 ---- return new CharArrayReader(chars); } ! /** * @see java.sql.Clob#setCharacterStream(long) *************** *** 64,68 **** excep(); return null; } ! /** * @see java.sql.Clob#getSubString(long, int) --- 64,68 ---- excep(); return null; } ! /** * @see java.sql.Clob#getSubString(long, int) *************** *** 71,75 **** excep(); return null; } ! /** * @see java.sql.Clob#setString(long, String) --- 71,75 ---- excep(); return null; } ! /** * @see java.sql.Clob#setString(long, String) *************** *** 78,90 **** excep(); return 0; } ! /** * @see java.sql.Clob#setString(long, String, int, int) */ public int setString(long arg0, String arg1, int arg2, int arg3) ! throws SQLException { excep(); return 0; } ! /** * @see java.sql.Clob#position(String, long) --- 78,90 ---- excep(); return 0; } ! /** * @see java.sql.Clob#setString(long, String, int, int) */ public int setString(long arg0, String arg1, int arg2, int arg3) ! throws SQLException { excep(); return 0; } ! /** * @see java.sql.Clob#position(String, long) *************** *** 93,97 **** excep(); return 0; } ! /** * @see java.sql.Clob#position(Clob, long) --- 93,97 ---- excep(); return 0; } ! /** * @see java.sql.Clob#position(Clob, long) *************** *** 100,108 **** excep(); return 0; } ! private void excep() { throw new UnsupportedOperationException("Blob may not be manipulated from creating session"); } ! } --- 100,111 ---- excep(); return 0; } ! private void excep() { throw new UnsupportedOperationException("Blob may not be manipulated from creating session"); } ! } + + + |