Read the boolean data for the column.
@see android.database.Cursor#getColumnIndex(String).
@param cursor the cursor.
@param columnName the column name.
@return the boolean value.
428406
public static boolean getBoolean(Cursor cursor, String columnName) {
        return cursor != null && cursor.getInt(cursor.getColumnIndex(columnName)) == TRUE;
    }
449333
public Column getColumn(String columnName) {
    if (columnName == null) {
      return null;
    }
    for (Column column : columns) {
      if (columnName.equals(column.getData())) {
        return column;
      }
    }
    return null;
  }
1357480
public IndexInfo getColumnToBeIndexed(String columnName)
    {
        IndexInfo idxInfo = new IndexInfo(columnName);
        if (columnToBeIndexed.contains(idxInfo))
        {
            int index = columnToBeIndexed.indexOf(idxInfo);
            return getColumnsToBeIndexed().get(index);
        }
        return idxInfo;
    }
1322318
@Override
    public boolean readBoolean(String message, Boolean defaultValue) throws IOException {
        saveCursorPosition();
        Ansi style = ansi();
        if (getTheme().getPromptBackground() != null) {
            style.bg(getTheme().getPromptBackground());
        }
        if (getTheme().getPromptForeground() != null) {
            style.fg(getTheme().getPromptForeground());
        }
        for (int i = 1; i <= getFooterSize(); i++) {
            console.out().print(ansi().cursor(terminal.getHeight() - getFooterSize() + i, 1));
            console.out().print(style.eraseLine(Ansi.Erase.FORWARD));
        }
        console.out().print(ansi().cursor(terminal.getHeight(), 1));
        console.out().print(style.a(message).bold().eraseLine(Ansi.Erase.FORWARD));
        restoreCursorPosition();
        flush();
        try {
            EditorOperation operation;
            while (true) {
                operation = readOperation();
                switch (operation.getType()) {
                    case NEWLINE:
                        return defaultValue;
                    case TYPE:
                        if ("y".equals(operation.getInput()) || "Y".equals(operation.getInput())) {
                            return true;
                        } else if ("n".equals(operation.getInput()) || "N".equals(operation.getInput())) {
                            return false;
                        }
                }
            }
        } finally {
            redrawFooter();
        }
    }
1347586
public static boolean isColumnNullable (Connection conn, String table,
                                            String column)
        throws SQLException
    {
        ResultSet rs = getColumnMetaData(conn, table, column);
        try {
            return rs.getString("IS_NULLABLE").equals("YES");
        } finally {
            rs.close();
        }
    }
99170
public boolean getBool(Map<String, Object> data, String name) {
    Boolean value = getBoolean(data, name);
    return (null == value) ? false : value.booleanValue();
  }
1203053
public static float getFloat(Cursor cursor, String columnName) {
        if (cursor == null) {
            return -1;
        }

        return cursor.getFloat(cursor.getColumnIndex(columnName));
    }
1164878
@Override
    public boolean getBoolean(int columnIndex) throws SQLException {
        checkColumnBounds(columnIndex);
        // TODO: Tempting to apply a != 0 operation on numbers and
        // .equals("true") on strings, but... hacky
        try {
            return (new Long(table.getLong(columnIndex - 1))).intValue() == 1;
        } catch (Exception x) {
            throw SQLError.get(x);
        }
    }
869392
public static byte[] getBlob(Cursor cursor, String columnName) {
        if (cursor == null) {
            return null;
        }

        return cursor.getBlob(cursor.getColumnIndex(columnName));
    }
265734
@SuppressFBWarnings("NP_BOOLEAN_RETURN_NULL")
    public static Boolean getBoolean(final ResultSet rs, final int columnIndex) throws SQLException
    {
        final boolean res = rs.getBoolean(columnIndex);
        if (rs.wasNull()) {
            return null;
        } else {
            return res;
        }
    }
1275904
public TColumn getColumnById(long columnId) {
        if (columns == null) {
            return null;
        }

        TColumn result = null;
        for (TColumn column : columns) {
            if (column.getId() == columnId) {
                result = column;
                break;
            }
        }
        return result;
    }
628752
public SQLSelect column(final int _tableIndex,
                            final String _columnName)
    {
        columns.add(new Column(tablePrefix, _tableIndex, _columnName));
        return this;
    }
433534
static boolean readBoolean(Node node)
    {
        if (node == null)
        {
            throw new XmlException(
                "Tried to read boolean value from null node");
        }
        String value = node.getFirstChild().getNodeValue();
        return Boolean.parseBoolean(value);
    }
1109688
public static ScanCursor of(String cursor) {
        ScanCursor scanCursor = new ScanCursor();
        scanCursor.setCursor(cursor);
        return scanCursor;
    }
1103594
public TColumn getColumnByIndex(int index) {
        if (columns == null) {
            return null;
        }

        TColumn result = null;
        for (TColumn column : columns) {
            if (column.getIndex() == index) {
                result = column;
                break;
            }
        }
        return result;
    }
1205120
public BooleanColumn set(Selection rowSelection, boolean newValue) {
        for (int row : rowSelection) {
            set(row, newValue);
        }
        return this;
    }
543369
@Override
    public <E> List<E> getColumnsById(String schemaName, String tableName, String pKeyColumnName, String columnName,
            Object pKeyColumnValue, Class columnJavaType)
    {
        // search using index on pkey column
        List<E> foreignKeys = new ArrayList<E>();

        Table schemaTable = tableAPI.getTable(tableName);
        Index index = schemaTable.getIndex(pKeyColumnName);
        IndexKey indexKey = index.createIndexKey();

        // StringBuilder indexNamebuilder = new StringBuilder();
        NoSqlDBUtils.add(schemaTable.getField(pKeyColumnName), indexKey, pKeyColumnValue, pKeyColumnName);
        KunderaCoreUtils.printQuery(
                "Get columns by id from:" + tableName + " for column:" + columnName + " where value:" + pKeyColumnValue,
                showQuery);
        Iterator<Row> rowsIter = tableAPI.tableIterator(indexKey, null, null);

        while (rowsIter.hasNext())
        {
            Row row = rowsIter.next();
            FieldDef fieldMetadata = schemaTable.getField(columnName);
            FieldValue value = row.get(columnName);
            foreignKeys.add((E) NoSqlDBUtils.get(fieldMetadata, value, null));
        }

        return foreignKeys;

    }