SHARE
TWEET

Untitled

a guest Apr 21st, 2017 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if ((localObject1 instanceof OracleSerialBlob)) {
  2.         localObject2 = (OracleSerialBlob) localObject1;
  3.         return new String(((OracleSerialBlob) localObject2).getBytes(0L, (int) ((OracleSerialBlob) localObject2).length()));
  4.     }
  5.    
  6. public String(byte bytes[]) {
  7.     this(bytes, 0, bytes.length);
  8. }
  9.    
  10. public String getString(int paramInt) throws SQLException {
  11.     Object localObject1 = getObject(paramInt);
  12.  
  13.     if (localObject1 == null) {
  14.         return (String) localObject1;
  15.     }
  16.     if ((localObject1 instanceof String)) {
  17.         return (String) localObject1;
  18.     }
  19.     if (((localObject1 instanceof Number)) || ((localObject1 instanceof BigDecimal))) {
  20.         return localObject1.toString();
  21.     }
  22.     if ((localObject1 instanceof java.sql.Date)) {
  23.         return ((java.sql.Date) localObject1).toString();
  24.     }
  25.     if ((localObject1 instanceof Timestamp)) {
  26.         return ((java.sql.Date) localObject1).toString();
  27.     }
  28.     if ((localObject1 instanceof byte[]))
  29.         return new String((byte[]) localObject1);
  30.     Object localObject2;
  31.     if ((localObject1 instanceof OracleSerialClob)) {
  32.         localObject2 = (OracleSerialClob) localObject1;
  33.         return ((OracleSerialClob) localObject2).getSubString(0L, (int) ((OracleSerialClob) localObject2).length());
  34.     }
  35.  
  36.     if ((localObject1 instanceof OracleSerialBlob)) {
  37.         localObject2 = (OracleSerialBlob) localObject1;
  38.         return new String(((OracleSerialBlob) localObject2).getBytes(0L, (int) ((OracleSerialBlob) localObject2).length()));
  39.     }
  40.  
  41.     if ((localObject1 instanceof URL)) {
  42.         return ((URL) localObject1).toString();
  43.     }
  44.     if ((localObject1 instanceof Reader)) {
  45.         try {
  46.             localObject2 = (Reader) localObject1;
  47.             char[] arrayOfChar = new char[1024];
  48.             int i = 0;
  49.             StringBuffer localStringBuffer = new StringBuffer(1024);
  50.             while ((i = ((Reader) localObject2).read(arrayOfChar)) > 0)
  51.                 localStringBuffer.append(arrayOfChar, 0, i);
  52.  
  53.             return localStringBuffer.substring(0, localStringBuffer.length());
  54.         } catch (IOException localIOException) {
  55.             throw new SQLException("Error during conversion: " + localIOException.getMessage());
  56.         }
  57.     }
  58.  
  59.     throw new SQLException("Fail to convert to internal representation");
  60. }
RAW Paste Data
Top