Java Doc for DITypeInfo.java in  » Database-DBMS » hsql » org » hsqldb » 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 » hsql » org.hsqldb 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.hsqldb.DITypeInfo

DITypeInfo
final class DITypeInfo (Code)
Provides information intrinsic to each standard data type known to HSQLDB. This includes all types for which standard type codes are known at the time of writing and thus includes types that may not yet be supported as table or procedure columns.


author:
   boucherb@users
version:
   1.8.0
since:
   1.7.2



Field Summary
final static  intcolumnNoNulls
    
final static  intcolumnNullable
    
 booleanlocale_set
    
final static  inttypePredBasic
    
final static  inttypePredChar
    
final static  inttypePredNone
    
final static  inttypeSearchable
    

Constructor Summary
 DITypeInfo()
     Creates a new DITypeInfo object having the default Locale.

Method Summary
 IntegergetCharOctLen()
     Retrieves the maximum Integer.MAX_VALUE bounded length, in bytes, for character types.
 LonggetCharOctLenAct()
     Retrieves the maximum Long.MAX_VALUE bounded length, in bytes, for character types.
 StringgetColStClsName()
     Retrieves the fully-qualified name of the Java class whose instances are manufactured by HSQLDB to store table column values in memory.
 StringgetCreateParams()
     Retrieves a character sequence representing a CSV list, in DDL declaraion order, of the create parameters for the type.
 StringgetCstMapClsName()
     Retrieves the fully-qualified name of the HSQLDB-provided java.sql interface implementation class whose instances would be manufactured by HSQLDB to retrieve column values of this type, if the the type does not have a standard Java mapping.
 IntegergetDataType()
     Retrieves the data type, as an Integer.
 IntegergetDataTypeSub()
     Retrieves the data subtype, as an Integer.
 IntegergetDefaultScale()
     Retrieves the implied or single permitted scale for exact numeric types, when no scale is declared or no scale declaration is permitted.
 IntegergetIntervalPrecision()
     Retrieves null (not implemented).
 StringgetLiteralPrefix()
     Retrieves the character(s) prefixing a literal of this type.
 StringgetLiteralSuffix()
     Retrieves the character(s) terminating a literal of this type.
 StringgetLocalName()
     Retrieves a localized representation of the type's name, for human consumption only.
 intgetMaxDisplaySize()
     Retrieves the maximum length that a String representation of the type may have.
 IntegergetMaxScale()
     Retrieves the maximum Short.MAX_VALUE bounded scale supported for the type.
 IntegergetMaxScaleAct()
     Retrieves the maximum Integer.MAX_VALUE bounded scale supported for the type.
 IntegergetMinScale()
     Retrieves the minumum Short.MIN_VALUE bounded scale supported for the type.
 IntegergetMinScaleAct()
     Retrieves the minumum Integer.MIN_VALUE bounded scale supported for the type.
 IntegergetNullability()
     Retrieves the DatabaseMetaData default nullability code for the type.
 IntegergetNumPrecRadix()
     Retrieves the number base which is to be used to interpret the value reported by getPrecision().
 IntegergetPrecision()
     Retrieves the maximum Integer.MAX_VALUE bounded length or precision for the type.
 LonggetPrecisionAct()
     Retrieves the maximum Long.MAX_VALUE bounded length or precision for the type.
 StringgetRemarks()
     Retrieves the localized remarks (if any) on the type.
 IntegergetSearchability()
     Retrieves the DatabaseMetaData searchability code for the type.
 IntegergetSqlDataType()
     Retrieves the SQL CLI data type code for the type.
 IntegergetSqlDateTimeSub()
     Retrieves the SQL CLI datetime subcode for the type.
 StringgetStdMapClsName()
     Retrieve the fully qualified name of the recommended standard Java primitive, class or java.sql interface mapping for the type.
 intgetTypeCode()
     Retrieves the data type as an int.
 StringgetTypeName()
     Retrieves the canonical data type name HSQLDB associates with the type.
 intgetTypeSub()
     Retrieves the HSQLDB data subtype as an int.
 BooleanisAutoIncrement()
     Retrieves whether the type can be an IDENTITY type.
 BooleanisCaseSensitive()
     Retrieves whether the type is case-sensitive in collations and comparisons.
 BooleanisColStClsSupported()
     Retrieves whether, under the current release, class path and hosting JVM, HSQLDB supports storing this type in table columns.
 BooleanisFixedPrecisionScale()
     Retrieves whether values of this type have a fixed precision and scale.
 BooleanisStdMapClsSupported()
     Retrieve whether the fully qualified name reported by getStdMapClsName() is supported as a jdbcResultSet.getXXX return type under the current HSQLDB release, class path and hosting JVM.
 BooleanisSupportedAsPCol()
     Retrieves whether, under the current release, class path and hosting JVM, HSQLDB supports passing or receiving this type as the value of a procedure column.
 BooleanisSupportedAsTCol()
     Retrieves whether, under the current release, class path and hosting JVM, HSQLDB supports this as the type of a table column.
 BooleanisUnsignedAttribute()
     Retrieves whether values of this type are unsigned.
 voidsetLocale(Locale l)
     Assigns the Locale object used to retrieve this object's resource bundle dependent values.
 voidsetTypeCode(int type)
     Assigns the SQL data type code on which this object is to report.
 voidsetTypeSub(int typeSub)
     Assigns the HSQLDB data subtype code on which this object is to report.

