Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
1bf77427
提交
1bf77427
authored
12 年前
作者:
noelgrandin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove the
//## Java 1.6 ## comments. We no longer need them, since we depend on Java6 or better now.
上级
b272a2df
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
20 行增加
和
258 行删除
+20
-258
JdbcCallableStatement.java
h2/src/main/org/h2/jdbc/JdbcCallableStatement.java
+2
-22
JdbcClob.java
h2/src/main/org/h2/jdbc/JdbcClob.java
+1
-5
JdbcConnection.java
h2/src/main/org/h2/jdbc/JdbcConnection.java
+5
-28
JdbcDatabaseMetaData.java
h2/src/main/org/h2/jdbc/JdbcDatabaseMetaData.java
+2
-23
JdbcParameterMetaData.java
h2/src/main/org/h2/jdbc/JdbcParameterMetaData.java
+0
-4
JdbcPreparedStatement.java
h2/src/main/org/h2/jdbc/JdbcPreparedStatement.java
+3
-13
JdbcResultSet.java
h2/src/main/org/h2/jdbc/JdbcResultSet.java
+3
-35
JdbcResultSetMetaData.java
h2/src/main/org/h2/jdbc/JdbcResultSetMetaData.java
+0
-4
JdbcStatement.java
h2/src/main/org/h2/jdbc/JdbcStatement.java
+0
-4
JdbcConnectionPool.java
h2/src/main/org/h2/jdbcx/JdbcConnectionPool.java
+0
-7
JdbcDataSource.java
h2/src/main/org/h2/jdbcx/JdbcDataSource.java
+0
-4
JdbcXAConnection.java
h2/src/main/org/h2/jdbcx/JdbcXAConnection.java
+1
-7
SimpleResultSet.java
h2/src/main/org/h2/tools/SimpleResultSet.java
+3
-102
没有找到文件。
h2/src/main/org/h2/jdbc/JdbcCallableStatement.java
浏览文件 @
1bf77427
...
...
@@ -15,14 +15,12 @@ import java.sql.Blob;
import
java.sql.CallableStatement
;
import
java.sql.Clob
;
import
java.sql.Date
;
import
java.sql.NClob
;
import
java.sql.Ref
;
import
java.sql.ResultSetMetaData
;
//## Java 1.6 ##
import
java.sql.NClob
;
import
java.sql.SQLXML
;
import
java.sql.RowId
;
//*/
import
java.sql.SQLException
;
import
java.sql.SQLXML
;
import
java.sql.Time
;
import
java.sql.Timestamp
;
import
java.util.Calendar
;
...
...
@@ -724,22 +722,18 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
*
* @param parameterIndex the parameter index (1, 2, ...)
*/
//## Java 1.6 ##
public
RowId
getRowId
(
int
parameterIndex
)
throws
SQLException
{
throw
unsupported
(
"rowId"
);
}
//*/
/**
* [Not supported] Returns the value of the specified column as a row id.
*
* @param parameterName the parameter name
*/
//## Java 1.6 ##
public
RowId
getRowId
(
String
parameterName
)
throws
SQLException
{
throw
unsupported
(
"rowId"
);
}
//*/
/**
* Returns the value of the specified column as a Clob.
...
...
@@ -748,12 +742,10 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @return the value
* @throws SQLException if the column is not found or if the result set is closed
*/
//## Java 1.6 ##
public
NClob
getNClob
(
int
parameterIndex
)
throws
SQLException
{
checkRegistered
(
parameterIndex
);
return
getOpenResultSet
().
getNClob
(
parameterIndex
);
}
//*/
/**
* Returns the value of the specified column as a Clob.
...
...
@@ -762,29 +754,23 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @return the value
* @throws SQLException if the column is not found or if the result set is closed
*/
//## Java 1.6 ##
public
NClob
getNClob
(
String
parameterName
)
throws
SQLException
{
return
getNClob
(
getIndexForName
(
parameterName
));
}
//*/
/**
* [Not supported] Returns the value of the specified column as a SQLXML object.
*/
//## Java 1.6 ##
public
SQLXML
getSQLXML
(
int
parameterIndex
)
throws
SQLException
{
throw
unsupported
(
"SQLXML"
);
}
//*/
/**
* [Not supported] Returns the value of the specified column as a SQLXML object.
*/
//## Java 1.6 ##
public
SQLXML
getSQLXML
(
String
parameterName
)
throws
SQLException
{
throw
unsupported
(
"SQLXML"
);
}
//*/
/**
* Returns the value of the specified column as a String.
...
...
@@ -1166,12 +1152,10 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
/**
* [Not supported] Sets the value of a parameter as a row id.
*/
//## Java 1.6 ##
public
void
setRowId
(
String
parameterName
,
RowId
x
)
throws
SQLException
{
throw
unsupported
(
"rowId"
);
}
//*/
/**
* Sets the value of a parameter.
...
...
@@ -1207,12 +1191,10 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @param x the value
* @throws SQLException if this object is closed
*/
//## Java 1.6 ##
public
void
setNClob
(
String
parameterName
,
NClob
x
)
throws
SQLException
{
setNClob
(
getIndexForName
(
parameterName
),
x
);
}
//*/
/**
* Sets the value of a parameter as a Clob.
...
...
@@ -1427,12 +1409,10 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
/**
* [Not supported] Sets the value of a parameter as a SQLXML object.
*/
//## Java 1.6 ##
public
void
setSQLXML
(
String
parameterName
,
SQLXML
x
)
throws
SQLException
{
throw
unsupported
(
"SQLXML"
);
}
//*/
/**
* [Not supported]
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/jdbc/JdbcClob.java
浏览文件 @
1bf77427
...
...
@@ -16,25 +16,21 @@ import java.io.StringReader;
import
java.io.StringWriter
;
import
java.io.Writer
;
import
java.sql.Clob
;
//## Java 1.6 ##
import
java.sql.NClob
;
//*/
import
java.sql.SQLException
;
import
org.h2.constant.ErrorCode
;
import
org.h2.engine.Constants
;
import
org.h2.message.DbException
;
import
org.h2.message.TraceObject
;
import
org.h2.util.Task
;
import
org.h2.util.IOUtils
;
import
org.h2.util.Task
;
import
org.h2.value.Value
;
/**
* Represents a CLOB value.
*/
public
class
JdbcClob
extends
TraceObject
implements
Clob
//## Java 1.6 ##
,
NClob
//*/
{
Value
value
;
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/jdbc/JdbcConnection.java
浏览文件 @
1bf77427
...
...
@@ -10,17 +10,22 @@ import java.io.ByteArrayInputStream;
import
java.io.InputStream
;
import
java.io.InputStreamReader
;
import
java.io.Reader
;
import
java.sql.Array
;
import
java.sql.Blob
;
import
java.sql.CallableStatement
;
import
java.sql.Clob
;
import
java.sql.Connection
;
import
java.sql.DatabaseMetaData
;
import
java.sql.NClob
;
import
java.sql.PreparedStatement
;
import
java.sql.ResultSet
;
import
java.sql.SQLClientInfoException
;
import
java.sql.SQLException
;
import
java.sql.SQLWarning
;
import
java.sql.SQLXML
;
import
java.sql.Savepoint
;
import
java.sql.Statement
;
import
java.sql.Struct
;
import
java.util.Map
;
import
java.util.Properties
;
import
org.h2.command.CommandInterface
;
...
...
@@ -41,14 +46,6 @@ import org.h2.value.ValueInt;
import
org.h2.value.ValueNull
;
import
org.h2.value.ValueString
;
//## Java 1.6 ##
import
java.sql.Array
;
import
java.sql.NClob
;
import
java.sql.Struct
;
import
java.sql.SQLXML
;
import
java.sql.SQLClientInfoException
;
//*/
/*## Java 1.7 ##
import java.util.concurrent.Executor;
//*/
...
...
@@ -1495,7 +1492,6 @@ public class JdbcConnection extends TraceObject implements Connection {
*
* @return the object
*/
//## Java 1.6 ##
public
NClob
createNClob
()
throws
SQLException
{
try
{
int
id
=
getNextId
(
TraceObject
.
CLOB
);
...
...
@@ -1513,36 +1509,29 @@ public class JdbcConnection extends TraceObject implements Connection {
throw
logAndConvert
(
e
);
}
}
//*/
/**
* [Not supported] Create a new empty SQLXML object.
*/
//## Java 1.6 ##
public
SQLXML
createSQLXML
()
throws
SQLException
{
throw
unsupported
(
"SQLXML"
);
}
//*/
/**
* [Not supported] Create a new empty Array object.
*/
//## Java 1.6 ##
public
Array
createArrayOf
(
String
typeName
,
Object
[]
elements
)
throws
SQLException
{
throw
unsupported
(
"createArray"
);
}
//*/
/**
* [Not supported] Create a new empty Struct object.
*/
//## Java 1.6 ##
public
Struct
createStruct
(
String
typeName
,
Object
[]
attributes
)
throws
SQLException
{
throw
unsupported
(
"Struct"
);
}
//*/
/**
* Returns true if this connection is still valid.
...
...
@@ -1570,61 +1559,49 @@ public class JdbcConnection extends TraceObject implements Connection {
/**
* [Not supported] Set a client property.
*/
//## Java 1.6 ##
public
void
setClientInfo
(
String
name
,
String
value
)
throws
SQLClientInfoException
{
throw
new
SQLClientInfoException
();
}
//*/
/**
* [Not supported] Set the client properties.
*/
//## Java 1.6 ##
public
void
setClientInfo
(
Properties
properties
)
throws
SQLClientInfoException
{
throw
new
SQLClientInfoException
();
}
//*/
/**
* [Not supported] Get the client properties.
*/
//## Java 1.6 ##
public
Properties
getClientInfo
()
throws
SQLClientInfoException
{
throw
new
SQLClientInfoException
();
}
//*/
/**
* [Not supported] Set a client property.
*/
//## Java 1.6 ##
public
String
getClientInfo
(
String
name
)
throws
SQLException
{
throw
unsupported
(
"clientInfo"
);
}
//*/
/**
* [Not supported] Return an object of this class if possible.
*
* @param iface the class
*/
//## Java 1.6 ##
public
<
T
>
T
unwrap
(
Class
<
T
>
iface
)
throws
SQLException
{
throw
unsupported
(
"unwrap"
);
}
//*/
/**
* [Not supported] Checks if unwrap can return an object of this class.
*
* @param iface the class
*/
//## Java 1.6 ##
public
boolean
isWrapperFor
(
Class
<?>
iface
)
throws
SQLException
{
throw
unsupported
(
"isWrapperFor"
);
}
//*/
/**
* Create a Clob value from this reader.
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/jdbc/JdbcDatabaseMetaData.java
浏览文件 @
1bf77427
...
...
@@ -10,11 +10,8 @@ import java.sql.Connection;
import
java.sql.DatabaseMetaData
;
import
java.sql.PreparedStatement
;
import
java.sql.ResultSet
;
//## Java 1.6 ##
import
java.sql.RowIdLifetime
;
//*/
import
java.sql.SQLException
;
import
org.h2.constant.SysProperties
;
import
org.h2.engine.Constants
;
import
org.h2.message.Trace
;
...
...
@@ -2746,18 +2743,12 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
/**
* Gets the major version of the supported JDBC API.
* This method returns 4 when the driver is compiled using Java 5 or 6.
* It returns 3 otherwise.
*
* @return the major version (4
or 3
)
* @return the major version (4)
*/
public
int
getJDBCMajorVersion
()
{
debugCodeCall
(
"getJDBCMajorVersion"
);
int
majorVersion
=
3
;
//## Java 1.6 ##
majorVersion
=
4
;
//*/
return
majorVersion
;
return
4
;
}
/**
...
...
@@ -2824,12 +2815,10 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
*
* @return ROWID_UNSUPPORTED
*/
//## Java 1.6 ##
public
RowIdLifetime
getRowIdLifetime
()
{
debugCodeCall
(
"getRowIdLifetime"
);
return
RowIdLifetime
.
ROWID_UNSUPPORTED
;
}
//*/
/**
* Gets the list of schemas in the database.
...
...
@@ -2847,7 +2836,6 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
* @return the schema list
* @throws SQLException if the connection is closed
*/
//## Java 1.6 ##
public
ResultSet
getSchemas
(
String
catalogPattern
,
String
schemaPattern
)
throws
SQLException
{
try
{
...
...
@@ -2871,7 +2859,6 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
throw
logAndConvert
(
e
);
}
}
//*/
/**
* Returns whether the database supports calling functions using the call syntax.
...
...
@@ -2903,41 +2890,33 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
/**
* [Not supported] Return an object of this class if possible.
*/
//## Java 1.6 ##
public
<
T
>
T
unwrap
(
Class
<
T
>
iface
)
throws
SQLException
{
throw
unsupported
(
"unwrap"
);
}
//*/
/**
* [Not supported] Checks if unwrap can return an object of this class.
*/
//## Java 1.6 ##
public
boolean
isWrapperFor
(
Class
<?>
iface
)
throws
SQLException
{
throw
unsupported
(
"isWrapperFor"
);
}
//*/
/**
* [Not supported] Gets the list of function columns.
*/
//## Java 1.6 ##
public
ResultSet
getFunctionColumns
(
String
catalog
,
String
schemaPattern
,
String
functionNamePattern
,
String
columnNamePattern
)
throws
SQLException
{
throw
unsupported
(
"getFunctionColumns"
);
}
//*/
/**
* [Not supported] Gets the list of functions.
*/
//## Java 1.6 ##
public
ResultSet
getFunctions
(
String
catalog
,
String
schemaPattern
,
String
functionNamePattern
)
throws
SQLException
{
throw
unsupported
(
"getFunctions"
);
}
//*/
/**
* [Not supported]
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/jdbc/JdbcParameterMetaData.java
浏览文件 @
1bf77427
...
...
@@ -211,20 +211,16 @@ public class JdbcParameterMetaData extends TraceObject implements ParameterMetaD
/**
* [Not supported] Return an object of this class if possible.
*/
//## Java 1.6 ##
public
<
T
>
T
unwrap
(
Class
<
T
>
iface
)
throws
SQLException
{
throw
unsupported
(
"unwrap"
);
}
//*/
/**
* [Not supported] Checks if unwrap can return an object of this class.
*/
//## Java 1.6 ##
public
boolean
isWrapperFor
(
Class
<?>
iface
)
throws
SQLException
{
throw
unsupported
(
"isWrapperFor"
);
}
//*/
/**
* INTERNAL
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/jdbc/JdbcPreparedStatement.java
浏览文件 @
1bf77427
...
...
@@ -13,17 +13,19 @@ import java.net.URL;
import
java.sql.Array
;
import
java.sql.Blob
;
import
java.sql.Clob
;
import
java.sql.NClob
;
import
java.sql.ParameterMetaData
;
import
java.sql.PreparedStatement
;
import
java.sql.Ref
;
import
java.sql.ResultSet
;
import
java.sql.ResultSetMetaData
;
import
java.sql.RowId
;
import
java.sql.SQLException
;
import
java.sql.SQLXML
;
import
java.sql.Statement
;
import
java.util.ArrayList
;
import
java.util.Calendar
;
import
java.util.HashMap
;
import
org.h2.command.CommandInterface
;
import
org.h2.constant.ErrorCode
;
import
org.h2.expression.ParameterInterface
;
...
...
@@ -50,12 +52,6 @@ import org.h2.value.ValueString;
import
org.h2.value.ValueTime
;
import
org.h2.value.ValueTimestamp
;
//## Java 1.6 ##
import
java.sql.RowId
;
import
java.sql.NClob
;
import
java.sql.SQLXML
;
//*/
/**
* Represents a prepared statement.
*/
...
...
@@ -1291,11 +1287,9 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
/**
* [Not supported] Sets the value of a parameter as a row id.
*/
//## Java 1.6 ##
public
void
setRowId
(
int
parameterIndex
,
RowId
x
)
throws
SQLException
{
throw
unsupported
(
"rowId"
);
}
//*/
/**
* Sets the value of a parameter.
...
...
@@ -1366,7 +1360,6 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
* @param x the value
* @throws SQLException if this object is closed
*/
//## Java 1.6 ##
public
void
setNClob
(
int
parameterIndex
,
NClob
x
)
throws
SQLException
{
try
{
if
(
isDebugEnabled
())
{
...
...
@@ -1384,7 +1377,6 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
throw
logAndConvert
(
e
);
}
}
//*/
/**
* Sets the value of a parameter as a Clob.
...
...
@@ -1497,11 +1489,9 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
/**
* [Not supported] Sets the value of a parameter as a SQLXML object.
*/
//## Java 1.6 ##
public
void
setSQLXML
(
int
parameterIndex
,
SQLXML
x
)
throws
SQLException
{
throw
unsupported
(
"SQLXML"
);
}
//*/
/**
* INTERNAL
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/jdbc/JdbcResultSet.java
浏览文件 @
1bf77427
...
...
@@ -14,24 +14,20 @@ import java.sql.Array;
import
java.sql.Blob
;
import
java.sql.Clob
;
import
java.sql.Date
;
import
java.sql.NClob
;
import
java.sql.Ref
;
import
java.sql.ResultSet
;
import
java.sql.ResultSetMetaData
;
import
java.sql.RowId
;
import
java.sql.SQLException
;
import
java.sql.SQLWarning
;
import
java.sql.SQLXML
;
import
java.sql.Statement
;
import
java.sql.Time
;
import
java.sql.Timestamp
;
import
java.util.Calendar
;
import
java.util.HashMap
;
import
java.util.Map
;
//## Java 1.6 ##
import
java.sql.NClob
;
import
java.sql.RowId
;
import
java.sql.SQLXML
;
//*/
import
org.h2.constant.ErrorCode
;
import
org.h2.constant.SysProperties
;
import
org.h2.message.DbException
;
...
...
@@ -3017,22 +3013,18 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
*
* @param columnIndex (1,2,...)
*/
//## Java 1.6 ##
public
RowId
getRowId
(
int
columnIndex
)
throws
SQLException
{
throw
unsupported
(
"rowId"
);
}
//*/
/**
* [Not supported] Returns the value of the specified column as a row id.
*
* @param columnLabel the column label
*/
//## Java 1.6 ##
public
RowId
getRowId
(
String
columnLabel
)
throws
SQLException
{
throw
unsupported
(
"rowId"
);
}
//*/
/**
* [Not supported] Updates a column in the current or insert row.
...
...
@@ -3040,11 +3032,9 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* @param columnIndex (1,2,...)
* @param x the value
*/
//## Java 1.6 ##
public
void
updateRowId
(
int
columnIndex
,
RowId
x
)
throws
SQLException
{
throw
unsupported
(
"rowId"
);
}
//*/
/**
* [Not supported] Updates a column in the current or insert row.
...
...
@@ -3052,11 +3042,9 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* @param columnLabel the column label
* @param x the value
*/
//## Java 1.6 ##
public
void
updateRowId
(
String
columnLabel
,
RowId
x
)
throws
SQLException
{
throw
unsupported
(
"rowId"
);
}
//*/
/**
* Returns the current result set holdability.
...
...
@@ -3129,11 +3117,9 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
/**
* [Not supported]
*/
//## Java 1.6 ##
public
void
updateNClob
(
int
columnIndex
,
NClob
x
)
throws
SQLException
{
throw
unsupported
(
"NClob"
);
}
//*/
/**
* Updates a column in the current or insert row.
...
...
@@ -3186,11 +3172,9 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
/**
* [Not supported]
*/
//## Java 1.6 ##
public
void
updateNClob
(
String
columnLabel
,
NClob
x
)
throws
SQLException
{
throw
unsupported
(
"NClob"
);
}
//*/
/**
* Returns the value of the specified column as a Clob.
...
...
@@ -3199,7 +3183,6 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* @return the value
* @throws SQLException if the column is not found or if the result set is closed
*/
//## Java 1.6 ##
public
NClob
getNClob
(
int
columnIndex
)
throws
SQLException
{
try
{
int
id
=
getNextId
(
TraceObject
.
CLOB
);
...
...
@@ -3210,7 +3193,6 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
throw
logAndConvert
(
e
);
}
}
//*/
/**
* Returns the value of the specified column as a Clob.
...
...
@@ -3219,7 +3201,6 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* @return the value
* @throws SQLException if the column is not found or if the result set is closed
*/
//## Java 1.6 ##
public
NClob
getNClob
(
String
columnLabel
)
throws
SQLException
{
try
{
int
id
=
getNextId
(
TraceObject
.
CLOB
);
...
...
@@ -3230,45 +3211,36 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
throw
logAndConvert
(
e
);
}
}
//*/
/**
* [Not supported] Returns the value of the specified column as a SQLXML object.
*/
//## Java 1.6 ##
public
SQLXML
getSQLXML
(
int
columnIndex
)
throws
SQLException
{
throw
unsupported
(
"SQLXML"
);
}
//*/
/**
* [Not supported] Returns the value of the specified column as a SQLXML object.
*/
//## Java 1.6 ##
public
SQLXML
getSQLXML
(
String
columnLabel
)
throws
SQLException
{
throw
unsupported
(
"SQLXML"
);
}
//*/
/**
* [Not supported] Updates a column in the current or insert row.
*/
//## Java 1.6 ##
public
void
updateSQLXML
(
int
columnIndex
,
SQLXML
xmlObject
)
throws
SQLException
{
throw
unsupported
(
"SQLXML"
);
}
//*/
/**
* [Not supported] Updates a column in the current or insert row.
*/
//## Java 1.6 ##
public
void
updateSQLXML
(
String
columnLabel
,
SQLXML
xmlObject
)
throws
SQLException
{
throw
unsupported
(
"SQLXML"
);
}
//*/
/**
* Returns the value of the specified column as a String.
...
...
@@ -3409,20 +3381,16 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
/**
* [Not supported] Return an object of this class if possible.
*/
//## Java 1.6 ##
public
<
T
>
T
unwrap
(
Class
<
T
>
iface
)
throws
SQLException
{
throw
unsupported
(
"unwrap"
);
}
//*/
/**
* [Not supported] Checks if unwrap can return an object of this class.
*/
//## Java 1.6 ##
public
boolean
isWrapperFor
(
Class
<?>
iface
)
throws
SQLException
{
throw
unsupported
(
"isWrapperFor"
);
}
//*/
/**
* [Not supported]
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/jdbc/JdbcResultSetMetaData.java
浏览文件 @
1bf77427
...
...
@@ -434,20 +434,16 @@ public class JdbcResultSetMetaData extends TraceObject implements ResultSetMetaD
/**
* [Not supported] Return an object of this class if possible.
*/
//## Java 1.6 ##
public
<
T
>
T
unwrap
(
Class
<
T
>
iface
)
throws
SQLException
{
throw
unsupported
(
"unwrap"
);
}
//*/
/**
* [Not supported] Checks if unwrap can return an object of this class.
*/
//## Java 1.6 ##
public
boolean
isWrapperFor
(
Class
<?>
iface
)
throws
SQLException
{
throw
unsupported
(
"isWrapperFor"
);
}
//*/
/**
* INTERNAL
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/jdbc/JdbcStatement.java
浏览文件 @
1bf77427
...
...
@@ -1004,20 +1004,16 @@ public class JdbcStatement extends TraceObject implements Statement {
/**
* [Not supported] Return an object of this class if possible.
*/
//## Java 1.6 ##
public
<
T
>
T
unwrap
(
Class
<
T
>
iface
)
throws
SQLException
{
throw
unsupported
(
"unwrap"
);
}
//*/
/**
* [Not supported] Checks if unwrap can return an object of this class.
*/
//## Java 1.6 ##
public
boolean
isWrapperFor
(
Class
<?>
iface
)
throws
SQLException
{
throw
unsupported
(
"isWrapperFor"
);
}
//*/
/**
* Returns whether this object is poolable.
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/jdbcx/JdbcConnectionPool.java
浏览文件 @
1bf77427
...
...
@@ -30,10 +30,7 @@ import javax.sql.ConnectionPoolDataSource;
import
javax.sql.DataSource
;
import
javax.sql.PooledConnection
;
import
org.h2.util.New
;
//## Java 1.6 ##
import
org.h2.message.DbException
;
//*/
/*## Java 1.7 ##
import java.util.logging.Logger;
...
...
@@ -310,22 +307,18 @@ public class JdbcConnectionPool implements DataSource, ConnectionEventListener {
*
* @param iface the class
*/
//## Java 1.6 ##
public
<
T
>
T
unwrap
(
Class
<
T
>
iface
)
throws
SQLException
{
throw
DbException
.
getUnsupportedException
(
"unwrap"
);
}
//*/
/**
* [Not supported] Checks if unwrap can return an object of this class.
*
* @param iface the class
*/
//## Java 1.6 ##
public
boolean
isWrapperFor
(
Class
<?>
iface
)
throws
SQLException
{
throw
DbException
.
getUnsupportedException
(
"isWrapperFor"
);
}
//*/
/**
* [Not supported]
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/jdbcx/JdbcDataSource.java
浏览文件 @
1bf77427
...
...
@@ -361,22 +361,18 @@ public class JdbcDataSource extends TraceObject
*
* @param iface the class
*/
//## Java 1.6 ##
public
<
T
>
T
unwrap
(
Class
<
T
>
iface
)
throws
SQLException
{
throw
unsupported
(
"unwrap"
);
}
//*/
/**
* [Not supported] Checks if unwrap can return an object of this class.
*
* @param iface the class
*/
//## Java 1.6 ##
public
boolean
isWrapperFor
(
Class
<?>
iface
)
throws
SQLException
{
throw
unsupported
(
"isWrapperFor"
);
}
//*/
/**
* [Not supported]
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/jdbcx/JdbcXAConnection.java
浏览文件 @
1bf77427
...
...
@@ -13,6 +13,7 @@ import java.sql.Statement;
import
java.util.ArrayList
;
import
javax.sql.ConnectionEvent
;
import
javax.sql.ConnectionEventListener
;
import
javax.sql.StatementEventListener
;
import
javax.sql.XAConnection
;
import
javax.transaction.xa.XAException
;
import
javax.transaction.xa.XAResource
;
...
...
@@ -25,9 +26,6 @@ import org.h2.util.New;
import
org.h2.message.DbException
;
import
org.h2.message.TraceObject
;
//## Java 1.6 ##
import
javax.sql.StatementEventListener
;
//*/
/**
* This class provides support for distributed transactions.
...
...
@@ -369,22 +367,18 @@ public class JdbcXAConnection extends TraceObject implements XAConnection, XARes
*
* @param listener the new statement event listener
*/
//## Java 1.6 ##
public
void
addStatementEventListener
(
StatementEventListener
listener
)
{
throw
new
UnsupportedOperationException
();
}
//*/
/**
* [Not supported] Remove a statement event listener.
*
* @param listener the statement event listener
*/
//## Java 1.6 ##
public
void
removeStatementEventListener
(
StatementEventListener
listener
)
{
throw
new
UnsupportedOperationException
();
}
//*/
/**
* INTERNAL
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/tools/SimpleResultSet.java
浏览文件 @
1bf77427
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论