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

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

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

Value.getShort介绍

暂无

代码示例

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

/**
 * @param val Value.
 */
public GridH2Short(Value val) {
  assert val.getType() == Value.SHORT : val.getType();
  x = val.getShort();
}

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

/**
 * Returns the value of the specified column as a short.
 *
 * @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 short getShort(String columnLabel) throws SQLException {
  try {
    debugCodeCall("getShort", columnLabel);
    return get(columnLabel).getShort();
  } catch (Exception e) {
    throw logAndConvert(e);
  }
}

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

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

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

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

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

short short2 = v.getShort();

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

break;
case Value.SHORT:
  buff.put((byte) type).putShort(v.getShort());
  break;
case Value.ENUM:

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

PageUtils.putShort(pageAddr, off + 1, val.getShort());
return size + 1;

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

/**
 * @param val Value.
 */
public GridH2Short(Value val) {
  assert val.getType() == Value.SHORT : val.getType();
  x = val.getShort();
}

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

/**
 * Returns the value of the specified column as a short.
 * 
 * @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 short getShort(String columnName) throws SQLException {
  try {
    debugCodeCall("getShort", columnName);
    return get(columnName).getShort();
  } catch (Throwable e) {
    throw logAndConvert(e);
  }
}

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

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

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

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

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

/**
 * Returns the value of the specified column as a short.
 *
 * @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 short getShort(String columnLabel) throws SQLException {
  try {
    debugCodeCall("getShort", columnLabel);
    return get(columnLabel).getShort();
  } catch (Exception e) {
    throw logAndConvert(e);
  }
}

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

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

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

/**
 * Returns the value of the specified column as a short.
 *
 * @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 short getShort(String columnLabel) throws SQLException {
  try {
    debugCodeCall("getShort", columnLabel);
    return get(columnLabel).getShort();
  } catch (Exception e) {
    throw logAndConvert(e);
  }
}

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

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

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

short short2 = v.getShort();

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

break;
case Value.SHORT:
  writeInt(v.getShort());
  break;
case Value.STRING:

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

PageUtils.putShort(pageAddr, off + 1, val.getShort());
return size + 1;

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

break;
case Value.SHORT:
  writeInt(v.getShort());
  break;
case Value.STRING:

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

break;
case Value.SHORT:
  writeInt(v.getShort());
  break;
case Value.STRING:

相关文章

微信公众号

最新文章

更多