Java Doc for ClientBaseDataSource.java in  » Database-DBMS » db-derby-10.2 » org » apache » derby » jdbc » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database DBMS » db derby 10.2 » org.apache.derby.jdbc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.derby.jdbc.ClientBaseDataSource

All known Subclasses:   org.apache.derby.jdbc.ClientDataSource,
ClientBaseDataSource
abstract public class ClientBaseDataSource implements Serializable,Referenceable(Code)
Base class for client-side DataSource implementations.


Field Summary
final public static  shortCLEAR_TEXT_PASSWORD_SECURITY
    
final public static  shortENCRYPTED_PASSWORD_SECURITY
    
final public static  shortENCRYPTED_USER_AND_PASSWORD_SECURITY
    
final public static  shortSTRONG_PASSWORD_SUBSTITUTE_SECURITY
    
static  booleanSUPPORTS_EUSRIDPWD
    
final public static  intTRACE_ALL
    
final public static  intTRACE_CONNECTION_CALLS
    
final public static  intTRACE_CONNECTS
    
final public static  intTRACE_DIAGNOSTICS
    
final public static  intTRACE_DRIVER_CONFIGURATION
    
final public static  intTRACE_NONE
    
final public static  intTRACE_PARAMETER_META_DATA
    
final public static  intTRACE_PROTOCOL_FLOWS
    
final public static  intTRACE_RESULT_SET_CALLS
    
final public static  intTRACE_RESULT_SET_META_DATA
    
final public static  intTRACE_STATEMENT_CALLS
    
final public static  intTRACE_XA_CALLS
    
final public static  shortUSER_ONLY_SECURITY
     The source security mechanism to use when connecting to this data source.

Security mechanism options are:

  • USER_ONLY_SECURITY
  • CLEAR_TEXT_PASSWORD_SECURITY
  • ENCRYPTED_PASSWORD_SECURITY
  • ENCRYPTED_USER_AND_PASSWORD_SECURITY - both password and user are encrypted
  • STRONG_PASSWORD_SUBSTITUTE_SECURITY
The default security mechanism is USER_ONLY SECURITY

If the application specifies a security mechanism then it will be the only one attempted.

protected  StringconnectionAttributes
    
final public static  intpropertyDefault_portNumber
    
final public static  booleanpropertyDefault_retrieveMessageText
    
final public static  shortpropertyDefault_securityMechanism
    
final public static  StringpropertyDefault_serverName
    
final public static  booleanpropertyDefault_traceFileAppend
    
final public static  intpropertyDefault_traceLevel
    
final public static  StringpropertyDefault_user
    
protected  shortsecurityMechanism
    
protected  inttraceLevel
    

Constructor Summary
 ClientBaseDataSource()
    

Method Summary
static  LogWritercomputeDncLogWriter(PrintWriter logWriter, String traceDirectory, String traceFile, boolean traceFileAppend, String logWriterInUseSuffix, int traceFileSuffixIndex, int traceLevel)
    
public static  LogWritercomputeDncLogWriter(Connection connection, PrintWriter logWriter, String traceDirectory, String traceFile, boolean traceFileAppend, String logWriterInUseSuffix, int traceFileSuffixIndex, int traceLevel)
    
 LogWritercomputeDncLogWriterForNewConnection(String logWriterInUseSuffix)
    
static  LogWritercomputeDncLogWriterForNewConnection(PrintWriter logWriter, String traceDirectory, String traceFile, boolean traceFileAppend, int traceLevel, String logWriterInUseSuffix, int traceFileSuffixIndex)
    
static  PrintWritercomputePrintWriter(PrintWriter logWriter, String traceDirectory, String traceFile, boolean traceFileAppend, String logWriterInUseSuffix, int traceFileSuffixIndex)
    
final public  StringgetConnectionAttributes()
    
public  StringgetDataSourceName()
    
public  StringgetDatabaseName()
    
public  StringgetDescription()
    
public  PrintWritergetLogWriter()
    
public  intgetLoginTimeout()
    
public static  StringgetPassword(Properties properties)
    
final public  StringgetPassword()
    
public  intgetPortNumber()
    
public  ReferencegetReference()
    
