Package Framework

Examples of Framework.BinaryNullable


            // TF:23/02/2009:JIRA DET-75:handle binary data within the database
            case Types.BLOB:
            case Types.BINARY:
            case Types.LONGVARBINARY:
            case Types.VARBINARY:
              BinaryNullable value = this.getBinaryNullable(pColumnID);
              if (value.isNull() && pDataValue.isNullable()) {
                pDataValue.setIsNull(true);
              }
              else if (TextData.class.isAssignableFrom(classType)){
          if (value.isNull()) {
            ((TextData)pDataValue).setValue("");
          } else {
            ((TextData)pDataValue).setValue(value.toString());
          }
        } else {
          ((BinaryData)pDataValue).setValue(value);
        }
              break;
View Full Code Here


          this.metaData = this.resultSet.getMetaData();
        }
        if (this.metaData.getColumnType(ColumnID) == Types.BLOB) {
          Blob theBlob = resultSet.getBlob(ColumnID);
              if (theBlob == null || resultSet.wasNull()) {
                return new BinaryNullable(true, BinaryNullable.qq_Resolver.cISNULL);
              }
              else {
                byte[] byteArray = theBlob.getBytes(1, (int)theBlob.length());
                return new BinaryNullable(byteArray);
              }
        }
        else {
              byte[] byteArray = resultSet.getBytes(ColumnID);
 
              if (byteArray == null || resultSet.wasNull()) {
                return new BinaryNullable(true, BinaryNullable.qq_Resolver.cISNULL);
              }
              else {
                  return new BinaryNullable(byteArray);
              }
        }
        }
        catch (SQLException e) {
              throw processException(e);
View Full Code Here

        try {
            //Blob theBlob = resultSet.getBlob(pColumnName);
            byte[] byteArray = resultSet.getBytes(pColumnName);

            if (byteArray == null || resultSet.wasNull()) {
                BinaryNullable result = new BinaryNullable();
                result.setIsNull(true);
                return result;
            }

            else {
                // byte[] byteArray = theBlob.getBytes(1, (int)theBlob.length());
                return new BinaryNullable(byteArray);
            }
        } catch (SQLException e) {
          throw processException(e);
        }
    }
View Full Code Here

            // TF:23/02/2009:JIRA DET-75:handle binary data within the database
            case Types.BLOB:
            case Types.BINARY:
            case Types.LONGVARBINARY:
            case Types.VARBINARY:
              BinaryNullable value = this.getBinaryNullable(pColumnID);
              if (value.isNull() && pDataValue.isNullable()) {
                pDataValue.setIsNull(true);
              }
              else if (TextData.class.isAssignableFrom(classType)){
          if (value.isNull()) {
            ((TextData)pDataValue).setValue("");
          } else {
            ((TextData)pDataValue).setValue(value.toString());
          }
        } else {
          ((BinaryData)pDataValue).setValue(value);
        }
              break;
View Full Code Here

          this.metaData = this.resultSet.getMetaData();
        }
        if (this.metaData.getColumnType(ColumnID) == Types.BLOB) {
          Blob theBlob = resultSet.getBlob(ColumnID);
              if (theBlob == null || resultSet.wasNull()) {
                return new BinaryNullable(true, BinaryNullable.qq_Resolver.cISNULL);
              }
              else {
                byte[] byteArray = theBlob.getBytes(1, (int)theBlob.length());
                return new BinaryNullable(byteArray);
              }
        }
        else {
              byte[] byteArray = resultSet.getBytes(ColumnID);
 
              if (byteArray == null || resultSet.wasNull()) {
                return new BinaryNullable(true, BinaryNullable.qq_Resolver.cISNULL);
              }
              else {
                  return new BinaryNullable(byteArray);
              }
        }
        }
        catch (SQLException e) {
              throw processException(e);
View Full Code Here

        try {
            //Blob theBlob = resultSet.getBlob(pColumnName);
            byte[] byteArray = resultSet.getBytes(pColumnName);

            if (byteArray == null || resultSet.wasNull()) {
                BinaryNullable result = new BinaryNullable();
                result.setIsNull(true);
                return result;
            }

            else {
                // byte[] byteArray = theBlob.getBytes(1, (int)theBlob.length());
                return new BinaryNullable(byteArray);
            }
        } catch (SQLException e) {
          throw processException(e);
        }
    }
View Full Code Here

TOP

Related Classes of Framework.BinaryNullable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.