Java Doc for DefaultProperties.java in  » Database-JDBC-Connection-Pool » jTDS » net » sourceforge » jtds » 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 JDBC Connection Pool » jTDS » net.sourceforge.jtds.jdbc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.sourceforge.jtds.jdbc.DefaultProperties

DefaultProperties
final public class DefaultProperties (Code)
Container for default property constants.

This class also provides static utility methods for Properties and Settings objects.

To add new properties to the jTDS driver, do the following:

  1. Add prop.foo and prop.desc.foo properties to Messages.properties.
  2. Add a static final default field to DefaultProperties .
  3. Update DefaultProperties.addDefaultProperties(java.util.Properties) to set the default.
  4. Update Driver.createChoicesMap() and DriverUnitTest.test_getPropertyInfo_Choices() if the property has a specific set of inputs, e.g., "true" and "false", or "1" and "2".
  5. Update Driver.createRequiredTrueMap() and DriverUnitTest.test_getPropertyInfo_Required() if the property is required.
  6. Add a new test to DefaultPropertiesTestLibrary for the new property.

author:
   David D. Kilzer
version:
   $Id: DefaultProperties.java,v 1.32 2007/08/22 18:22:04 bheineman Exp $


Field Summary
final public static  StringAPP_NAME
     Default appName property.
final public static  StringBATCH_SIZE_SQLSERVER
     Default batchSize property for SQL Server.
final public static  StringBATCH_SIZE_SYBASE
     Default batchSize property for Sybase.
final public static  StringBIND_ADDRESS
     Default bindAddress property.
final public static  StringBUFFER_DIR
     Default tmpDir property.
final public static  StringBUFFER_MAX_MEMORY
     Default bufferMaxMemory property.
final public static  StringBUFFER_MIN_PACKETS
     Default bufferMinPackets property.
final public static  StringCACHEMETA
     Default cacheMetaData property.
final public static  StringCHARSET
     Default charset property.
final public static  StringDATABASE_NAME
     Default databaseName property.
final public static  StringDOMAIN
     Default domain property.
final public static  StringINSTANCE
     Default instance property.
final public static  StringLANGUAGE
     Default language property.
final public static  StringLAST_UPDATE_COUNT
     Default lastUpdateCount property.
final public static  StringLOB_BUFFER_SIZE
     Default lobBufferSize property.
final public static  StringLOGFILE
     Default logfile property.
final public static  StringLOGIN_TIMEOUT
     Default loginTimeout property.
final public static  StringMAC_ADDRESS
     Default macAddress property.
final public static  StringMAX_STATEMENTS
     Default maxStatements property.
final public static  StringNAMED_PIPE
     Default namedPipe property.
final public static  StringNAMED_PIPE_PATH_SQLSERVER
     Default namedPipePath property for SQL Server.
final public static  StringNAMED_PIPE_PATH_SYBASE
     Default namedPipePath property for Sybase.
final public static  StringPACKET_SIZE_42
     Default packetSize property for TDS 4.2.
final public static  StringPACKET_SIZE_50
     Default packetSize property for TDS 5.0.
final public static  StringPACKET_SIZE_70_80
     Default packetSize property for TDS 7.0 and TDS 8.0.
final public static  StringPASSWORD
     Default password property.
final public static  StringPORT_NUMBER_SQLSERVER
     Default portNumber property for SQL Server.
final public static  StringPORT_NUMBER_SYBASE
     Default portNumber property for Sybase.
final public static  StringPREPARE_SQLSERVER
     Default prepareSql property for SQL Server.
final public static  StringPREPARE_SYBASE
     Default prepareSql property for Sybase.
final public static  StringPROG_NAME
     Default progName property.
final public static  StringSERVER_TYPE_SQLSERVER
     Default serverType property for SQL Server.
final public static  StringSERVER_TYPE_SYBASE
     Default serverType property for Sybase.
final public static  StringSOCKET_TIMEOUT
     Default sockeTimeout property.
final public static  StringSSL
     Default ssl property.