public static  booleangetRetrieveMessageText(Properties properties)
    
public  booleangetRetrieveMessageText()
    
public static  shortgetSecurityMechanism(Properties properties)
    
public  shortgetSecurityMechanism()
    
public  shortgetSecurityMechanism(String password)
    
public  StringgetServerName()
    
public static  StringgetTraceDirectory(Properties properties)
    
public  StringgetTraceDirectory()
    
public static  StringgetTraceFile(Properties properties)
    
public  StringgetTraceFile()
    
public static  booleangetTraceFileAppend(Properties properties)
    
public  booleangetTraceFileAppend()
    
public static  intgetTraceLevel(Properties properties)
    
public  intgetTraceLevel()
    
public static  shortgetUpgradedSecurityMechanism(String password)
     This method has logic to upgrade security mechanism to a better (more secure) one if it is possible.
public static  StringgetUser(Properties properties)
    
public  StringgetUser()
    
final public  voidsetConnectionAttributes(String prop)
     Set this property to pass in more Derby specific connection URL attributes.
Any attributes that can be set using a property of this DataSource implementation (e.g user, password) should not be set in connectionAttributes.
public synchronized  voidsetDataSourceName(String dataSourceName)
    
public synchronized  voidsetDatabaseName(String databaseName)
    
public synchronized  voidsetDescription(String description)
    
public synchronized  voidsetLogWriter(PrintWriter logWriter)
    
public synchronized  voidsetLoginTimeout(int seconds)
    
final public synchronized  voidsetPassword(String password)
    
public synchronized  voidsetPortNumber(int portNumber)
    
public synchronized  voidsetRetrieveMessageText(boolean retrieveMessageText)
    
public synchronized  voidsetSecurityMechanism(short securityMechanism)
    
public synchronized  voidsetServerName(String serverName)
    
public synchronized  voidsetTraceDirectory(String traceDirectory)
    
public synchronized  voidsetTraceFile(String traceFile)
    
public synchronized  voidsetTraceFileAppend(boolean traceFileAppend)
    
public synchronized  voidsetTraceLevel(int traceLevel)
    
public synchronized  voidsetUser(String user)
    
static  PropertiestokenizeAttributes(String attributeString, Properties properties)
    
 voidupdateDataSourceValues(Properties prop)
     The dataSource keeps individual fields for the values that are relevant to the client.

Field Detail
CLEAR_TEXT_PASSWORD_SECURITY
final public static short CLEAR_TEXT_PASSWORD_SECURITY(Code)



ENCRYPTED_PASSWORD_SECURITY
final public static short ENCRYPTED_PASSWORD_SECURITY(Code)



ENCRYPTED_USER_AND_PASSWORD_SECURITY
final public static short ENCRYPTED_USER_AND_PASSWORD_SECURITY(Code)



STRONG_PASSWORD_SUBSTITUTE_SECURITY
final public static short STRONG_PASSWORD_SUBSTITUTE_SECURITY(Code)



SUPPORTS_EUSRIDPWD
static boolean SUPPORTS_EUSRIDPWD(Code)



TRACE_ALL
final public static int TRACE_ALL(Code)



TRACE_CONNECTION_CALLS
final public static int TRACE_CONNECTION_CALLS(Code)



TRACE_CONNECTS
final public static int TRACE_CONNECTS(Code)



TRACE_DIAGNOSTICS
final public static int TRACE_DIAGNOSTICS(Code)



TRACE_DRIVER_CONFIGURATION
final public static int TRACE_DRIVER_CONFIGURATION(Code)



TRACE_NONE
final public static int TRACE_NONE(Code)



TRACE_PARAMETER_META_DATA
final public static int TRACE_PARAMETER_META_DATA(Code)



TRACE_PROTOCOL_FLOWS
final public static int TRACE_PROTOCOL_FLOWS(Code)



TRACE_RESULT_SET_CALLS
final public static int TRACE_RESULT_SET_CALLS(Code)



TRACE_RESULT_SET_META_DATA
final public static int TRACE_RESULT_SET_META_DATA(Code)



TRACE_STATEMENT_CALLS
final public static int TRACE_STATEMENT_CALLS(Code)