Field Detail
columnNoNulls
final static int columnNoNulls(Code)



columnNullable
final static int columnNullable(Code)



locale_set
boolean locale_set(Code)



typePredBasic
final static int typePredBasic(Code)



typePredChar
final static int typePredChar(Code)



typePredNone
final static int typePredNone(Code)



typeSearchable
final static int typeSearchable(Code)




Constructor Detail
DITypeInfo
DITypeInfo()(Code)
Creates a new DITypeInfo object having the default Locale.




Method Detail
getCharOctLen
Integer getCharOctLen()(Code)
Retrieves the maximum Integer.MAX_VALUE bounded length, in bytes, for character types.

the maximum Integer.MAX_VALUE bounded length, inbytes, for character types




getCharOctLenAct
Long getCharOctLenAct()(Code)
Retrieves the maximum Long.MAX_VALUE bounded length, in bytes, for character types.

the maximum Long.MAX_VALUE bounded length, inbytes, for character types




getColStClsName
String getColStClsName()(Code)
Retrieves the fully-qualified name of the Java class whose instances are manufactured by HSQLDB to store table column values in memory.

This is also typically the fully-qualified name of the Java class whose instances are manufactured by HSQLDB in response to jdbcResultSet.getObject(int).

the fully-qualified name of the Java class whoseinstances are manufactured by HSQLDB to storetable column values in memory




getCreateParams
String getCreateParams()(Code)
Retrieves a character sequence representing a CSV list, in DDL declaraion order, of the create parameters for the type.

a character sequence representing a CSVlist, in DDL declaraion order, of the createparameters for the type.




getCstMapClsName
String getCstMapClsName()(Code)
Retrieves the fully-qualified name of the HSQLDB-provided java.sql interface implementation class whose instances would be manufactured by HSQLDB to retrieve column values of this type, if the the type does not have a standard Java mapping.

This value is simply the expected class name, regardless of whether HSQLDB, the specific HSQLDB distribution instance or the hosting JVM actually provide or support such implementations. That is, as of a specific release, HSQLDB may not yet provide such an implementation or may not automatically map to it or may not support it as a table column type, the version of java.sql may not define the interface to implement and the HSQLDB jar may not contain the implementation classes, even if they are defined in the corresponding release and build options and are supported under the hosting JVM's java.sql version.

the fully-qualified name of the HSQLDB-provided java.sqlinterface implementation class whose instances wouldbe manufactured by HSQLDB to retrieve column values ofthis type, given that the type does not have a standard Javamapping and regardless of whether a class with the indicatedname is actually implemented or available on the class path




