01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package java.sql;
19:
20: /**
21: * A Savepoint is an instant during the current transaction that can be utilized
22: * by a Rollback from the Connection.rollback method. Rolling back to a
23: * particular Savepoint means that all changes that occurred after that
24: * Savepoint are removed.
25: */
26: public interface Savepoint {
27:
28: /**
29: * Returns the constructed ID for this Savepoint.
30: *
31: * @return the ID for this Savepoint.
32: * @throws SQLException
33: */
34: public int getSavepointId() throws SQLException;
35:
36: /**
37: * Returns the name for this Savepoint.
38: *
39: * @return the name of this Savepoint.
40: * @throws SQLException
41: */
42: public String getSavepointName() throws SQLException;
43: }
|