final public static  StringTCP_NODELAY
     Default tcpNoDelay property.
final public static  StringTDS_VERSION_42
     Default tds property for TDS 4.2.
final public static  StringTDS_VERSION_50
     Default tds property for TDS 5.0.
final public static  StringTDS_VERSION_70
     Default tds property for TDS 7.0.
final public static  StringTDS_VERSION_80
     Default tds property for TDS 8.0.
final public static  StringUSECURSORS
     Default useCursors property.
final public static  StringUSEJCIFS
     Default useJCIFS property.
final public static  StringUSELOBS
     Default useLOBs property.
final public static  StringUSER
     Default user property.
final public static  StringUSE_UNICODE
     Default sendStringParametersAsUnicode property.
final public static  StringWSID
     Default wsid property.
final public static  StringXAEMULATION
     Default XaEmulation property.


Method Summary
public static  PropertiesaddDefaultProperties(Properties props)
     Add default properties to the props properties object.
Parameters:
  props - The properties object.
public static  StringgetNamedPipePath(int serverType)
     Returns the default path for the named pipe for a given serverType.
public static  StringgetServerType(int serverType)
     Converts an integer server type to its string representation.
public static  IntegergetServerType(String serverType)
     Converts a string server type to its integer representation.
public static  StringgetServerTypeWithDefault(int serverType)
     Same as DefaultProperties.getServerType(int) , only it returns the default server type ("sqlserver") if serverType is 0.
public static  IntegergetTdsVersion(String tdsVersion)
     Converts a string TDS version to its integer representation.
Parameters:
  tdsVersion - The TDS version as a string.

Field Detail
APP_NAME
final public static String APP_NAME(Code)
Default appName property.



BATCH_SIZE_SQLSERVER
final public static String BATCH_SIZE_SQLSERVER(Code)
Default batchSize property for SQL Server.



BATCH_SIZE_SYBASE
final public static String BATCH_SIZE_SYBASE(Code)
Default batchSize property for Sybase.



BIND_ADDRESS
final public static String BIND_ADDRESS(Code)
Default bindAddress property.



BUFFER_DIR
final public static String BUFFER_DIR(Code)
Default tmpDir property.



BUFFER_MAX_MEMORY
final public static String BUFFER_MAX_MEMORY(Code)
Default bufferMaxMemory property.



BUFFER_MIN_PACKETS
final public static String BUFFER_MIN_PACKETS(Code)
Default bufferMinPackets property.



CACHEMETA
final public static String CACHEMETA(Code)
Default cacheMetaData property.



CHARSET
final public static String CHARSET(Code)
Default charset property.



DATABASE_NAME
final public static String DATABASE_NAME(Code)
Default databaseName property.



DOMAIN
final public static String DOMAIN(Code)
Default domain property.



INSTANCE
final public static String INSTANCE(Code)
Default instance property.



LANGUAGE
final public static String LANGUAGE(Code)
Default language property.



LAST_UPDATE_COUNT
final public static String LAST_UPDATE_COUNT(Code)
Default lastUpdateCount property.



LOB_BUFFER_SIZE
final public static String LOB_BUFFER_SIZE(Code)
Default lobBufferSize property.



LOGFILE
final public static String LOGFILE(Code)
Default logfile property.



LOGIN_TIMEOUT
final public static String LOGIN_TIMEOUT(Code)
Default loginTimeout property.



MAC_ADDRESS
final public static String MAC_ADDRESS(Code)
Default macAddress property.



MAX_STATEMENTS
final public static String MAX_STATEMENTS(Code)
Default maxStatements property.



NAMED_PIPE
final public static String NAMED_PIPE(Code)
Default namedPipe property.



NAMED_PIPE_PATH_SQLSERVER
final public static String NAMED_PIPE_PATH_SQLSERVER(Code)
Default namedPipePath property for SQL Server.



NAMED_PIPE_PATH_SYBASE
final public static String NAMED_PIPE_PATH_SYBASE(Code)
Default namedPipePath property for Sybase.



PACKET_SIZE_42
final public static String PACKET_SIZE_42(Code)
Default packetSize property for TDS 4.2.