getDataType
Integer getDataType()(Code)
Retrieves the data type, as an Integer.

the data type, as an Integer.




getDataTypeSub
Integer getDataTypeSub()(Code)
Retrieves the data subtype, as an Integer.

the data subtype, as an Integer




getDefaultScale
Integer getDefaultScale()(Code)
Retrieves the implied or single permitted scale for exact numeric types, when no scale is declared or no scale declaration is permitted.

the implied or single permitted scale for exact numerictypes, when no scale is declared or no scale declarationis permitted




getIntervalPrecision
Integer getIntervalPrecision()(Code)
Retrieves null (not implemented).

null (not implemented)




getLiteralPrefix
String getLiteralPrefix()(Code)
Retrieves the character(s) prefixing a literal of this type.

the character(s) prefixing a literal of this type.




getLiteralSuffix
String getLiteralSuffix()(Code)
Retrieves the character(s) terminating a literal of this type.

the character(s) terminating a literal of this type




getLocalName
String getLocalName()(Code)
Retrieves a localized representation of the type's name, for human consumption only.

a localized representation of the type's name




getMaxDisplaySize
int getMaxDisplaySize()(Code)
Retrieves the maximum length that a String representation of the type may have.

The calculation follows these rules:

  1. Long character and datetime types:

    The maximum length/precision, repectively.

  2. CHAR and VARCHAR types:

    The value of the system property hsqldb.max_xxxchar_display_size or the magic value 32766 (0x7FFE) (tested usable/accepted by most tools and compatible with assumptions made by java.io read/write UTF) when the system property is not defined or is not accessible, due to security constraints.

  3. Number types:

    The max precision, plus the length of the negation character (1), plus (if applicable) the maximum number of characters that may occupy the exponent character sequence.

  4. BOOLEAN/BIT types:

    The length of the character sequence "false" (5), the longer of the two boolean value String representations.

  5. All remaining types:

    The result of whatever calculation must be performed to determine the maximum length of the type's String representation. If the maximum display size is unknown, unknowable or inapplicable, then zero is returned.

the maximum length that a String representation ofthe type may have, or zero (0) if unknown or unknowable



getMaxScale
Integer getMaxScale()(Code)
Retrieves the maximum Short.MAX_VALUE bounded scale supported for the type.

the maximum Short.MAX_VALUE bounded scale supportedfor the type




getMaxScaleAct
Integer getMaxScaleAct()(Code)
Retrieves the maximum Integer.MAX_VALUE bounded scale supported for the type.

the maximum Integer.MAX_VALUE bounded scale supportedfor the type




getMinScale
Integer getMinScale()(Code)
Retrieves the minumum Short.MIN_VALUE bounded scale supported for the type.

the minumum Short.MIN_VALUE bounded scalesupported for the type




getMinScaleAct
Integer getMinScaleAct()(Code)
Retrieves the minumum Integer.MIN_VALUE bounded scale supported for the type.

the minumum Integer.MIN_VALUE bounded scale supportedfor the type




getNullability
Integer getNullability()(Code)
Retrieves the DatabaseMetaData default nullability code for the type.

the DatabaseMetaData nullability code for the type.




getNumPrecRadix
Integer getNumPrecRadix()(Code)
Retrieves the number base which is to be used to interpret the value reported by getPrecision().

the number base which is to be used to interpret thevalue reported by getPrecision()




getPrecision
Integer getPrecision()(Code)
Retrieves the maximum Integer.MAX_VALUE bounded length or precision for the type.

the maximum Integer.MAX_VALUE bounded length orprecision for the type




getPrecisionAct
Long getPrecisionAct()(Code)
Retrieves the maximum Long.MAX_VALUE bounded length or precision for the type.

the maximum Long.MAX_VALUE bounded length orprecision for the type




