KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > jts > CosTransactions > MinorCode


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 /*
25  * Copyright 2004-2005 Sun Microsystems, Inc. All rights reserved.
26  * Use is subject to license terms.
27  */

28
29 //----------------------------------------------------------------------------
30
//
31
// Module: MinorCode.java
32
//
33
// Description: JTS standard exception minor codes.
34
//
35
// Product: com.sun.jts.CosTransactions
36
//
37
// Author: Simon Holdsworth
38
//
39
// Date: March, 1997
40
//
41
// Copyright (c): 1995-1997 IBM Corp.
42
//
43
// The source code for this program is not published or otherwise divested
44
// of its trade secrets, irrespective of what has been deposited with the
45
// U.S. Copyright Office.
46
//
47
// This software contains confidential and proprietary information of
48
// IBM Corp.
49
//----------------------------------------------------------------------------
50

51 package com.sun.jts.CosTransactions;
52
53 /**
54  * This class simply contains minor code values for standard exceptions thrown
55  * by the JTS.
56  *
57  * @version 0.01
58  *
59  * @author Simon Holdsworth, IBM Corporation
60  *
61  * @see
62  */

63 public interface MinorCode {
64
65     /**
66      * This minor code is used on standard exceptions.
67      * <p> It indicates that there is no
68      * further information for the exception.
69      */

70     public static int Undefined = 0x0000;
71
72     /**
73      * This minor code is used on the INVALID_TRANSACTION exception.
74      * <p> It indicates that the transaction is invalid because
75      * it has unfinished subtransactions.
76      */

77     public static int UnfinishedSubtransactions = 0x0001;
78
79     /**
80      * This minor code is used on the INVALID_TRANSACTION exception.
81      * <p> It indicates
82      * that the transaction is invalid because it has outstanding work
83      * (other threads either in the same process or other processes
84      * which are still associated with the transaction).
85      */

86     public static int DeferredActivities = 0x0002;
87
88     /**
89      * This minor code is used on the INVALID_TRANSACTION exception.
90      * <p> It indicates
91      * that the transaction has completed and the operation is not valid.
92      */

93     public static int Completed = 0x0003;
94
95     /**
96      * This minor code is used on the INVALID_TRANSACTION exception.
97      * <p> It indicates
98      * that the TransactionFactory was unable to create the transaction.
99      */

100     public static int FactoryFailed = 0x0004;
101
102     /**
103      * This minor code is used on the INVALID_TRANSACTION exception.
104      * <p> It indicates
105      * that an XA Resource Manager is doing work outside of a transaction
106      * on the current thread and cannot allow the begin or resume operation.
107      */

108     public static int XAOutside = 0x0005;
109
110     /**
111      * This minor code is used on the INVALID_TRANSACTION exception.
112      * <p> It indicates that a reply is returning when a different transaction
113      * is active from the one active when the request was imported.
114      */

115     public static int WrongContextOnReply = 0x0006;
116
117     /**
118      * This minor code is used on the INVALID_TRANSACTION exception.
119      * <p> It indicates
120      * that the is_same_transaction operation has been invoked with a parameter
121      * which represents a Coordinator object from a different implementation
122      * of the OTS interfaces, and that Coordinator object is in the process
123      * of ending the transaction. In this case, the JTS cannot obtain the
124      * necessary information to determine equality of the Coordinator objects.
125      */

126     public static int CompareFailed = 0x0007;
127
128     /**
129      * This minor code is used on the INTERNAL exception.
130      * <p> It indicates
131      * that the object could not locate the Coordinator for its transaction.
132      */

133     public static int NoCoordinator = 0x0101;
134
135     /**
136      * This minor code is used on the INTERNAL exception.
137      * <p>It indicates
138      * that the object did not have access to the global identifier for the
139      * transaction which it represents.
140      */

141     public static int NoGlobalTID = 0x0102;
142
143     /**
144      * This minor code is used on the INTERNAL exception.
145      * <p> It indicates that the object represents a subtransaction
146      * and was called for a top-level transaction operation.
147      */

148     public static int TopForSub = 0x0103;
149
150     /**
151      * This minor code is used on the INTERNAL exception.
152      * <p> It indicates
153      * that the object represents a top-level transaction and was called for a
154      * subtransaction operation.
155      */

156     public static int SubForTop = 0x0104;
157
158     /**
159      * This minor code is used on the INTERNAL exception.
160      * <p> It indicates that a stacked Control object already exists
161      * when beginning a subtransaction.
162      */

163     public static int AlreadyStacked = 0x0105;
164
165     /**
166      * This minor code is used on the INTERNAL exception.
167      * <p> It indicates
168      * that an internal logic error was detected.
169      */

170     public static int LogicError = 0x0106;
171
172     /**
173      * This minor code is used on the INTERNAL exception.
174      * <p> It indicates
175      * that a Resource could not be registered by a subordinate.
176      */

177     public static int NotRegistered = 0x0107;
178
179     /**
180      * This minor code is used on the INTERNAL exception.
181      * <p> It indicates
182      * that a RecoveryCoordinator could not be created.
183      */

184     public static int RecCoordCreateFailed = 0x0108;
185
186     /**
187      * This minor code is used on the INTERNAL exception.
188      * <p> It indicates
189      * that the TransactionService could not be created.
190      */

191     public static int TSCreateFailed = 0x0109;
192     
193     /**
194      * This minor code is used on the INVALID_TRANSACTION exception.
195      * <p> It indicates
196      * that recreating a imported transaction has failed.
197      */

198     public static int TX_RECREATE_FAILED = 0x010A;
199
200     /**
201      * This minor code is used on the INVALID_TRANSACTION exception.
202      * <p> It indicates
203      * that concurrent activity within a transaction is disallowed.
204      */

205     public static int TX_CONCURRENT_WORK_DISALLOWED = 0x010B;
206 }
207
Popular Tags