PageRenderTime 24ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/projects/derby-10.9.1.0/db-derby-10.9.1.0-src/java/shared/org/apache/derby/shared/common/reference/Attribute.java

https://gitlab.com/essere.lab.public/qualitas.class-corpus
Java | 279 lines | 42 code | 47 blank | 190 comment | 0 complexity | 8af8146f53c7a1371afd43efbba9a920 MD5 | raw file
  1. /*
  2. Derby - Class org.apache.derby.shared.common.reference.Attribute
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to you under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. */
  16. package org.apache.derby.shared.common.reference;
  17. /**
  18. * List of all connection (JDBC) attributes by the system.
  19. *
  20. *
  21. * <P>
  22. * This class exists for two reasons
  23. * <Ol>
  24. * <LI> To act as the internal documentation for the attributes.
  25. * <LI> To remove the need to declare a java static field for the attributes
  26. * name in the protocol/implementation class. This reduces the footprint as the
  27. * string is final and thus can be included simply as a String constant pool
  28. * entry.
  29. * </OL>
  30. * <P>
  31. * This class should not be shipped with the product.
  32. *
  33. * <P>
  34. * This class has no methods, all it contains are String's which by are public,
  35. * static and final since they are declared in an interface.
  36. */
  37. public interface Attribute {
  38. /**
  39. * Not an attribute but the root for the JDBC URL that Derby supports.
  40. */
  41. String PROTOCOL = "jdbc:derby:";
  42. /**
  43. * The SQLJ protocol for getting the default connection for server side jdbc
  44. */
  45. String SQLJ_NESTED = "jdbc:default:connection";
  46. // Network Protocols. These need to be rejected by the embedded driver.
  47. /**
  48. * The protocol for Derby Network Client
  49. */
  50. String DNC_PROTOCOL = "jdbc:derby://";
  51. /**
  52. * The protocol for the IBM Universal JDBC Driver
  53. *
  54. */
  55. String JCC_PROTOCOL = "jdbc:derby:net:";
  56. /**
  57. * User should use this prefix for the client attributes traceLevel
  58. * and traceDirectory when they are sending those attributes as JVM
  59. * properties.
  60. * These 2 attributes can be sent through jdbc url directly (supported
  61. * way) or as JVM properties with the following prefix (undocumented
  62. * way). DERBY-1275
  63. */
  64. String CLIENT_JVM_PROPERTY_PREFIX = "derby.client.";
  65. /**
  66. * Attribute name to encrypt the database on disk. If set to true, all user
  67. * data is stored encrypted on disk.
  68. */
  69. String DATA_ENCRYPTION = "dataEncryption";
  70. /**
  71. * If dataEncryption is true, use this attribute to pass in the secret key.
  72. * The secret key must be at least 8 characters long. This key must not be
  73. * stored persistently in cleartext anywhere.
  74. */
  75. String BOOT_PASSWORD = "bootPassword";
  76. /**
  77. * Attribute name to start replication master mode for a database.
  78. * If used, REPLICATION_SLAVE_HOST is a required attribute.
  79. */
  80. String REPLICATION_START_MASTER = "startMaster";
  81. /**
  82. * Attribute name to stop replication master mode for a database.
  83. */
  84. String REPLICATION_STOP_MASTER = "stopMaster";
  85. /**
  86. * Attribute name to start replication slave mode for a database.
  87. */
  88. String REPLICATION_START_SLAVE = "startSlave";
  89. /**
  90. * Attribute name to stop replication slave mode for a database.
  91. */
  92. String REPLICATION_STOP_SLAVE = "stopSlave";
  93. /**
  94. * Attribute name to stop replication slave mode for a database.
  95. * Internal use only
  96. */
  97. String REPLICATION_INTERNAL_SHUTDOWN_SLAVE = "internal_stopslave";
  98. /**
  99. * If startMaster is true, this attribute is used to specify the
  100. * host name the master should connect to. This is a required
  101. * attribute.
  102. */
  103. String REPLICATION_SLAVE_HOST = "slaveHost";
  104. /**
  105. * Attribute name to start failover for a given database..
  106. */
  107. String REPLICATION_FAILOVER = "failover";
  108. /**
  109. * If startMaster is true, this attribute is used to specify the
  110. * port the master should connect to. This is an optional
  111. * attribute.
  112. */
  113. String REPLICATION_SLAVE_PORT = "slavePort";
  114. /**
  115. * The attribute that is used for the database name, from the JDBC notion of
  116. * jdbc:<subprotocol>:<subname>
  117. */
  118. String DBNAME_ATTR = "databaseName";
  119. /**
  120. * The attribute that is used to request a shutdown.
  121. */
  122. String SHUTDOWN_ATTR = "shutdown";
  123. /**
  124. * The attribute that is used to request a database create.
  125. */
  126. String CREATE_ATTR = "create";
  127. /**
  128. * The attribute that is used to set the user name.
  129. */
  130. String USERNAME_ATTR = "user";
  131. /**
  132. * The attribute that is used to set the user password.
  133. */
  134. String PASSWORD_ATTR = "password";
  135. /**
  136. * The attribute that is used to set the connection's DRDA ID.
  137. */
  138. String DRDAID_ATTR = "drdaID";
  139. /**
  140. * The attribute that is used to allow upgrade.
  141. */
  142. String UPGRADE_ATTR = "upgrade";
  143. /**
  144. * Put the log on a different device.
  145. */
  146. String LOG_DEVICE = "logDevice";
  147. /**
  148. * Set the territory for the database.
  149. */
  150. String TERRITORY = "territory";
  151. /**
  152. * Set the collation sequence of the database, currently on IDENTITY will be
  153. * supported (strings will sort according to binary comparison).
  154. */
  155. String COLLATE = "collate";
  156. /**
  157. * Attribute for encrypting a database. Specifies the cryptographic services
  158. * provider.
  159. */
  160. String CRYPTO_PROVIDER = "encryptionProvider";
  161. /**
  162. * Attribute for encrypting a database. Specifies the cryptographic
  163. * algorithm.
  164. */
  165. String CRYPTO_ALGORITHM = "encryptionAlgorithm";
  166. /**
  167. * Attribute for encrypting a database. Specifies the key length in bytes
  168. * for the specified cryptographic algorithm.
  169. */
  170. String CRYPTO_KEY_LENGTH = "encryptionKeyLength";
  171. /**
  172. * Attribute for encrypting a database. Specifies the actual key. When this
  173. * is specified all the supplied crypto information is stored external to
  174. * the database, ie by the application.
  175. */
  176. String CRYPTO_EXTERNAL_KEY = "encryptionKey";
  177. /**
  178. * This attribute is used to request to create a database from backup. This
  179. * will throw error if a database with same already exists at the location
  180. * where we tring to create.
  181. */
  182. String CREATE_FROM = "createFrom";
  183. /**
  184. * This attribute is used to request a database restore from backup. It must
  185. * be used only when the active database is corrupted, because it will
  186. * cleanup the existing database and replace it from the backup.
  187. */
  188. String RESTORE_FROM = "restoreFrom";
  189. /**
  190. * The attribute that is used to request a roll-forward recovery of the
  191. * database.
  192. */
  193. String ROLL_FORWARD_RECOVERY_FROM = "rollForwardRecoveryFrom";
  194. /**
  195. * securityMechanism sets the mechanism for transmitting the user name and
  196. * password from the client. Client driver attribute.
  197. */
  198. String CLIENT_SECURITY_MECHANISM = "securityMechanism";
  199. /**
  200. * traceFile sets the client side trace file. Client driver attribute.
  201. */
  202. String CLIENT_TRACE_FILE = "traceFile";
  203. /**
  204. * traceDirectory sets the client side trace directory.
  205. * Client driver attribute.
  206. */
  207. String CLIENT_TRACE_DIRECTORY = "traceDirectory";
  208. /**
  209. * traceFileAppend.
  210. * Client driver attribute.
  211. */
  212. String CLIENT_TRACE_APPEND = "traceFileAppend";
  213. /**
  214. * traceLevel.
  215. * Client driver attribute.
  216. */
  217. String CLIENT_TRACE_LEVEL = "traceLevel";
  218. /**
  219. * retrieveMessageText.
  220. * Client driver attribute.
  221. */
  222. String CLIENT_RETIEVE_MESSAGE_TEXT = "retrieveMessageText";
  223. /**
  224. The attribute that is used to set client SSL mode.
  225. */
  226. String SSL_ATTR = "ssl";
  227. }