Java Doc for SQLUtils.java in  » IDE-Netbeans » etl.project » org » netbeans » modules » sql » framework » common » 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 » IDE Netbeans » etl.project » org.netbeans.modules.sql.framework.common.jdbc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.sql.framework.common.jdbc.SQLUtils

SQLUtils
public class SQLUtils (Code)
Utility class supplying lookup and conversion methods for SQL-related tasks.
author:
   Sudhendra Seshachala
author:
   Girish Patil
version:
   $Revision$


Field Summary
final public static  intJDBCSQL_TYPE_UNDEFINED
    
final static  StringLOG_CATEGORY
    
final public static  intVARCHAR_UNQUOTED
    
final public static  StringVARCHAR_UNQUOTED_STR
    


Method Summary
public static  longconvertFromIso8601(String isoDateTime)
    
public static  StringcreatePreparedStatement(String rawSql, Map attrMap, List<String> paramList)
     Create a SQL String to be used with java.sql.PreparedStatement by substituting symbols beginning "$" with "?".
public static  StringcreatePreparedStatement(String rawSql, List symbols, List<String> orderedSymbols)
     Create a SQL String to be used with java.sql.PreparedStatement by substituting symbols beginning "$" with "?".
public static  GregorianCalendargetCalendar(String isodate)
    
public static  intgetResultantDataType(int dataType1, int dataType2)
     Gets datatype resulting from the combination of the given datatypes.
public static  MapgetRuntimeInputNameValueMap(Map attribMap)
    
public static  intgetStdJdbcType(String dataType)
     Gets JDBC int type, if any, corresponding to the given SQL datatype string.
public static  StringgetStdSqlType(int dataType)
     Gets SQL datatype string, if any, corresponding to the given JDBC int value.
public static  List<String>getStdSqlTypes()
     Gets List of Strings representing standard SQL datatypes.
public static  ListgetSupportedCastTypes()
    
public static  intgetSupportedDBType(String dbName)
    
public static  StringgetSupportedDBType(int dbType)
    
public static  SetgetSupportedDBTypes()
     Get List of supported database types.
public static  ListgetSupportedDateParts()
    
public static  ListgetSupportedFormatTypes()
    
public static  ListgetSupportedIntervalTypes()
    
public static  ListgetSupportedLiteralTypes()
    
public static  booleanisBinary(int jdbcType)
    
public static  booleanisNumeric(int jdbcType)
    
public static  booleanisPrecisionRequired(int jdbcType)
    
public static  booleanisScaleRequired(int type)
    
public static synchronized  booleanisStdJdbcType(int jdbcType)
    
public static  StringmakeStringOracleSafe(String value)
     Make a data string oracle "safe" by escaping single quote marks which are used to start and end strings.
Parameters:
  value - to be made oracle String safe.
public static  voidpopulatePreparedStatement(PreparedStatement ps, Map attrMap, List paramList)
    
public static  voidsetAttributeValue(PreparedStatement ps, int index, int jdbcType, Object valueObj)
    

Field Detail
JDBCSQL_TYPE_UNDEFINED
final public static int JDBCSQL_TYPE_UNDEFINED(Code)
Undefined jdbc type



LOG_CATEGORY
final static String LOG_CATEGORY(Code)



VARCHAR_UNQUOTED
final public static int VARCHAR_UNQUOTED(Code)



VARCHAR_UNQUOTED_STR
final public static String VARCHAR_UNQUOTED_STR(Code)





Method Detail
convertFromIso8601
public static long convertFromIso8601(String isoDateTime)(Code)
convertFromIso8601
Parameters:
  isoDateTime - - ISO datetime a long value



createPreparedStatement
public static String createPreparedStatement(String rawSql, Map attrMap, List<String> paramList)(Code)
Create a SQL String to be used with java.sql.PreparedStatement by substituting symbols beginning "$" with "?". Binding variable order is preserved.
Parameters:
  rawSql -
Parameters:
  attrMap - map of RuntimeAttribute attribute name and RuntimeAttribute.
Parameters:
  paramList - preparedStatement string



