Java Doc for ConnectionProfile.java in  » Database-Client » SQL-Workbench » workbench » db » 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 Client » SQL Workbench » workbench.db 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   workbench.db.ConnectionProfile

ConnectionProfile
public class ConnectionProfile implements PropertyChangeListener(Code)
A class to store a connection definition including non-JDBC properties specific to the application.
author:
   support@sql-workbench.net


Field Summary
final public static  StringPROPERTY_PROFILE_GROUP
    

Constructor Summary
public  ConnectionProfile()
    
public  ConnectionProfile(String aName, String driverClass, String url, String userName, String pwd)
    

Method Summary
public  voidaddConnectionProperty(String aKey, String aValue)
    
public  ConnectionProfilecreateCopy()
    
public  StringdecryptPassword()
     Returns the plain text version of the current password.
public  StringdecryptPassword(String aPwd)
     Returns the plain text version of the given password.
public  booleanequals(Object other)
    
public  DelimiterDefinitiongetAlternateDelimiter()
    
public  booleangetAutocommit()
    
public  PropertiesgetConnectionProperties()
    
public  booleangetCopyExtendedPropsToSystem()
    
public  IntegergetDefaultFetchSize()
    
public  java.lang.StringgetDriverName()
    
public  StringgetDriverclass()
    
public  booleangetEmptyStringIsNull()
    
public  intgetFetchSize()
    
public  StringgetGroup()
    
public  StringgetIdleScript()
    
public  longgetIdleTime()
    
public  booleangetIgnoreDropErrors()
    
public  booleangetIncludeNullInInsert()
     Define how columns with a NULL value are treated when creating INSERT statements.
public  ColorgetInfoDisplayColor()
    
public  StringgetInputPassword()
     Returns the user's password in plain readable text.
public  ProfileKeygetKey()
    
public  StringgetName()
    
public static  Comparator<ConnectionProfile>getNameComparator()
    
public  StringgetPassword()
     Returns the encrypted version of the password.
public  StringgetPostConnectScript()
    
public  StringgetPreDisconnectScript()
    
public  booleangetRemoveComments()
    
public  booleangetRollbackBeforeDisconnect()
    
public  booleangetStoreExplorerSchema()
    
public  booleangetStorePassword()
    
public  booleangetTrimCharData()
    
public  StringgetUrl()
    
public  booleangetUseSeparateConnectionPerTab()
    
public  StringgetUsername()
    
public  StringgetWorkspaceFile()
    
public  inthashCode()
     The hashCode is based on the profile key's hash code.
public  booleanisChanged()
    
public  booleanisConfirmUpdates()
    
public  booleanisNew()
    
public  booleanisProfileForKey(ProfileKey key)
    
public  voidpropertyChange(java.beans.PropertyChangeEvent evt)
    
public  voidreset()
     Reset the changed and new flags.
public  voidsetAlternateDelimiter(DelimiterDefinition def)
    
public  voidsetAutocommit(boolean aFlag)
    
public  voidsetConfirmUpdates(boolean flag)
    
public  voidsetConnectionProperties(Properties props)
    
public  voidsetCopyExtendedPropsToSystem(boolean flag)
    
public  voidsetDefaultFetchSize(Integer fetchSize)
    
public  voidsetDisableUpdateTableCheck(boolean flag)
     This method is used for backward compatibility.
public  voidsetDriverName(java.lang.String driverName)
    
public  voidsetDriverclass(String aDriverclass)
    
public  voidsetEmptyStringIsNull(boolean flag)
     Define how empty strings (Strings with length == 0) are treated.
public  voidsetGroup(String g)
    
public  voidsetIdleScript(String script)
    
public  voidsetIdleTime(long time)
    
public  voidsetIgnoreDropErrors(boolean aFlag)
    
public  voidsetIncludeNullInInsert(boolean flag)
    
public  voidsetInfoDisplayColor(Color c)
    
public  voidsetInputPassword(String aPassword)
    
public  voidsetName(String aName)
    
public  voidsetNew()
    
public  voidsetPassword(String aPwd)
     Sets the current password.
public  voidsetPostConnectScript(String script)
    
public  voidsetPreDisconnectScript(String script)
    