getRemarks
String getRemarks()(Code)
Retrieves the localized remarks (if any) on the type.

the localized remarks on the type.




getSearchability
Integer getSearchability()(Code)
Retrieves the DatabaseMetaData searchability code for the type.

the DatabaseMetaData searchability code for the type




getSqlDataType
Integer getSqlDataType()(Code)
Retrieves the SQL CLI data type code for the type.

the SQL CLI data type code for the type




getSqlDateTimeSub
Integer getSqlDateTimeSub()(Code)
Retrieves the SQL CLI datetime subcode for the type.

the SQL CLI datetime subcode for the type




getStdMapClsName
String getStdMapClsName()(Code)
Retrieve the fully qualified name of the recommended standard Java primitive, class or java.sql interface mapping for the type.

the fully qualified name of the recommended standard Javaprimitive, class or java.sql interface mapping forthe type




getTypeCode
int getTypeCode()(Code)
Retrieves the data type as an int.

the data type as an int




getTypeName
String getTypeName()(Code)
Retrieves the canonical data type name HSQLDB associates with the type.

This typically matches the designated JDBC name, with one or two exceptions.

the canonical data type name HSQLDB associates with the type




getTypeSub
int getTypeSub()(Code)
Retrieves the HSQLDB data subtype as an int.

the HSQLDB data subtype as an int




isAutoIncrement
Boolean isAutoIncrement()(Code)
Retrieves whether the type can be an IDENTITY type.

whether the type can be an IDENTITY type.




isCaseSensitive
Boolean isCaseSensitive()(Code)
Retrieves whether the type is case-sensitive in collations and comparisons.

whether the type is case-sensitive in collations andcomparisons.




isColStClsSupported
Boolean isColStClsSupported()(Code)
Retrieves whether, under the current release, class path and hosting JVM, HSQLDB supports storing this type in table columns.

This value also typically represents whether HSQLDB supports retrieving values of this type in the columns of ResultSets. whether, under the current release, class pathand hosting JVM, HSQLDB supports storing thistype in table columns




isFixedPrecisionScale
Boolean isFixedPrecisionScale()(Code)
Retrieves whether values of this type have a fixed precision and scale.

whether values of this type have a fixedprecision and scale.




isStdMapClsSupported
Boolean isStdMapClsSupported()(Code)
Retrieve whether the fully qualified name reported by getStdMapClsName() is supported as a jdbcResultSet.getXXX return type under the current HSQLDB release, class path and hosting JVM.

whether the fully qualified name reported by getStdMapClsName()is supported as a jdbcResultSet.getXXX return type under the currentHSQLDB release, class path and hosting JVM.




isSupportedAsPCol
Boolean isSupportedAsPCol()(Code)
Retrieves whether, under the current release, class path and hosting JVM, HSQLDB supports passing or receiving this type as the value of a procedure column.

whether, under the current release, class path andhosting JVM, HSQLDB supports passing or receivingthis type as the value of a procedure column.




isSupportedAsTCol
Boolean isSupportedAsTCol()(Code)
Retrieves whether, under the current release, class path and hosting JVM, HSQLDB supports this as the type of a table column.

whether, under the current release, class pathand hosting JVM, HSQLDB supports this typeas the values of a table column




isUnsignedAttribute
Boolean isUnsignedAttribute()(Code)
Retrieves whether values of this type are unsigned.

whether values of this type are unsigned




setLocale
void setLocale(Locale l)(Code)
Assigns the Locale object used to retrieve this object's resource bundle dependent values.


Parameters:
  l - the Locale object used to retrieve this object's resourcebundle dependent values




setTypeCode
void setTypeCode(int type)(Code)
Assigns the SQL data type code on which this object is to report.


Parameters:
  type - the SQL data type code on which this object is to report




setTypeSub
void setTypeSub(int typeSub)(Code)
Assigns the HSQLDB data subtype code on which this object is to report.


Parameters:
  typeSub - the HSQLDB data subtype code on which this objectis to report




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.