TRACE_XA_CALLS
final public static int TRACE_XA_CALLS(Code)



USER_ONLY_SECURITY
final public static short USER_ONLY_SECURITY(Code)
The source security mechanism to use when connecting to this data source.

Security mechanism options are:

  • USER_ONLY_SECURITY
  • CLEAR_TEXT_PASSWORD_SECURITY
  • ENCRYPTED_PASSWORD_SECURITY
  • ENCRYPTED_USER_AND_PASSWORD_SECURITY - both password and user are encrypted
  • STRONG_PASSWORD_SUBSTITUTE_SECURITY
The default security mechanism is USER_ONLY SECURITY

If the application specifies a security mechanism then it will be the only one attempted. If the specified security mechanism is not supported by the conversation then an exception will be thrown and there will be no additional retries.

This property is currently only available for the DNC driver.

Both user and password need to be set for all security mechanism except USER_ONLY_SECURITY




connectionAttributes
protected String connectionAttributes(Code)



propertyDefault_portNumber
final public static int propertyDefault_portNumber(Code)



propertyDefault_retrieveMessageText
final public static boolean propertyDefault_retrieveMessageText(Code)



propertyDefault_securityMechanism
final public static short propertyDefault_securityMechanism(Code)



propertyDefault_serverName
final public static String propertyDefault_serverName(Code)



propertyDefault_traceFileAppend
final public static boolean propertyDefault_traceFileAppend(Code)



propertyDefault_traceLevel
final public static int propertyDefault_traceLevel(Code)



propertyDefault_user
final public static String propertyDefault_user(Code)



securityMechanism
protected short securityMechanism(Code)



traceLevel
protected int traceLevel(Code)




Constructor Detail
ClientBaseDataSource
ClientBaseDataSource()(Code)




Method Detail
computeDncLogWriter
static LogWriter computeDncLogWriter(PrintWriter logWriter, String traceDirectory, String traceFile, boolean traceFileAppend, String logWriterInUseSuffix, int traceFileSuffixIndex, int traceLevel) throws SqlException(Code)



computeDncLogWriter
public static LogWriter computeDncLogWriter(Connection connection, PrintWriter logWriter, String traceDirectory, String traceFile, boolean traceFileAppend, String logWriterInUseSuffix, int traceFileSuffixIndex, int traceLevel) throws SqlException(Code)



computeDncLogWriterForNewConnection
LogWriter computeDncLogWriterForNewConnection(String logWriterInUseSuffix) throws SqlException(Code)



computeDncLogWriterForNewConnection
static LogWriter computeDncLogWriterForNewConnection(PrintWriter logWriter, String traceDirectory, String traceFile, boolean traceFileAppend, int traceLevel, String logWriterInUseSuffix, int traceFileSuffixIndex) throws SqlException(Code)



computePrintWriter
static PrintWriter computePrintWriter(PrintWriter logWriter, String traceDirectory, String traceFile, boolean traceFileAppend, String logWriterInUseSuffix, int traceFileSuffixIndex) throws SqlException(Code)



getConnectionAttributes
final public String getConnectionAttributes()(Code)
Derby specific connection URL attributes



getDataSourceName
public String getDataSourceName()(Code)



getDatabaseName
public String getDatabaseName()(Code)



getDescription
public String getDescription()(Code)



getLogWriter
public PrintWriter getLogWriter()(Code)



getLoginTimeout
public int getLoginTimeout()(Code)



getPassword
public static String getPassword(Properties properties)(Code)



getPassword
final public String getPassword()(Code)



getPortNumber
public int getPortNumber()(Code)



getReference
public Reference getReference() throws NamingException(Code)



getRetrieveMessageText
public static boolean getRetrieveMessageText(Properties properties)(Code)



getRetrieveMessageText
public boolean getRetrieveMessageText()(Code)



getSecurityMechanism
public static short getSecurityMechanism(Properties properties)(Code)
Return security mechanism if it is set, else upgrade the security mechanism if possible and return the upgraded security mechanism
Parameters:
  properties - Look in the properties if securityMechanism is set or notif set, return this security mechanism security mechanism



