本文整理了Java中org.h2.value.Value.getByte()
方法的一些代码示例,展示了Value.getByte()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Value.getByte()
方法的具体详情如下:
包路径:org.h2.value.Value
类名称: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();
内容来源于网络,如有侵权,请联系作者删除!