public  voidsetRemoveComments(boolean flag)
     Define how comments inside SQL statements are handled.
public  voidsetRollbackBeforeDisconnect(boolean flag)
    
public  voidsetStoreExplorerSchema(boolean value)
    
public  voidsetStorePassword(boolean aFlag)
    
public  voidsetTrimCharData(boolean flag)
    
public  voidsetUrl(String aUrl)
    
public  voidsetUseSeparateConnectionPerTab(boolean aFlag)
    
public  voidsetUseSeperateConnectionPerTab(boolean aFlag)
    
public  voidsetUsername(java.lang.String aUsername)
    
public  voidsetWorkspaceFile(String aWorkspaceFile)
    
public  StringtoString()
    

Field Detail
PROPERTY_PROFILE_GROUP
final public static String PROPERTY_PROFILE_GROUP(Code)




Constructor Detail
ConnectionProfile
public ConnectionProfile()(Code)



ConnectionProfile
public ConnectionProfile(String aName, String driverClass, String url, String userName, String pwd)(Code)




Method Detail
addConnectionProperty
public void addConnectionProperty(String aKey, String aValue)(Code)



createCopy
public ConnectionProfile createCopy()(Code)



decryptPassword
public String decryptPassword()(Code)
Returns the plain text version of the current password.
See Also:   ConnectionProfile.encryptPassword(String)



decryptPassword
public String decryptPassword(String aPwd)(Code)
Returns the plain text version of the given password. This is not put into the getPassword() method because the XMLEncode would write the password in plain text into the XML file. A method beginning with decrypt is not regarded as a property and thus not written to the XML file.
Parameters:
  aPwd - the encrypted password



equals
public boolean equals(Object other)(Code)



getAlternateDelimiter
public DelimiterDefinition getAlternateDelimiter()(Code)



getAutocommit
public boolean getAutocommit()(Code)



getConnectionProperties
public Properties getConnectionProperties()(Code)



getCopyExtendedPropsToSystem
public boolean getCopyExtendedPropsToSystem()(Code)



getDefaultFetchSize
public Integer getDefaultFetchSize()(Code)



getDriverName
public java.lang.String getDriverName()(Code)



getDriverclass
public String getDriverclass()(Code)



getEmptyStringIsNull
public boolean getEmptyStringIsNull()(Code)



getFetchSize
public int getFetchSize()(Code)



getGroup
public String getGroup()(Code)



getIdleScript
public String getIdleScript()(Code)



getIdleTime
public long getIdleTime()(Code)



getIgnoreDropErrors
public boolean getIgnoreDropErrors()(Code)



getIncludeNullInInsert
public boolean getIncludeNullInInsert()(Code)
Define how columns with a NULL value are treated when creating INSERT statements. If this is set to false, then any column with an a NULL value will not be included in an generated INSERT statement.
See Also:   workbench.storage.StatementFactory.createInsertStatement(workbench.storage.RowDatabooleanStringjava.util.List)



getInfoDisplayColor
public Color getInfoDisplayColor()(Code)



getInputPassword
public String getInputPassword()(Code)
Returns the user's password in plain readable text. (This value is send to the DB server)



getKey
public ProfileKey getKey()(Code)



getName
public String getName()(Code)



getNameComparator
public static Comparator<ConnectionProfile> getNameComparator()(Code)



getPassword
public String getPassword()(Code)
Returns the encrypted version of the password. This getter/setter pair is used when saving the profile
See Also:   ConnectionProfile.decryptPassword(String)



getPostConnectScript
public String getPostConnectScript()(Code)



getPreDisconnectScript
public String getPreDisconnectScript()(Code)



getRemoveComments
public boolean getRemoveComments()(Code)



getRollbackBeforeDisconnect
public boolean getRollbackBeforeDisconnect()(Code)



getStoreExplorerSchema
public boolean getStoreExplorerSchema()(Code)



getStorePassword
public boolean getStorePassword()(Code)



getTrimCharData
public boolean getTrimCharData()(Code)



getUrl
public String getUrl()(Code)



getUseSeparateConnectionPerTab
public boolean getUseSeparateConnectionPerTab()(Code)
Return true if the application should use a separate connection per tab or if all SQL tabs including DbExplorer tabs and windows should share the same connection



