postgresql-42.2.5.jar
登录
|
org.postgresql:postgresql:42.2.5
META-INF
org
postgresql
core
ds
geometric
jdbc
EscapedFunctions2.java
FieldMetadata.java
PgConnection.java
PreferQueryMode.java
PgStatement.java
PSQLSavepoint.java
CallableBatchResultHandler.java
PgResultSetMetaData.java
SslMode.java
TypeInfoCache.java
UUIDArrayAssistant.java
PgDatabaseMetaData.java
PgResultSet.java
PrimitiveArraySupport.java
StatementCancelState.java
PgParameterMetaData.java
ResultWrapper.java
TimestampUtils.java
AbstractBlobClob.java
PgClob.java
PSQLWarningWrapper.java
AutoSave.java
PgBlob.java
BooleanTypeUtil.java
PgArray.java
BatchResultHandler.java
PgPreparedStatement.java
PgCallableStatement.java
EscapedFunctions.java
PgSQLXML.java
replication
Driver.java
largeobject
PGStatement.java
PGResultSetMetaData.java
gss
util
PGRefCursorResultSet.java
osgi
ssl
PGConnection.java
jdbc3
PGNotification.java
sspi
fastpath
copy
translation
hostchooser
jdbc2
PGProperty.java
xa
jre8
PSQLSavepoint.java
清空
类结构
/* * Copyright (c) 2004, PostgreSQL Global Development Group * See the LICENSE file in the project root for more information. */ package org.postgresql.jdbc; import org.postgresql.core.
Utils
; import org.postgresql.util.
GT
; import org.postgresql.util.
PSQLException
; import org.postgresql.util.
PSQLState
; import java.sql.
SQLException
; import java.sql.
Savepoint
; public class
PSQLSavepoint
implements
Savepoint
{ private boolean
_isValid
; private boolean
_isNamed
; private int
_id
; private
String
_name
; public
PSQLSavepoint
(int
id
) {
_isValid
= true;
_isNamed
= false;
_id
=
id
; } public
PSQLSavepoint
(
String
name
) {
_isValid
= true;
_isNamed
= true;
_name
=
name
; } public int
getSavepointId
() throws
SQLException
{ if (!
_isValid
) { throw new
PSQLException
(
GT
.
tr
("Cannot reference a savepoint after it has been released."),
PSQLState
.
INVALID_SAVEPOINT_SPECIFICATION
); } if (
_isNamed
) { throw new
PSQLException
(
GT
.
tr
("Cannot retrieve the id of a named savepoint."),
PSQLState
.
WRONG_OBJECT_TYPE
); } return
_id
; } public
String
getSavepointName
() throws
SQLException
{ if (!
_isValid
) { throw new
PSQLException
(
GT
.
tr
("Cannot reference a savepoint after it has been released."),
PSQLState
.
INVALID_SAVEPOINT_SPECIFICATION
); } if (!
_isNamed
) { throw new
PSQLException
(
GT
.
tr
("Cannot retrieve the name of an unnamed savepoint."),
PSQLState
.
WRONG_OBJECT_TYPE
); } return
_name
; } public void
invalidate
() {
_isValid
= false; } public
String
getPGName
() throws
SQLException
{ if (!
_isValid
) { throw new
PSQLException
(
GT
.
tr
("Cannot reference a savepoint after it has been released."),
PSQLState
.
INVALID_SAVEPOINT_SPECIFICATION
); } if (
_isNamed
) { // We need to quote and escape the name in case it // contains spaces/quotes/etc. // return
Utils
.
escapeIdentifier
(null,
_name
).
toString
(); } return "JDBC_SAVEPOINT_" +
_id
; } }
查找资源
Jre/Lib
输入类名或文件名
类结构窗口