KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > derby > shared > common > reference > Attribute


1 /*
2
3  Derby - Class org.apache.derby.shared.common.reference.Attribute
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.shared.common.reference;
23
24 /**
25  * List of all connection (JDBC) attributes by the system.
26  *
27  *
28  * <P>
29  * This class exists for two reasons
30  * <Ol>
31  * <LI> To act as the internal documentation for the attributes.
32  * <LI> To remove the need to declare a java static field for the attributes
33  * name in the protocol/implementation class. This reduces the footprint as the
34  * string is final and thus can be included simply as a String constant pool
35  * entry.
36  * </OL>
37  * <P>
38  * This class should not be shipped with the product.
39  *
40  * <P>
41  * This class has no methods, all it contains are String's which by are public,
42  * static and final since they are declared in an interface.
43  */

44
45 public interface Attribute {
46
47     /**
48      * Not an attribute but the root for the JDBC URL that Derby supports.
49      */

50     String JavaDoc PROTOCOL = "jdbc:derby:";
51
52     /**
53      * The SQLJ protocol for getting the default connection for server side jdbc
54      */

55     String JavaDoc SQLJ_NESTED = "jdbc:default:connection";
56
57     // Network Protocols. These need to be rejected by the embedded driver.
58

59     /**
60      * The protocol for Derby Network Client
61      */

62     String JavaDoc DNC_PROTOCOL = "jdbc:derby://";
63
64     /**
65      * The protocol for the IBM Universal JDBC Driver
66      *
67      */

68     String JavaDoc JCC_PROTOCOL = "jdbc:derby:net:";
69
70     /**
71      * Attribute name to encrypt the database on disk. If set to true, all user
72      * data is stored encrypted on disk.
73      */

74     String JavaDoc DATA_ENCRYPTION = "dataEncryption";
75
76     /**
77      * If dataEncryption is true, use this attribute to pass in the secret key.
78      * The secret key must be at least 8 characters long. This key must not be
79      * stored persistently in cleartext anywhere.
80      */

81
82     String JavaDoc BOOT_PASSWORD = "bootPassword";
83
84     /**
85      * The attribute that is used for the database name, from the JDBC notion of
86      * jdbc:<subprotocol>:<subname>
87      */

88     String JavaDoc DBNAME_ATTR = "databaseName";
89
90     /**
91      * The attribute that is used to request a shutdown.
92      */

93     String JavaDoc SHUTDOWN_ATTR = "shutdown";
94
95     /**
96      * The attribute that is used to request a database create.
97      */

98     String JavaDoc CREATE_ATTR = "create";
99
100     /**
101      * The attribute that is used to set the user name.
102      */

103     String JavaDoc USERNAME_ATTR = "user";
104
105     /**
106      * The attribute that is used to set the user password.
107      */

108     String JavaDoc PASSWORD_ATTR = "password";
109
110     /**
111      * The attribute that is used to set the connection's DRDA ID.
112      */

113     String JavaDoc DRDAID_ATTR = "drdaID";
114
115     /**
116      * The attribute that is used to allow upgrade.
117      */

118     String JavaDoc UPGRADE_ATTR = "upgrade";
119
120     /**
121      * Put the log on a different device.
122      */

123     String JavaDoc LOG_DEVICE = "logDevice";
124
125     /**
126      * Set the territory for the database.
127      */

128     String JavaDoc TERRITORY = "territory";
129
130     /**
131      * Set the collation sequence of the database, currently on IDENTITY will be
132      * supported (strings will sort according to binary comparison).
133      */

134     String JavaDoc COLLATE = "collate";
135
136     /**
137      * Attribute for encrypting a database. Specifies the cryptographic services
138      * provider.
139      */

140     String JavaDoc CRYPTO_PROVIDER = "encryptionProvider";
141
142     /**
143      * Attribute for encrypting a database. Specifies the cryptographic
144      * algorithm.
145      */

146     String JavaDoc CRYPTO_ALGORITHM = "encryptionAlgorithm";
147
148     /**
149      * Attribute for encrypting a database. Specifies the key length in bytes
150      * for the specified cryptographic algorithm.
151      */

152     String JavaDoc CRYPTO_KEY_LENGTH = "encryptionKeyLength";
153
154     /**
155      * Attribute for encrypting a database. Specifies the actual key. When this
156      * is specified all the supplied crypto information is stored external to
157      * the database, ie by the application.
158      */

159     String JavaDoc CRYPTO_EXTERNAL_KEY = "encryptionKey";
160
161     /**
162      * This attribute is used to request to create a database from backup. This
163      * will throw error if a database with same already exists at the location
164      * where we tring to create.
165      */

166     String JavaDoc CREATE_FROM = "createFrom";
167
168     /**
169      * This attribute is used to request a database restore from backup. It must
170      * be used only when the active database is corrupted, because it will
171      * cleanup the existing database and replace it from the backup.
172      */

173     String JavaDoc RESTORE_FROM = "restoreFrom";
174
175     /**
176      * The attribute that is used to request a roll-forward recovery of the
177      * database.
178      */

179     String JavaDoc ROLL_FORWARD_RECOVERY_FROM = "rollForwardRecoveryFrom";
180
181     /**
182      * securityMechanism sets the mechanism for transmitting the user name and
183      * password from the client. Client driver attribute.
184      */

185     String JavaDoc CLIENT_SECURITY_MECHANISM = "securityMechanism";
186
187     /**
188      * traceFile sets the client side trace file. Client driver attribute.
189      */

190     String JavaDoc CLIENT_TRACE_FILE = "traceFile";
191
192     /**
193      * traceDirectory sets the client side trace directory.
194      * Client driver attribute.
195      */

196     String JavaDoc CLIENT_TRACE_DIRECTORY = "traceDirectory";
197     
198     /**
199      * traceFileAppend.
200      * Client driver attribute.
201      */

202     String JavaDoc CLIENT_TRACE_APPEND = "traceFileAppend";
203     
204     /**
205      * traceLevel.
206      * Client driver attribute.
207      */

208     String JavaDoc CLIENT_TRACE_LEVEL = "traceLevel";
209     
210     /**
211      * retrieveMessageText.
212      * Client driver attribute.
213      */

214     String JavaDoc CLIENT_RETIEVE_MESSAGE_TEXT = "retrieveMessageText";
215 }
216
217
218
Popular Tags