getUsername
public String getUsername()(Code)



getWorkspaceFile
public String getWorkspaceFile()(Code)



hashCode
public int hashCode()(Code)
The hashCode is based on the profile key's hash code.
See Also:   ConnectionProfile.getKey()
See Also:   ProfileKey.hashCode the hashcode for the profile key



isChanged
public boolean isChanged()(Code)



isConfirmUpdates
public boolean isConfirmUpdates()(Code)



isNew
public boolean isNew()(Code)



isProfileForKey
public boolean isProfileForKey(ProfileKey key)(Code)



propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)(Code)



reset
public void reset()(Code)
Reset the changed and new flags.
See Also:   ConnectionProfile.isNew()
See Also:   ConnectionProfile.isChanged()



setAlternateDelimiter
public void setAlternateDelimiter(DelimiterDefinition def)(Code)



setAutocommit
public void setAutocommit(boolean aFlag)(Code)



setConfirmUpdates
public void setConfirmUpdates(boolean flag)(Code)



setConnectionProperties
public void setConnectionProperties(Properties props)(Code)



setCopyExtendedPropsToSystem
public void setCopyExtendedPropsToSystem(boolean flag)(Code)



setDefaultFetchSize
public void setDefaultFetchSize(Integer fetchSize)(Code)



setDisableUpdateTableCheck
public void setDisableUpdateTableCheck(boolean flag)(Code)
This method is used for backward compatibility. Old profiles had this property and to be able to load XML files with old profiles the setter must still be there.
Parameters:
  flag -



setDriverName
public void setDriverName(java.lang.String driverName)(Code)



setDriverclass
public void setDriverclass(String aDriverclass)(Code)



setEmptyStringIsNull
public void setEmptyStringIsNull(boolean flag)(Code)
Define how empty strings (Strings with length == 0) are treated. If this is set to true, then they are treated as a NULL value, else an empty string is sent to the database during update and insert.
See Also:   ConnectionProfile.setIncludeNullInInsert(boolean)



setGroup
public void setGroup(String g)(Code)



setIdleScript
public void setIdleScript(String script)(Code)



setIdleTime
public void setIdleTime(long time)(Code)



setIgnoreDropErrors
public void setIgnoreDropErrors(boolean aFlag)(Code)



setIncludeNullInInsert
public void setIncludeNullInInsert(boolean flag)(Code)



setInfoDisplayColor
public void setInfoDisplayColor(Color c)(Code)



setInputPassword
public void setInputPassword(String aPassword)(Code)



setName
public void setName(String aName)(Code)



setNew
public void setNew()(Code)



setPassword
public void setPassword(String aPwd)(Code)
Sets the current password. If the password is not already encrypted, it will be encrypted
See Also:   ConnectionProfile.getPassword()
See Also:   workbench.util.WbCipher.encryptString(String)



setPostConnectScript
public void setPostConnectScript(String script)(Code)



setPreDisconnectScript
public void setPreDisconnectScript(String script)(Code)



setRemoveComments
public void setRemoveComments(boolean flag)(Code)
Define how comments inside SQL statements are handled. If this is set to true, then any comment (single line comments with -- or multi-line comments using /* are removed from the statement before sending it to the database.
See Also:   workbench.sql.DefaultStatementRunner.runStatement(Stringintint)



setRollbackBeforeDisconnect
public void setRollbackBeforeDisconnect(boolean flag)(Code)



setStoreExplorerSchema
public void setStoreExplorerSchema(boolean value)(Code)



setStorePassword
public void setStorePassword(boolean aFlag)(Code)



setTrimCharData
public void setTrimCharData(boolean flag)(Code)



setUrl
public void setUrl(String aUrl)(Code)



setUseSeparateConnectionPerTab
public void setUseSeparateConnectionPerTab(boolean aFlag)(Code)



setUseSeperateConnectionPerTab
public void setUseSeperateConnectionPerTab(boolean aFlag)(Code)
ConnectionProfile.setUseSeparateConnectionPerTab(boolean)



setUsername
public void setUsername(java.lang.String aUsername)(Code)



setWorkspaceFile
public void setWorkspaceFile(String aWorkspaceFile)(Code)



toString
public String toString()(Code)
Returns the name of the Profile



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.