org.h2.value.Value.getByte()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(91)

本文整理了Java中org.h2.value.Value.getByte()方法的一些代码示例,展示了Value.getByte()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Value.getByte()方法的具体详情如下:
包路径:org.h2.value.Value
类名称:Value
方法名:getByte

Value.getByte介绍

暂无

代码示例

代码示例来源:origin: apache/ignite

/**
 * @param val Value.
 */
public GridH2Byte(Value val) {
  assert val.getType() == Value.BYTE : val.getType();
  x = val.getByte();
}

代码示例来源:origin: com.h2database/h2

return type.cast(value.getBoolean());
} else if (type == Byte.class) {
  return type.cast(value.getByte());
} else if (type == Short.class) {
  return type.cast(value.getShort());

代码示例来源:origin: com.h2database/h2

break;
case Value.BYTE:
  buff.put((byte) type).put(v.getByte());
  break;
case Value.SHORT:

代码示例来源:origin: com.h2database/com.springsource.org.h2

break;
case Value.BYTE:
  writeByte(v.getByte());
  break;
case Value.TIME:

代码示例来源:origin: apache/ignite

PageUtils.putByte(pageAddr, off + 1, val.getByte());
return size + 1;

代码示例来源:origin: com.h2database/h2

/**
 * Returns the value of the specified column as a byte.
 *
 * @param columnIndex (1,2,...)
 * @return the value
 * @throws SQLException if the column is not found or if the result set is
 *             closed
 */
@Override
public byte getByte(int columnIndex) throws SQLException {
  try {
    debugCodeCall("getByte", columnIndex);
    return get(columnIndex).getByte();
  } catch (Exception e) {
    throw logAndConvert(e);
  }
}

代码示例来源:origin: org.wowtools/h2

break;
case Value.BYTE:
  writeByte(v.getByte());
  break;
case Value.TIME:

代码示例来源:origin: org.wowtools/h2

return type.cast(value.getBoolean());
} else if (type == Byte.class) {
  return type.cast(value.getByte());
} else if (type == Short.class) {
  return type.cast(value.getShort());

代码示例来源:origin: com.h2database/h2

/**
 * Returns the value of the specified column as a byte.
 *
 * @param columnLabel the column label
 * @return the value
 * @throws SQLException if the column is not found or if the result set is
 *             closed
 */
@Override
public byte getByte(String columnLabel) throws SQLException {
  try {
    debugCodeCall("getByte", columnLabel);
    return get(columnLabel).getByte();
  } catch (Exception e) {
    throw logAndConvert(e);
  }
}

代码示例来源:origin: org.apache.ignite/ignite-indexing

PageUtils.putByte(pageAddr, off + 1, val.getByte());
return size + 1;

代码示例来源:origin: apache/ignite

byte byte2 = v.getByte();

代码示例来源:origin: JoleneOL/market-manage

@SuppressWarnings("unused")
public static Object h2If(Value exp, Value var, Value var2) {
  Value result = exp.getByte() != 0 ? var : var2;
  if (result instanceof ValueNull)
    return null;
  if (result instanceof ValueString)
    return result.getString();
  throw new IllegalStateException("I can do nothing. for:" + result);
}

代码示例来源:origin: org.apache.ignite/ignite-indexing

/**
 * @param val Value.
 */
public GridH2Byte(Value val) {
  assert val.getType() == Value.BYTE : val.getType();
  x = val.getByte();
}

代码示例来源:origin: com.h2database/com.springsource.org.h2

/**
 * Returns the value of the specified column as a byte.
 * 
 * @param columnName the name of the column label
 * @return the value
 * @throws SQLException if the column is not found or if the result set is
 *             closed
 */
public byte getByte(String columnName) throws SQLException {
  try {
    debugCodeCall("getByte", columnName);
    return get(columnName).getByte();
  } catch (Throwable e) {
    throw logAndConvert(e);
  }
}

代码示例来源:origin: com.eventsourcing/h2

/**
 * Returns the value of the specified column as a byte.
 *
 * @param columnIndex (1,2,...)
 * @return the value
 * @throws SQLException if the column is not found or if the result set is
 *             closed
 */
@Override
public byte getByte(int columnIndex) throws SQLException {
  try {
    debugCodeCall("getByte", columnIndex);
    return get(columnIndex).getByte();
  } catch (Exception e) {
    throw logAndConvert(e);
  }
}

代码示例来源:origin: org.wowtools/h2

/**
 * Returns the value of the specified column as a byte.
 *
 * @param columnIndex (1,2,...)
 * @return the value
 * @throws SQLException if the column is not found or if the result set is
 *             closed
 */
@Override
public byte getByte(int columnIndex) throws SQLException {
  try {
    debugCodeCall("getByte", columnIndex);
    return get(columnIndex).getByte();
  } catch (Exception e) {
    throw logAndConvert(e);
  }
}

代码示例来源:origin: com.h2database/com.springsource.org.h2

/**
 * Returns the value of the specified column as a byte.
 * 
 * @param columnIndex (1,2,...)
 * @return the value
 * @throws SQLException if the column is not found or if the result set is
 *             closed
 */
public byte getByte(int columnIndex) throws SQLException {
  try {
    debugCodeCall("getByte", columnIndex);
    return get(columnIndex).getByte();
  } catch (Throwable e) {
    throw logAndConvert(e);
  }
}

代码示例来源:origin: com.eventsourcing/h2

/**
 * Returns the value of the specified column as a byte.
 *
 * @param columnLabel the column label
 * @return the value
 * @throws SQLException if the column is not found or if the result set is
 *             closed
 */
@Override
public byte getByte(String columnLabel) throws SQLException {
  try {
    debugCodeCall("getByte", columnLabel);
    return get(columnLabel).getByte();
  } catch (Exception e) {
    throw logAndConvert(e);
  }
}

代码示例来源:origin: org.wowtools/h2

/**
 * Returns the value of the specified column as a byte.
 *
 * @param columnLabel the column label
 * @return the value
 * @throws SQLException if the column is not found or if the result set is
 *             closed
 */
@Override
public byte getByte(String columnLabel) throws SQLException {
  try {
    debugCodeCall("getByte", columnLabel);
    return get(columnLabel).getByte();
  } catch (Exception e) {
    throw logAndConvert(e);
  }
}

代码示例来源:origin: org.apache.ignite/ignite-indexing

byte byte2 = v.getByte();

相关文章

微信公众号

最新文章

更多