Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
87dc0a20
提交
87dc0a20
authored
12月 29, 2011
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Prepare for updateable simple result set (for TriggerAdapter)
上级
3dfa0fae
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
472 行增加
和
459 行删除
+472
-459
SimpleResultSet.java
h2/src/main/org/h2/tools/SimpleResultSet.java
+472
-459
没有找到文件。
h2/src/main/org/h2/tools/SimpleResultSet.java
浏览文件 @
87dc0a20
...
...
@@ -777,16 +777,6 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
return
getTimestamp
(
findColumn
(
columnLabel
));
}
/**
* Returns the value as a java.sql.Array.
*
* @param columnLabel the column label
* @return the value
*/
public
Array
getArray
(
String
columnLabel
)
throws
SQLException
{
return
getArray
(
findColumn
(
columnLabel
));
}
/**
* Returns the value as a java.io.Reader.
* This is only supported if the
...
...
@@ -1050,8 +1040,6 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
return
null
;
}
// ---- unsupported / result set ---------------------------------------------
/**
* INTERNAL
*/
...
...
@@ -1059,199 +1047,230 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
// nothing to do
}
// ---- unsupported / result set ---------------------------------------------
/**
* INTERNAL
*/
public
void
afterLast
(
)
throws
SQLException
{
public
void
updateArray
(
int
columnIndex
,
Array
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
* Returns the value as a java.sql.Array.
*
* @param columnLabel the column label
* @return the value
*/
public
void
cancelRowUpdates
(
)
throws
SQLException
{
throw
getUnsupportedException
(
);
public
Array
getArray
(
String
columnLabel
)
throws
SQLException
{
return
getArray
(
findColumn
(
columnLabel
)
);
}
/**
* INTERNAL
*/
public
void
updateNull
(
String
columnLabel
)
throws
SQLException
{
//## Java 1.6 ##
public
void
updateAsciiStream
(
int
columnIndex
,
InputStream
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
void
deleteRow
()
throws
SQLException
{
//## Java 1.6 ##
public
void
updateAsciiStream
(
String
columnLabel
,
InputStream
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
void
insertRow
(
)
throws
SQLException
{
public
void
updateAsciiStream
(
int
columnIndex
,
InputStream
x
,
int
length
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
void
moveToCurrentRow
(
)
throws
SQLException
{
public
void
updateAsciiStream
(
String
columnLabel
,
InputStream
x
,
int
length
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
void
moveToInsertRow
()
throws
SQLException
{
//## Java 1.6 ##
public
void
updateAsciiStream
(
int
columnIndex
,
InputStream
x
,
long
length
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
void
refreshRow
()
throws
SQLException
{
//## Java 1.6 ##
public
void
updateAsciiStream
(
String
columnLabel
,
InputStream
x
,
long
length
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
void
update
Row
(
)
throws
SQLException
{
public
void
update
BigDecimal
(
int
columnIndex
,
BigDecimal
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
boolean
first
(
)
throws
SQLException
{
public
void
updateBigDecimal
(
String
columnLabel
,
BigDecimal
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
boolean
isAfterLast
()
throws
SQLException
{
//## Java 1.6 ##
public
void
updateBinaryStream
(
int
columnLabel
,
InputStream
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
boolean
isBeforeFirst
()
throws
SQLException
{
//## Java 1.6 ##
public
void
updateBinaryStream
(
String
columnLabel
,
InputStream
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
boolean
isFirst
(
)
throws
SQLException
{
public
void
updateBinaryStream
(
int
columnIndex
,
InputStream
x
,
int
length
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
boolean
isLast
(
)
throws
SQLException
{
public
void
updateBinaryStream
(
String
columnLabel
,
InputStream
x
,
int
length
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
boolean
last
()
throws
SQLException
{
//## Java 1.6 ##
public
void
updateBinaryStream
(
int
columnIndex
,
InputStream
x
,
long
length
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
boolean
previous
()
throws
SQLException
{
//## Java 1.6 ##
public
void
updateBinaryStream
(
String
columnLabel
,
InputStream
x
,
long
length
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
boolean
rowDeleted
(
)
throws
SQLException
{
public
void
updateBlob
(
int
columnIndex
,
Blob
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
boolean
rowInserted
(
)
throws
SQLException
{
public
void
updateBlob
(
String
columnLabel
,
Blob
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
boolean
rowUpdated
(
)
throws
SQLException
{
public
void
updateBoolean
(
int
columnIndex
,
boolean
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
void
setFetchDirection
(
int
direction
)
throws
SQLException
{
public
void
updateBoolean
(
String
columnLabel
,
boolean
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
// intest
/**
* INTERNAL
*/
public
void
setFetchSize
(
int
rows
)
throws
SQLException
{
public
void
updateNull
(
int
columnIndex
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
void
updateNull
(
int
columnIndex
)
throws
SQLException
{
public
void
updateNull
(
String
columnLabel
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
boolean
absolute
(
int
row
)
throws
SQLException
{
public
void
updateByte
(
int
columnIndex
,
byte
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
boolean
relative
(
int
offset
)
throws
SQLException
{
public
void
updateByte
(
String
columnLabel
,
byte
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
void
update
Byte
(
int
columnIndex
,
byte
x
)
throws
SQLException
{
public
void
update
Short
(
int
columnIndex
,
short
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
void
update
Double
(
int
columnIndex
,
double
x
)
throws
SQLException
{
public
void
update
Short
(
String
columnLabel
,
short
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
void
update
Float
(
int
columnIndex
,
floa
t
x
)
throws
SQLException
{
public
void
update
Int
(
int
columnIndex
,
in
t
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
void
updateInt
(
int
columnIndex
,
int
x
)
throws
SQLException
{
public
void
updateInt
(
String
columnLabel
,
int
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
...
...
@@ -1265,799 +1284,791 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
/**
* INTERNAL
*/
public
void
update
Short
(
int
columnIndex
,
short
x
)
throws
SQLException
{
public
void
update
Long
(
String
columnLabel
,
long
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
void
update
Boolean
(
int
columnIndex
,
boolean
x
)
throws
SQLException
{
public
void
update
Float
(
int
columnIndex
,
float
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
void
update
Bytes
(
int
columnIndex
,
byte
[]
x
)
throws
SQLException
{
public
void
update
Float
(
String
columnLabel
,
float
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
InputStream
getAsciiStream
(
int
columnIndex
)
{
return
null
;
public
void
updateDouble
(
int
columnIndex
,
double
x
)
throws
SQLException
{
throw
getUnsupportedException
()
;
}
/**
*
@deprecated
INTERNAL
* INTERNAL
*/
public
InputStream
getUnicodeStream
(
int
columnIndex
)
{
return
null
;
public
void
updateDouble
(
String
columnLabel
,
double
x
)
throws
SQLException
{
throw
getUnsupportedException
()
;
}
/**
* INTERNAL
*/
public
void
updateAsciiStream
(
int
columnIndex
,
InputStream
x
,
int
length
)
throws
SQLException
{
public
void
updateString
(
int
columnIndex
,
String
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
void
update
BinaryStream
(
int
columnIndex
,
InputStream
x
,
int
length
)
throws
SQLException
{
public
void
update
String
(
String
columnLabel
,
String
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
void
update
CharacterStream
(
int
columnIndex
,
Reader
x
,
int
length
)
throws
SQLException
{
public
void
update
Date
(
int
columnIndex
,
Date
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
void
update
Object
(
int
columnIndex
,
Object
x
)
throws
SQLException
{
public
void
update
Date
(
String
columnLabel
,
Date
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
void
update
Object
(
int
columnIndex
,
Object
x
,
int
scale
)
throws
SQLException
{
public
void
update
Time
(
int
columnIndex
,
Time
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
String
getCursorName
(
)
throws
SQLException
{
public
void
updateTime
(
String
columnLabel
,
Time
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
void
update
String
(
int
columnIndex
,
String
x
)
throws
SQLException
{
public
void
update
Timestamp
(
int
columnIndex
,
Timestamp
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
void
update
Byte
(
String
columnLabel
,
byte
x
)
throws
SQLException
{
public
void
update
Timestamp
(
String
columnLabel
,
Timestamp
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
void
update
Double
(
String
columnLabel
,
double
x
)
throws
SQLException
{
public
void
update
Object
(
int
columnIndex
,
Object
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
void
update
Float
(
String
columnLabel
,
floa
t
x
)
throws
SQLException
{
public
void
update
Object
(
String
columnLabel
,
Objec
t
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
void
update
Int
(
String
columnLabel
,
int
x
)
throws
SQLException
{
public
void
update
Object
(
int
columnIndex
,
Object
x
,
int
scale
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
void
update
Long
(
String
columnLabel
,
long
x
)
throws
SQLException
{
public
void
update
Object
(
String
columnLabel
,
Object
x
,
int
scale
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
void
update
Short
(
String
columnLabel
,
short
x
)
throws
SQLException
{
public
void
update
Bytes
(
int
columnIndex
,
byte
[]
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
void
updateB
oolean
(
String
columnLabel
,
boolean
x
)
throws
SQLException
{
public
void
updateB
ytes
(
String
columnLabel
,
byte
[]
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
void
update
Bytes
(
String
columnLabel
,
byte
[]
x
)
throws
SQLException
{
public
void
update
CharacterStream
(
int
columnIndex
,
Reader
x
,
int
length
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* @deprecated
INTERNAL
*
INTERNAL
*/
public
BigDecimal
getBigDecimal
(
int
columnIndex
,
int
scale
)
throws
SQLException
{
public
URL
getURL
(
int
columnIndex
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
void
updateBigDecimal
(
int
columnIndex
,
BigDecimal
x
)
throws
SQLException
{
public
void
updateClob
(
int
columnIndex
,
Clob
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
URL
getURL
(
int
columnInde
x
)
throws
SQLException
{
public
void
updateRef
(
int
columnIndex
,
Ref
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
void
updateArray
(
int
columnIndex
,
Array
x
)
throws
SQLException
{
public
void
updateRef
(
String
columnLabel
,
Ref
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
void
updateBlob
(
int
columnIndex
,
Blob
x
)
throws
SQLException
{
public
void
updateCharacterStream
(
String
columnLabel
,
Reader
reader
,
int
length
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
void
updateClob
(
int
columnIndex
,
Clob
x
)
throws
SQLException
{
public
void
updateArray
(
String
columnLabel
,
Array
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
void
updateDate
(
int
columnIndex
,
Date
x
)
throws
SQLException
{
public
void
updateClob
(
String
columnLabel
,
Clob
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
Ref
getRef
(
int
columnIndex
)
throws
SQLException
{
//## Java 1.6 ##
public
void
updateRowId
(
int
columnIndex
,
RowId
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
void
updateRef
(
int
columnIndex
,
Ref
x
)
throws
SQLException
{
//## Java 1.6 ##
public
void
updateRowId
(
String
columnLabel
,
RowId
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
void
updateTime
(
int
columnIndex
,
Time
x
)
throws
SQLException
{
//## Java 1.6 ##
public
void
updateNString
(
int
columnIndex
,
String
nString
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
void
updateTimestamp
(
int
columnIndex
,
Timestamp
x
)
throws
SQLException
{
//## Java 1.6 ##
public
void
updateNString
(
String
columnLabel
,
String
nString
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
InputStream
getAsciiStream
(
String
columnLabel
)
throws
SQLException
{
//## Java 1.6 ##
public
void
updateNClob
(
int
columnIndex
,
NClob
nClob
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* @deprecated
INTERNAL
*
INTERNAL
*/
public
InputStream
getUnicodeStream
(
String
columnLabel
)
throws
SQLException
{
//## Java 1.6 ##
public
void
updateNClob
(
String
columnLabel
,
NClob
nClob
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
void
updateAsciiStream
(
String
columnLabel
,
InputStream
x
,
int
length
)
throws
SQLException
{
//## Java 1.6 ##
public
void
updateSQLXML
(
int
columnIndex
,
SQLXML
xmlObject
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
void
updateBinaryStream
(
String
columnLabel
,
InputStream
x
,
int
length
)
throws
SQLException
{
//## Java 1.6 ##
public
void
updateSQLXML
(
String
columnLabel
,
SQLXML
xmlObject
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
void
updateCharacterStream
(
String
columnLabel
,
Reader
reader
,
int
length
)
throws
SQLException
{
//## Java 1.6 ##
public
void
updateBlob
(
int
columnIndex
,
InputStream
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
void
updateObject
(
String
columnLabel
,
Object
x
)
throws
SQLException
{
//## Java 1.6 ##
public
void
updateBlob
(
String
columnLabel
,
InputStream
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
void
updateObject
(
String
columnLabel
,
Object
x
,
int
scale
)
throws
SQLException
{
//## Java 1.6 ##
public
void
updateBlob
(
int
columnIndex
,
InputStream
x
,
long
length
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
Object
getObject
(
int
columnIndex
,
Map
<
String
,
Class
<?>>
map
)
throws
SQLException
{
//## Java 1.6 ##
public
void
updateBlob
(
String
columnLabel
,
InputStream
x
,
long
length
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
void
updateString
(
String
columnLabel
,
String
x
)
throws
SQLException
{
//## Java 1.6 ##
public
void
updateCharacterStream
(
int
columnIndex
,
Reader
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* @deprecated
INTERNAL
*
INTERNAL
*/
public
BigDecimal
getBigDecimal
(
String
columnLabel
,
int
scale
)
throws
SQLException
{
//## Java 1.6 ##
public
void
updateCharacterStream
(
String
columnLabel
,
Reader
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
void
updateBigDecimal
(
String
columnLabel
,
BigDecimal
x
)
throws
SQLException
{
//## Java 1.6 ##
public
void
updateCharacterStream
(
int
columnIndex
,
Reader
x
,
long
length
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
URL
getURL
(
String
columnLabel
)
throws
SQLException
{
//## Java 1.6 ##
public
void
updateCharacterStream
(
String
columnLabel
,
Reader
x
,
long
length
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
void
updateArray
(
String
columnLabel
,
Array
x
)
throws
SQLException
{
//## Java 1.6 ##
public
void
updateClob
(
int
columnIndex
,
Reader
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
void
updateBlob
(
String
columnLabel
,
Blob
x
)
throws
SQLException
{
//## Java 1.6 ##
public
void
updateClob
(
String
columnLabel
,
Reader
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
void
updateClob
(
String
columnLabel
,
Clob
x
)
throws
SQLException
{
//## Java 1.6 ##
public
void
updateClob
(
int
columnIndex
,
Reader
x
,
long
length
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
void
updateDate
(
String
columnLabel
,
Date
x
)
throws
SQLException
{
//## Java 1.6 ##
public
void
updateClob
(
String
columnLabel
,
Reader
x
,
long
length
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
Date
getDate
(
int
columnIndex
,
Calendar
cal
)
throws
SQLException
{
//## Java 1.6 ##
public
void
updateNCharacterStream
(
int
columnIndex
,
Reader
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
Ref
getRef
(
String
colName
)
throws
SQLException
{
//## Java 1.6 ##
public
void
updateNCharacterStream
(
String
columnLabel
,
Reader
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
void
updateRef
(
String
columnLabel
,
Ref
x
)
throws
SQLException
{
//## Java 1.6 ##
public
void
updateNCharacterStream
(
int
columnIndex
,
Reader
x
,
long
length
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
void
updateTime
(
String
columnLabel
,
Time
x
)
throws
SQLException
{
//## Java 1.6 ##
public
void
updateNCharacterStream
(
String
columnLabel
,
Reader
x
,
long
length
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
Time
getTime
(
int
columnIndex
,
Calendar
cal
)
throws
SQLException
{
//## Java 1.6 ##
public
void
updateNClob
(
int
columnIndex
,
Reader
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
void
updateTimestamp
(
String
columnLabel
,
Timestamp
x
)
throws
SQLException
{
//## Java 1.6 ##
public
void
updateNClob
(
String
columnLabel
,
Reader
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
Timestamp
getTimestamp
(
int
columnIndex
,
Calendar
cal
)
throws
SQLException
{
//## Java 1.6 ##
public
void
updateNClob
(
int
columnIndex
,
Reader
x
,
long
length
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
Object
getObject
(
String
colName
,
Map
<
String
,
Class
<?>>
map
)
throws
SQLException
{
//## Java 1.6 ##
public
void
updateNClob
(
String
columnLabel
,
Reader
x
,
long
length
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
public
Date
getDate
(
String
columnLabel
,
Calendar
cal
)
throws
SQLException
{
public
Time
getTime
(
int
columnIndex
,
Calendar
cal
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
Time
getTime
(
String
columnLabel
,
Calendar
cal
)
throws
SQLException
{
public
void
afterLast
(
)
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
public
Timestamp
getTimestamp
(
String
columnLabel
,
Calendar
cal
)
throws
SQLException
{
public
void
cancelRowUpdates
(
)
throws
SQLException
{
throw
getUnsupportedException
();
}
// --- private -----------------------------
/**
* INTERNAL
*/
static
SQLException
getUnsupportedException
()
{
return
DbException
.
get
(
ErrorCode
.
FEATURE_NOT_SUPPORTED_1
).
getSQLException
();
}
private
void
checkColumnIndex
(
int
columnIndex
)
throws
SQLException
{
if
(
columnIndex
<
0
||
columnIndex
>=
columns
.
size
())
{
throw
DbException
.
getInvalidValueException
(
"columnIndex"
,
columnIndex
+
1
).
getSQLException
();
}
}
private
Object
get
(
int
columnIndex
)
throws
SQLException
{
if
(
currentRow
==
null
)
{
throw
DbException
.
get
(
ErrorCode
.
NO_DATA_AVAILABLE
).
getSQLException
();
}
columnIndex
--;
checkColumnIndex
(
columnIndex
);
Object
o
=
columnIndex
<
currentRow
.
length
?
currentRow
[
columnIndex
]
:
null
;
wasNull
=
o
==
null
;
return
o
;
}
private
Column
getColumn
(
int
i
)
throws
SQLException
{
checkColumnIndex
(
i
);
return
columns
.
get
(
i
);
public
void
deleteRow
()
throws
SQLException
{
throw
getUnsupportedException
();
}
/**
* INTERNAL
*/
//## Java 1.6 ##
public
RowId
getRowId
(
int
columnIndex
)
throws
SQLException
{
public
void
insertRow
()
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public
RowId
getRowId
(
String
columnLabel
)
throws
SQLException
{
public
void
moveToCurrentRow
()
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateRowId
(
int
columnIndex
,
RowId
x
)
throws
SQLException
{
public
void
moveToInsertRow
()
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateRowId
(
String
columnLabel
,
RowId
x
)
throws
SQLException
{
public
void
refreshRow
()
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* Returns the current result set holdability.
*
* @return the holdability
* INTERNAL
*/
public
int
getHoldability
()
{
return
ResultSet
.
HOLD_CURSORS_OVER_COMMIT
;
public
void
updateRow
()
throws
SQLException
{
throw
getUnsupportedException
()
;
}
/**
* Returns whether this result set has been closed.
*
* @return true if the result set was closed
* INTERNAL
*/
public
boolean
isClosed
()
{
return
rows
==
null
;
public
boolean
first
()
throws
SQLException
{
throw
getUnsupportedException
()
;
}
/**
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateNString
(
int
columnIndex
,
String
nString
)
throws
SQLException
{
public
boolean
isAfterLast
()
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateNString
(
String
columnLabel
,
String
nString
)
throws
SQLException
{
public
boolean
isBeforeFirst
()
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateNClob
(
int
columnIndex
,
NClob
nClob
)
throws
SQLException
{
public
boolean
isFirst
()
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateNClob
(
String
columnLabel
,
NClob
nClob
)
throws
SQLException
{
public
boolean
isLast
()
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public
NClob
getNClob
(
int
columnIndex
)
throws
SQLException
{
public
boolean
last
()
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public
NClob
getNClob
(
String
columnLabel
)
throws
SQLException
{
public
boolean
previous
()
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public
SQLXML
getSQLXML
(
int
columnIndex
)
throws
SQLException
{
public
boolean
rowDeleted
()
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public
SQLXML
getSQLXML
(
String
columnLabel
)
throws
SQLException
{
public
boolean
rowInserted
()
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateSQLXML
(
int
columnIndex
,
SQLXML
xmlObject
)
throws
SQLException
{
public
boolean
rowUpdated
()
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateSQLXML
(
String
columnLabel
,
SQLXML
xmlObject
)
throws
SQLException
{
public
void
setFetchDirection
(
int
direction
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public
String
getNString
(
int
columnIndex
)
throws
SQLException
{
return
getString
(
columnIndex
);
public
void
setFetchSize
(
int
rows
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public
String
getNString
(
String
columnLabel
)
throws
SQLException
{
return
getString
(
columnLabel
);
public
boolean
absolute
(
int
row
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public
Reader
getNCharacterStream
(
int
columnIndex
)
throws
SQLException
{
public
boolean
relative
(
int
offset
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public
Reader
getNCharacterStream
(
String
columnLabel
)
throws
SQLException
{
throw
getUnsupportedException
();
public
InputStream
getAsciiStream
(
int
columnIndex
)
{
return
null
;
}
//*/
/**
* INTERNAL
*
@deprecated
INTERNAL
*/
//## Java 1.6 ##
public
<
T
>
T
unwrap
(
Class
<
T
>
iface
)
throws
SQLException
{
throw
getUnsupportedException
();
public
InputStream
getUnicodeStream
(
int
columnIndex
)
{
return
null
;
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public
boolean
isWrapperFor
(
Class
<?>
iface
)
throws
SQLException
{
public
String
getCursorName
()
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
/**
* @deprecated INTERNAL
*/
//## Java 1.6 ##
public
void
updateAsciiStream
(
int
columnIndex
,
InputStream
x
)
throws
SQLException
{
public
BigDecimal
getBigDecimal
(
int
columnIndex
,
int
scale
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateAsciiStream
(
String
columnLabel
,
InputStream
x
)
throws
SQLException
{
public
Ref
getRef
(
int
columnIndex
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateAsciiStream
(
int
columnIndex
,
InputStream
x
,
long
length
)
throws
SQLException
{
public
InputStream
getAsciiStream
(
String
columnLabel
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*
@deprecated
INTERNAL
*/
//## Java 1.6 ##
public
void
updateAsciiStream
(
String
columnLabel
,
InputStream
x
,
long
length
)
throws
SQLException
{
public
InputStream
getUnicodeStream
(
String
columnLabel
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateBinaryStream
(
int
columnLabel
,
InputStream
x
)
throws
SQLException
{
public
Object
getObject
(
int
columnIndex
,
Map
<
String
,
Class
<?>>
map
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*
@deprecated
INTERNAL
*/
//## Java 1.6 ##
public
void
updateBinaryStream
(
String
columnLabel
,
InputStream
x
)
throws
SQLException
{
public
BigDecimal
getBigDecimal
(
String
columnLabel
,
int
scale
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateBinaryStream
(
int
columnIndex
,
InputStream
x
,
long
length
)
throws
SQLException
{
public
URL
getURL
(
String
columnLabel
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateBinaryStream
(
String
columnLabel
,
InputStream
x
,
long
length
)
throws
SQLException
{
public
Date
getDate
(
int
columnIndex
,
Calendar
cal
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateBlob
(
int
columnIndex
,
InputStream
x
)
throws
SQLException
{
public
Ref
getRef
(
String
colName
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateBlob
(
String
columnLabel
,
InputStream
x
)
throws
SQLException
{
public
Timestamp
getTimestamp
(
int
columnIndex
,
Calendar
cal
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateBlob
(
int
columnIndex
,
InputStream
x
,
long
length
)
throws
SQLException
{
public
Object
getObject
(
String
colName
,
Map
<
String
,
Class
<?>>
map
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateBlob
(
String
columnLabel
,
InputStream
x
,
long
length
)
throws
SQLException
{
public
Date
getDate
(
String
columnLabel
,
Calendar
cal
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateCharacterStream
(
int
columnIndex
,
Reader
x
)
throws
SQLException
{
public
Time
getTime
(
String
columnLabel
,
Calendar
cal
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateCharacterStream
(
String
columnLabel
,
Reader
x
)
throws
SQLException
{
public
Timestamp
getTimestamp
(
String
columnLabel
,
Calendar
cal
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
// --- private -----------------------------
/**
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateCharacterStream
(
int
columnIndex
,
Reader
x
,
long
length
)
throws
SQLException
{
throw
getUnsupportedException
();
static
SQLException
getUnsupportedException
()
{
return
DbException
.
get
(
ErrorCode
.
FEATURE_NOT_SUPPORTED_1
).
getSQLException
();
}
private
void
checkColumnIndex
(
int
columnIndex
)
throws
SQLException
{
if
(
columnIndex
<
0
||
columnIndex
>=
columns
.
size
())
{
throw
DbException
.
getInvalidValueException
(
"columnIndex"
,
columnIndex
+
1
).
getSQLException
();
}
}
private
Object
get
(
int
columnIndex
)
throws
SQLException
{
if
(
currentRow
==
null
)
{
throw
DbException
.
get
(
ErrorCode
.
NO_DATA_AVAILABLE
).
getSQLException
();
}
columnIndex
--;
checkColumnIndex
(
columnIndex
);
Object
o
=
columnIndex
<
currentRow
.
length
?
currentRow
[
columnIndex
]
:
null
;
wasNull
=
o
==
null
;
return
o
;
}
private
Column
getColumn
(
int
i
)
throws
SQLException
{
checkColumnIndex
(
i
);
return
columns
.
get
(
i
);
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateCharacterStream
(
String
columnLabel
,
Reader
x
,
long
length
)
throws
SQLException
{
public
RowId
getRowId
(
int
columnIndex
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
...
...
@@ -2066,26 +2077,34 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateClob
(
int
columnIndex
,
Reader
x
)
throws
SQLException
{
public
RowId
getRowId
(
String
columnLabel
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
/**
* INTERNAL
* Returns the current result set holdability.
*
* @return the holdability
*/
//## Java 1.6 ##
public
void
updateClob
(
String
columnLabel
,
Reader
x
)
throws
SQLException
{
throw
getUnsupportedException
();
public
int
getHoldability
()
{
return
ResultSet
.
HOLD_CURSORS_OVER_COMMIT
;
}
/**
* Returns whether this result set has been closed.
*
* @return true if the result set was closed
*/
public
boolean
isClosed
()
{
return
rows
==
null
;
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateClob
(
int
columnIndex
,
Reader
x
,
long
length
)
throws
SQLException
{
public
NClob
getNClob
(
int
columnIndex
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
...
...
@@ -2094,8 +2113,7 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateClob
(
String
columnLabel
,
Reader
x
,
long
length
)
throws
SQLException
{
public
NClob
getNClob
(
String
columnLabel
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
...
...
@@ -2104,8 +2122,7 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateNCharacterStream
(
int
columnIndex
,
Reader
x
)
throws
SQLException
{
public
SQLXML
getSQLXML
(
int
columnIndex
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
...
...
@@ -2114,8 +2131,7 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateNCharacterStream
(
String
columnLabel
,
Reader
x
)
throws
SQLException
{
public
SQLXML
getSQLXML
(
String
columnLabel
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
...
...
@@ -2124,9 +2140,8 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateNCharacterStream
(
int
columnIndex
,
Reader
x
,
long
length
)
throws
SQLException
{
throw
getUnsupportedException
();
public
String
getNString
(
int
columnIndex
)
throws
SQLException
{
return
getString
(
columnIndex
);
}
//*/
...
...
@@ -2134,9 +2149,8 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateNCharacterStream
(
String
columnLabel
,
Reader
x
,
long
length
)
throws
SQLException
{
throw
getUnsupportedException
();
public
String
getNString
(
String
columnLabel
)
throws
SQLException
{
return
getString
(
columnLabel
);
}
//*/
...
...
@@ -2144,7 +2158,7 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateNClob
(
int
columnIndex
,
Reader
x
)
throws
SQLException
{
public
Reader
getNCharacterStream
(
int
columnInde
x
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
...
...
@@ -2153,7 +2167,8 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateNClob
(
String
columnLabel
,
Reader
x
)
throws
SQLException
{
public
Reader
getNCharacterStream
(
String
columnLabel
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
...
...
@@ -2162,8 +2177,7 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateNClob
(
int
columnIndex
,
Reader
x
,
long
length
)
throws
SQLException
{
public
<
T
>
T
unwrap
(
Class
<
T
>
iface
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
...
...
@@ -2172,8 +2186,7 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
* INTERNAL
*/
//## Java 1.6 ##
public
void
updateNClob
(
String
columnLabel
,
Reader
x
,
long
length
)
throws
SQLException
{
public
boolean
isWrapperFor
(
Class
<?>
iface
)
throws
SQLException
{
throw
getUnsupportedException
();
}
//*/
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论