Examples of SQLBoolean


Examples of de.fuberlin.wiwiss.d2rq.sql.types.SQLBoolean

    // TINYINT(1) is conventionally treated as BOOLEAN in MySQL.
    // MySQL reports TINYINT(1) either as Types.BIT with size 0,
    // or as Types.BIT with type name still TINYINT. All real BIT
    // types are reported with a size > 0.
    if (jdbcType == Types.BIT && ("TINYINT".equals(name) || size == 0)) {
      return new SQLBoolean(this, name);
    }

    // MySQL supports UNSIGNED varieties of the integer types
    if (name.contains("UNSIGNED")) {
      return new SQLExactNumeric(this, name, jdbcType, true);
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.sql.types.SQLBoolean

    // The PostgreSQL JDBC driver reports boolean types as BIT(1),
    // but the type name is still BOOL. We don't check the size here
    // to also catch the case of a SELECT query result, where column
    // size isn't reported.
    if (jdbcType == Types.BIT && "BOOL".equals(name)) {
      return new SQLBoolean(this, name);
    }

    DataType standard = super.getDataType(jdbcType, name, size);
    if (standard != null) return standard;
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.sql.types.SQLBoolean

    case Types.LONGVARCHAR:
    case Types.CLOB:
      return new SQLCharacterString(this, name, true);
     
    case Types.BOOLEAN:
      return new SQLBoolean(this, name);

    case Types.BINARY:
    case Types.VARBINARY:
    case Types.LONGVARBINARY:
    case Types.BLOB:
View Full Code Here

Examples of org.apache.derby.iapi.types.SQLBoolean

        DataValueDescriptor[sourceRowWidth + extraColumns];
    // 1st element is the key
    hashRowArray[0] = new SQLInteger(position);
    if (isForUpdate()) {
      hashRowArray[POS_ROWLOCATION] = rowLoc.getClone();
      hashRowArray[POS_ROWDELETED] = new SQLBoolean(false);
      hashRowArray[POS_ROWUPDATED] = new SQLBoolean(rowUpdated);
    }

    /* Copy rest of elements from sourceRow.
     * NOTE: We need to clone the source row
     * and we do our own cloning since the 1st column
View Full Code Here

Examples of org.apache.derby.iapi.types.SQLBoolean

            new DataValueDescriptor[SYSSTATEMENTSRowFactory.SYSSTATEMENTS_COLUMN_COUNT];

    /* Set up a couple of row templates for fetching CHARS */

    replaceRow[SYSSTATEMENTSRowFactory.SYSSTATEMENTS_VALID - 1] =
            new SQLBoolean(false);
    replaceRow[SYSSTATEMENTSRowFactory.SYSSTATEMENTS_CONSTANTSTATE - 1] =
            new UserType((Object) null);

    /* Scan the entire heap */
    ScanController sc =
View Full Code Here

Examples of org.apache.derby.iapi.types.SQLBoolean

    /* 4th column is TYPE */
    row.setColumn(4, new SQLChar(typeStr));

    /* 5th column is VALID */
    row.setColumn(5, new SQLBoolean(valid));

    /* 6th column is TEXT */
    row.setColumn(6, dvf.getLongvarcharDataValue(text));

    /* 7th column is LASTCOMPILED */
    row.setColumn(7, new SQLTimestamp(time));

    /* 8th column is COMPILATIONSCHEMAID */
    row.setColumn(8, new SQLChar(compUuidStr));

    /* 9th column is USINGTEXT */
    row.setColumn(9, dvf.getLongvarcharDataValue(usingText));

    /*
    ** 10th column is CONSTANTSTATE
    **
    ** CONSTANTSTATE is really a formatable StorablePreparedStatement.
    */
    row.setColumn(10, new UserType(preparedStatement));

    /* 11th column is INITIALLY_COMPILABLE */
    row.setColumn(11, new SQLBoolean(initiallyCompilable));

    return row;
  }
View Full Code Here

Examples of org.apache.derby.iapi.types.SQLBoolean

      super.init(TypeId.BOOLEAN_ID,
       Boolean.FALSE,
       ReuseFactory.getInteger(1));

      booleanValue = ((Boolean) arg1).booleanValue();
      super.setValue(new SQLBoolean(booleanValue));
    }
    else
    {
      super.init(
        arg1,
View Full Code Here

Examples of org.apache.derby.iapi.types.SQLBoolean

    {
      return this;
    }

    booleanValue = !booleanValue;
    super.setValue(new SQLBoolean(booleanValue));

    return this;
  }
View Full Code Here

Examples of org.apache.derby.iapi.types.SQLBoolean

    /* 13th column is TRIGGERDEFINITION */
    row.setColumn(13, dvf.getLongvarcharDataValue(triggerDefinition));

    /* 14th column is REFERENCINGOLD */
    row.setColumn(14, new SQLBoolean(referencingOld));

    /* 15th column is REFERENCINGNEW */
    row.setColumn(15, new SQLBoolean(referencingNew));

    /* 16th column is OLDREFERENCINGNAME */
    row.setColumn(16, new SQLVarchar(oldReferencingName));

    /* 17th column is NEWREFERENCINGNAME */
 
View Full Code Here

Examples of org.apache.derby.iapi.types.SQLBoolean

            new DataValueDescriptor[SYSSTATEMENTSRowFactory.SYSSTATEMENTS_COLUMN_COUNT];

    /* Set up a couple of row templates for fetching CHARS */

    replaceRow[SYSSTATEMENTSRowFactory.SYSSTATEMENTS_VALID - 1] =
            new SQLBoolean(false);
    replaceRow[SYSSTATEMENTSRowFactory.SYSSTATEMENTS_CONSTANTSTATE - 1] =
            new UserType((Object) null);

    /* Scan the entire heap */
    ScanController sc =
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.