[Fb-contrib-commit] SF.net SVN: fb-contrib:[1194] trunk/fb-contrib/samples
Brought to you by:
dbrosius
From: <dbr...@us...> - 2009-05-09 21:06:29
|
Revision: 1194 http://fb-contrib.svn.sourceforge.net/fb-contrib/?rev=1194&view=rev Author: dbrosius Date: 2009-05-09 21:06:27 +0000 (Sat, 09 May 2009) Log Message: ----------- make consistent Added Paths: ----------- trunk/fb-contrib/samples/JVR_Sample.java Removed Paths: ------------- trunk/fb-contrib/samples/JVRSample.java Deleted: trunk/fb-contrib/samples/JVRSample.java =================================================================== --- trunk/fb-contrib/samples/JVRSample.java 2009-05-09 21:02:26 UTC (rev 1193) +++ trunk/fb-contrib/samples/JVRSample.java 2009-05-09 21:06:27 UTC (rev 1194) @@ -1,65 +0,0 @@ -import java.io.InputStream; -import java.io.OutputStream; -import java.sql.Blob; -import java.sql.ResultSet; -import java.sql.SQLException; - - - -public class JVR_Sample -{ - public String getBlobAsString(ResultSet rs) throws SQLException - { - VendorBlob vb = (VendorBlob)rs.getBlob(1); - return vb.convertBlobToString(); - } - - public String falsePositive(ResultSet rs) throws SQLException - { - Blob vb = rs.getBlob(1); - return vb.getClass().getName(); - } -} - -class VendorBlob implements Blob -{ - public String convertBlobToString() - { - return "Booya"; - } - - public InputStream getBinaryStream() throws SQLException { - return null; - } - - public byte[] getBytes(long arg0, int arg1) throws SQLException { - return null; - } - - public long length() throws SQLException { - return 0; - } - - public long position(Blob arg0, long arg1) throws SQLException { - return 0; - } - - public long position(byte[] arg0, long arg1) throws SQLException { - return 0; - } - - public OutputStream setBinaryStream(long arg0) throws SQLException { - return null; - } - - public int setBytes(long arg0, byte[] arg1, int arg2, int arg3) throws SQLException { - return 0; - } - - public int setBytes(long arg0, byte[] arg1) throws SQLException { - return 0; - } - - public void truncate(long arg0) throws SQLException { - } -} \ No newline at end of file Copied: trunk/fb-contrib/samples/JVR_Sample.java (from rev 1193, trunk/fb-contrib/samples/JVRSample.java) =================================================================== --- trunk/fb-contrib/samples/JVR_Sample.java (rev 0) +++ trunk/fb-contrib/samples/JVR_Sample.java 2009-05-09 21:06:27 UTC (rev 1194) @@ -0,0 +1,65 @@ +import java.io.InputStream; +import java.io.OutputStream; +import java.sql.Blob; +import java.sql.ResultSet; +import java.sql.SQLException; + + + +public class JVR_Sample +{ + public String getBlobAsString(ResultSet rs) throws SQLException + { + VendorBlob vb = (VendorBlob)rs.getBlob(1); + return vb.convertBlobToString(); + } + + public String falsePositive(ResultSet rs) throws SQLException + { + Blob vb = rs.getBlob(1); + return vb.getClass().getName(); + } +} + +class VendorBlob implements Blob +{ + public String convertBlobToString() + { + return "Booya"; + } + + public InputStream getBinaryStream() throws SQLException { + return null; + } + + public byte[] getBytes(long arg0, int arg1) throws SQLException { + return null; + } + + public long length() throws SQLException { + return 0; + } + + public long position(Blob arg0, long arg1) throws SQLException { + return 0; + } + + public long position(byte[] arg0, long arg1) throws SQLException { + return 0; + } + + public OutputStream setBinaryStream(long arg0) throws SQLException { + return null; + } + + public int setBytes(long arg0, byte[] arg1, int arg2, int arg3) throws SQLException { + return 0; + } + + public int setBytes(long arg0, byte[] arg1) throws SQLException { + return 0; + } + + public void truncate(long arg0) throws SQLException { + } +} \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |