KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > derby > client > net > ConnectionRequestInterface


1 /*
2
3    Derby - Class org.apache.derby.client.net.ConnectionRequestInterface
4
5    Licensed to the Apache Software Foundation (ASF) under one or more
6    contributor license agreements. See the NOTICE file distributed with
7    this work for additional information regarding copyright ownership.
8    The ASF licenses this file to You under the Apache License, Version 2.0
9    (the "License"); you may not use this file except in compliance with
10    the License. You may obtain a copy of the License at
11
12       http://www.apache.org/licenses/LICENSE-2.0
13
14    Unless required by applicable law or agreed to in writing, software
15    distributed under the License is distributed on an "AS IS" BASIS,
16    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17    See the License for the specific language governing permissions and
18    limitations under the License.
19
20 */

21
22 package org.apache.derby.client.net;
23
24 // In general, required data is passed.
25
// In addition, Connection objects are passed for convenient access to any material connection caches.
26
// Implementations of this interface should not dereference common layer Connection state, as it is passed in,
27
// but may dereference material layer Connection state if necessary for performance.
28

29 public interface ConnectionRequestInterface {
30     public void writeCommitSubstitute(NetConnection connection) throws org.apache.derby.client.am.SqlException;
31
32     public void writeLocalCommit(NetConnection connection) throws org.apache.derby.client.am.SqlException;
33
34     public void writeLocalRollback(NetConnection connection) throws org.apache.derby.client.am.SqlException;
35
36     public void writeLocalXAStart(NetConnection connection) throws org.apache.derby.client.am.SqlException;
37
38     public void writeLocalXACommit(NetConnection connection) throws org.apache.derby.client.am.SqlException;
39
40     public void writeLocalXARollback(NetConnection connection) throws org.apache.derby.client.am.SqlException;
41 }
42
Popular Tags