热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

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

本文整理了Java中org.h2.value.Value.getShort()方法的一些代码示例,展示了Value.getShort()的具体

本文整理了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:

推荐阅读
author-avatar
你是谁你要知道_893
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有