getSecurityMechanism
public short getSecurityMechanism()(Code)
return the security mechanism if security mechanism has not been set explicitly on datasource then upgrade the security mechanism to a more secure one if possible
See Also:   ClientBaseDataSource.getUpgradedSecurityMechanism(String) the security mechanism



getSecurityMechanism
public short getSecurityMechanism(String password)(Code)
return the security mechanism for this datasource object if security mechanism has not been set explicitly on datasource then upgrade the security mechanism to a more secure one if possible
Parameters:
  password - password of user
See Also:   ClientBaseDataSource.getUpgradedSecurityMechanism(String) the security mechanism



getServerName
public String getServerName()(Code)



getTraceDirectory
public static String getTraceDirectory(Properties properties)(Code)



getTraceDirectory
public String getTraceDirectory()(Code)



getTraceFile
public static String getTraceFile(Properties properties)(Code)



getTraceFile
public String getTraceFile()(Code)



getTraceFileAppend
public static boolean getTraceFileAppend(Properties properties)(Code)



getTraceFileAppend
public boolean getTraceFileAppend()(Code)



getTraceLevel
public static int getTraceLevel(Properties properties)(Code)



getTraceLevel
public int getTraceLevel()(Code)



getUpgradedSecurityMechanism
public static short getUpgradedSecurityMechanism(String password)(Code)
This method has logic to upgrade security mechanism to a better (more secure) one if it is possible. Currently derby server only has support for USRIDPWD, USRIDONL, EUSRIDPWD and USRSSBPWD (10.2+) - this method only considers these possibilities. USRIDPWD, EUSRIDPWD and USRSSBPWD require a password, USRIDONL is the only security mechanism which does not require password. 1. if password is not available, then security mechanism possible is USRIDONL 2. if password is available,then USRIDPWD is returned.
Parameters:
  password - password argument upgraded security mechanism if possible



getUser
public static String getUser(Properties properties)(Code)



getUser
public String getUser()(Code)



setConnectionAttributes
final public void setConnectionAttributes(String prop)(Code)
Set this property to pass in more Derby specific connection URL attributes.
Any attributes that can be set using a property of this DataSource implementation (e.g user, password) should not be set in connectionAttributes. Conflicting settings in connectionAttributes and properties of the DataSource will lead to unexpected behaviour.
Parameters:
  prop - set to the list of Cloudscape connection attributes separated by semi-colons. E.g., to specify anencryption bootPassword of "x8hhk2adf", and set upgrade to true, do the following:
ds.setConnectionAttributes("bootPassword=x8hhk2adf;upgrade=true"); 
See Derby documentation forcomplete list.



setDataSourceName
public synchronized void setDataSourceName(String dataSourceName)(Code)



setDatabaseName
public synchronized void setDatabaseName(String databaseName)(Code)



setDescription
public synchronized void setDescription(String description)(Code)



setLogWriter
public synchronized void setLogWriter(PrintWriter logWriter)(Code)



setLoginTimeout
public synchronized void setLoginTimeout(int seconds)(Code)



setPassword
final public synchronized void setPassword(String password)(Code)



setPortNumber
public synchronized void setPortNumber(int portNumber)(Code)



setRetrieveMessageText
public synchronized void setRetrieveMessageText(boolean retrieveMessageText)(Code)



setSecurityMechanism
public synchronized void setSecurityMechanism(short securityMechanism)(Code)
sets the security mechanism
Parameters:
  securityMechanism - to set



setServerName
public synchronized void setServerName(String serverName)(Code)



setTraceDirectory
public synchronized void setTraceDirectory(String traceDirectory)(Code)



setTraceFile
public synchronized void setTraceFile(String traceFile)(Code)



setTraceFileAppend
public synchronized void setTraceFileAppend(boolean traceFileAppend)(Code)



setTraceLevel
public synchronized void setTraceLevel(int traceLevel)(Code)



setUser
public synchronized void setUser(String user)(Code)



tokenizeAttributes
static Properties tokenizeAttributes(String attributeString, Properties properties) throws SqlException(Code)



updateDataSourceValues
void updateDataSourceValues(Properties prop)(Code)
The dataSource keeps individual fields for the values that are relevant to the client. These need to be updated when set connection attributes is called.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.