PACKET_SIZE_50
final public static String PACKET_SIZE_50(Code)
Default packetSize property for TDS 5.0.



PACKET_SIZE_70_80
final public static String PACKET_SIZE_70_80(Code)
Default packetSize property for TDS 7.0 and TDS 8.0.



PASSWORD
final public static String PASSWORD(Code)
Default password property.



PORT_NUMBER_SQLSERVER
final public static String PORT_NUMBER_SQLSERVER(Code)
Default portNumber property for SQL Server.



PORT_NUMBER_SYBASE
final public static String PORT_NUMBER_SYBASE(Code)
Default portNumber property for Sybase.



PREPARE_SQLSERVER
final public static String PREPARE_SQLSERVER(Code)
Default prepareSql property for SQL Server.



PREPARE_SYBASE
final public static String PREPARE_SYBASE(Code)
Default prepareSql property for Sybase.



PROG_NAME
final public static String PROG_NAME(Code)
Default progName property.



SERVER_TYPE_SQLSERVER
final public static String SERVER_TYPE_SQLSERVER(Code)
Default serverType property for SQL Server.



SERVER_TYPE_SYBASE
final public static String SERVER_TYPE_SYBASE(Code)
Default serverType property for Sybase.



SOCKET_TIMEOUT
final public static String SOCKET_TIMEOUT(Code)
Default sockeTimeout property.



SSL
final public static String SSL(Code)
Default ssl property.



TCP_NODELAY
final public static String TCP_NODELAY(Code)
Default tcpNoDelay property.



TDS_VERSION_42
final public static String TDS_VERSION_42(Code)
Default tds property for TDS 4.2.



TDS_VERSION_50
final public static String TDS_VERSION_50(Code)
Default tds property for TDS 5.0.



TDS_VERSION_70
final public static String TDS_VERSION_70(Code)
Default tds property for TDS 7.0.



TDS_VERSION_80
final public static String TDS_VERSION_80(Code)
Default tds property for TDS 8.0.



USECURSORS
final public static String USECURSORS(Code)
Default useCursors property.



USEJCIFS
final public static String USEJCIFS(Code)
Default useJCIFS property.



USELOBS
final public static String USELOBS(Code)
Default useLOBs property.



USER
final public static String USER(Code)
Default user property.



USE_UNICODE
final public static String USE_UNICODE(Code)
Default sendStringParametersAsUnicode property.



WSID
final public static String WSID(Code)
Default wsid property.



XAEMULATION
final public static String XAEMULATION(Code)
Default XaEmulation property.





Method Detail
addDefaultProperties
public static Properties addDefaultProperties(Properties props)(Code)
Add default properties to the props properties object.
Parameters:
  props - The properties object. The updated props object, or nullif the serverType property is not set.



getNamedPipePath
public static String getNamedPipePath(int serverType)(Code)
Returns the default path for the named pipe for a given serverType.
Parameters:
  serverType - Driver.SQLSERVER or Driver.SYBASE or 0 (default) default named pipe path
throws:
  IllegalArgumentException - if an invalid serverType is given



getServerType
public static String getServerType(int serverType)(Code)
Converts an integer server type to its string representation.
Parameters:
  serverType - the server type as an int the server type as a string if known, or null if unknown



getServerType
public static Integer getServerType(String serverType)(Code)
Converts a string server type to its integer representation.
Parameters:
  serverType - the server type as a string the server type as an integer if known or null ifunknown



getServerTypeWithDefault
public static String getServerTypeWithDefault(int serverType)(Code)
Same as DefaultProperties.getServerType(int) , only it returns the default server type ("sqlserver") if serverType is 0.
Parameters:
  serverType - integer server type or 0 for default the server type as a string if known or "sqlserver"if unknown



getTdsVersion
public static Integer getTdsVersion(String tdsVersion)(Code)
Converts a string TDS version to its integer representation.
Parameters:
  tdsVersion - The TDS version as a string. The TDS version as an integer if known, or null if unknown.



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.