createPreparedStatement
public static String createPreparedStatement(String rawSql, List symbols, List<String> orderedSymbols)(Code)
Create a SQL String to be used with java.sql.PreparedStatement by substituting symbols beginning "$" with "?". Binding variable order is preserved.
Parameters:
  rawSql -
Parameters:
  symbols - list of Source column names and runtime input (prefixed $).
Parameters:
  paramList - ordered list of above appearing in the statement preparedStatement string with binding parameter (?) for each occurence of the symbols.



getCalendar
public static GregorianCalendar getCalendar(String isodate)(Code)
returns a Gregorian Calendar of given iso date
Parameters:
  isodate - date in YYYY-MM-DDThh:mm:ss.sTZD format GregorianCalendar



getResultantDataType
public static int getResultantDataType(int dataType1, int dataType2)(Code)
Gets datatype resulting from the combination of the given datatypes. When two expressions that have different data types are combined by an operator: The data type of the resulting value is determined by applying the rules of data type precedence to the data types of the input expressions.
Parameters:
  dataType1 - first datatype to evaluate
Parameters:
  dataType2 - second datatype to evaluate resulting datatype



getRuntimeInputNameValueMap
public static Map getRuntimeInputNameValueMap(Map attribMap)(Code)



getStdJdbcType
public static int getStdJdbcType(String dataType) throws IllegalArgumentException(Code)
Gets JDBC int type, if any, corresponding to the given SQL datatype string.
Parameters:
  dataType - SQL datatype whose equivalent JDBC int type is sought java.sql.Types value equivalent to dataType
exception:
  IllegalArgumentException - if dataType is empty, null, or does notcorrespond to a valid value of java.sql.Types



getStdSqlType
public static String getStdSqlType(int dataType) throws IllegalArgumentException(Code)
Gets SQL datatype string, if any, corresponding to the given JDBC int value.
Parameters:
  dataType - SQL datatype whose corresopnding JDBC int type is sought SQL datatype string corresponding to dataType
exception:
  IllegalArgumentException - if dataType does not correspond to a known SQLdatatype string



getStdSqlTypes
public static List<String> getStdSqlTypes()(Code)
Gets List of Strings representing standard SQL datatypes. List of standard SQL datatypes.



getSupportedCastTypes
public static List getSupportedCastTypes()(Code)



getSupportedDBType
public static int getSupportedDBType(String dbName)(Code)
getSupportedDBTypes
Parameters:
  dbName - - dbName int



getSupportedDBType
public static String getSupportedDBType(int dbType)(Code)



getSupportedDBTypes
public static Set getSupportedDBTypes()(Code)
Get List of supported database types. List of Strings representing supported database types



getSupportedDateParts
public static List getSupportedDateParts()(Code)



getSupportedFormatTypes
public static List getSupportedFormatTypes()(Code)



getSupportedIntervalTypes
public static List getSupportedIntervalTypes()(Code)



getSupportedLiteralTypes
public static List getSupportedLiteralTypes()(Code)
getSupportedLiteralTypes List



isBinary
public static boolean isBinary(int jdbcType)(Code)



isNumeric
public static boolean isNumeric(int jdbcType)(Code)



isPrecisionRequired
public static boolean isPrecisionRequired(int jdbcType)(Code)



isScaleRequired
public static boolean isScaleRequired(int type)(Code)



isStdJdbcType
public static synchronized boolean isStdJdbcType(int jdbcType)(Code)
Gets the stdJdbcType attribute of the Database class
Parameters:
  jdbcType - instance of Types The stdJdbcType value



makeStringOracleSafe
public static String makeStringOracleSafe(String value)(Code)
Make a data string oracle "safe" by escaping single quote marks which are used to start and end strings.
Parameters:
  value - to be made oracle String safe. String which is Oracle safe



populatePreparedStatement
public static void populatePreparedStatement(PreparedStatement ps, Map attrMap, List paramList) throws BaseException(Code)



setAttributeValue
public static void setAttributeValue(PreparedStatement ps, int index, int jdbcType, Object valueObj) throws BaseException(Code)



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)

ww__w.j___av__a___2__s_._c_o___m___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.