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


org.axiondb.DataType

All known Subclasses:   org.axiondb.types.VarBinaryType,  org.axiondb.types.BaseDataType,  org.axiondb.types.BigDecimalType,  org.axiondb.types.CharacterType,  org.axiondb.types.CharacterVaryingType,
DataType
public interface DataType extends Comparator,Serializable(Code)
The type of a field (column) that can be stored in a Table .

Responsible for DataType.accepts testing that a value is assignable to fields of this type, for DataType.convert convertingObject Objects to this type, and for DataType.read reading values from and DataType.write writing values to a stream.
version:
   $Revision: 1.14 $ $Date: 2005/05/02 22:17:47 $
author:
   Rodney Waldhoff
author:
   Rob Oxspring
author:
   Chuck Burdick


Inner Class :public static interface NonFixedPrecision extends DataType
Inner Class :public static interface ExactNumeric extends NonFixedPrecision
Inner Class :public interface BinaryRepresentation extends DataType



Method Summary
 booleanaccepts(Object value)
     Return true if a field of my type can be assigned the given non- null value , false otherwise.
 Objectconvert(Object value)
     Converts an DataType.accepts acceptable value to one of the appropriate type.
 intgetColumnDisplaySize()
     Value returned by ResultSetMetaData.getColumnDisplaySize for this data type.
 intgetJdbcType()
     Returns the JDBC java.sql.Types type code most closely matching this type.
 StringgetLiteralPrefix()
    
 StringgetLiteralSuffix()
    
 intgetNullableCode()
    
 intgetPrecision()
     Value returned by ResultSetMetaData.getPrecision for this data type.
 intgetPrecisionRadix()
     Indicates radix used to compute maximum number of significant digits for this datatype, as returned by DataType.getPrecision .
 StringgetPreferredValueClassName()
     Returns the "normal" type returned by DataType.convert .
 intgetScale()
     Value returned by ResultSetMetaData.getScale for this data type.
 shortgetSearchableCode()
     Code indicating how much WHERE ...
 booleanisCaseSensitive()
    
 booleanisCurrency()
    
 booleanisUnsigned()
    
 DataTypemakeNewInstance()
     Creates a new instance of this DataType implementation.
 Objectread(DataInput in)
     Instantiate an object of my type from the given DataInput .
 Objectsuccessor(Object value)
     Returns the successor for the given value.
 booleansupportsSuccessor()
     Returns true if the DataType.successor method is supported, false otherwise.
 BigDecimaltoBigDecimal(Object value)
     Convert the given non- null value to a BigDecimal, or throw a AxionException .
 BigIntegertoBigInteger(Object value)
     Convert the given non- null value to a BigInteger, or throw a AxionException .
 BlobtoBlob(Object value)
     Convert the given non- null value to a Blob , or throw a AxionException .
 booleantoBoolean(Object value)
     Convert the given non- null value to a boolean, or throw a SQLException .
 bytetoByte(Object value)
     Convert the given non- null value to a byte, or throw a SQLException .
 byte[]toByteArray(Object value)
     Convert the given non- null value to a byte[], or throw a AxionException .
 ClobtoClob(Object value)
     Convert the given non- null value to a Clob , or throw a AxionException .
 DatetoDate(Object value)
     Convert the given non- null value to a java.sql.Date , or throw a SQLException .
 doubletoDouble(Object value)
     Convert the given non- null value to a double, or throw a AxionException .
 floattoFloat(Object value)
     Convert the given non- null value to a float, or throw a AxionException .
 inttoInt(Object value)
     Convert the given non- null value to a int, or throw a AxionException .
 longtoLong(Object value)
     Convert the given non- null value to a long, or throw a AxionException .
 shorttoShort(Object value)
     Convert the given non- null value to a short, or throw a AxionException .
 StringtoString(Object value)
     Convert the given non- null value to a String , or throw a AxionException .
 TimetoTime(Object value)
     Convert the given non- null value to a Time , or throw a AxionException .
 TimestamptoTimestamp(Object value)
     Convert the given non- null value to a Timestamp , or throw a AxionException .
 URLtoURL(Object value)
     Convert the given non- null value to a URL , or throw a AxionException .
 voidwrite(Object value, DataOutput out)
     Write an object of my type to the given DataOutput .



Method Detail
accepts
boolean accepts(Object value)(Code)
Return true if a field of my type can be assigned the given non- null value , false otherwise.
Parameters:
  value - non- null value



convert
Object convert(Object value) throws AxionException(Code)
Converts an DataType.accepts acceptable value to one of the appropriate type.
throws:
  AxionException -



getColumnDisplaySize
int getColumnDisplaySize()(Code)
Value returned by ResultSetMetaData.getColumnDisplaySize for this data type.
See Also:   java.sql.ResultSetMetaData.getColumnDisplaySize



getJdbcType
int getJdbcType()(Code)
Returns the JDBC java.sql.Types type code most closely matching this type.



getLiteralPrefix
String getLiteralPrefix()(Code)
Prefix used to quote a literal to delimit value for this type when in SQL syntax or result display
See Also:   java.sql.DatabaseMetaData.getTypeInfo



getLiteralSuffix
String getLiteralSuffix()(Code)
Suffix used to quote a literal to delimit value for this type when in SQL syntax or result display
See Also:   java.sql.DatabaseMetaData.getTypeInfo



getNullableCode
int getNullableCode()(Code)
Code indicating that type does not accept, does accept, or does not disclose acceptance of null values
See Also:   java.sql.DatabaseMetaData.getTypeInfo



getPrecision
int getPrecision()(Code)
Value returned by ResultSetMetaData.getPrecision for this data type.
See Also:   java.sql.ResultSetMetaData.getPrecision



getPrecisionRadix
int getPrecisionRadix()(Code)
Indicates radix used to compute maximum number of significant digits for this datatype, as returned by DataType.getPrecision . radix used to compute value of DataType.getPrecision, typically 2 or 10.



getPreferredValueClassName
String getPreferredValueClassName()(Code)
Returns the "normal" type returned by DataType.convert . Returns java.lang.Object if unknown.
See Also:   java.sql.ResultSetMetaData.getColumnClassName



getScale
int getScale()(Code)
Value returned by ResultSetMetaData.getScale for this data type.
See Also:   java.sql.ResultSetMetaData.getScale



getSearchableCode
short getSearchableCode()(Code)
Code indicating how much WHERE ... LIKE support is available across a column of this type
See Also:   java.sql.DatabaseMetaData.getTypeInfo



isCaseSensitive
boolean isCaseSensitive()(Code)
For character and string-related types, indicates whether type acknowledges case when storing and retrieving values
See Also:   java.sql.DatabaseMetaData.getTypeInfo
See Also:   java.sql.ResultSetMetaData.isCaseSensitive



isCurrency
boolean isCurrency()(Code)

See Also:   java.sql.ResultSetMetaData.isCurrency



isUnsigned
boolean isUnsigned()(Code)
For numeric types, indicates whether type stores only non-negative (>= 0) values
See Also:   java.sql.DatabaseMetaData.getTypeInfo



makeNewInstance
DataType makeNewInstance()(Code)
Creates a new instance of this DataType implementation. new instance of this DataType implementation.



read
Object read(DataInput in) throws IOException(Code)
Instantiate an object of my type from the given DataInput . The next sequence of bytes to be read from the DataInput will have been written by DataType.write .



successor
Object successor(Object value) throws UnsupportedOperationException(Code)
Returns the successor for the given value. For example, the successor of the integer 1 is 2.



supportsSuccessor
boolean supportsSuccessor()(Code)
Returns true if the DataType.successor method is supported, false otherwise.



toBigDecimal
BigDecimal toBigDecimal(Object value) throws AxionException(Code)
Convert the given non- null value to a BigDecimal, or throw a AxionException .
See Also:   java.sql.ResultSet.getBigDecimal



toBigInteger
BigInteger toBigInteger(Object value) throws AxionException(Code)
Convert the given non- null value to a BigInteger, or throw a AxionException .
See Also:   java.sql.ResultSet.getBigInteger



toBlob
Blob toBlob(Object value) throws AxionException(Code)
Convert the given non- null value to a Blob , or throw a AxionException .
See Also:   java.sql.ResultSet.getBlob



toBoolean
boolean toBoolean(Object value) throws AxionException(Code)
Convert the given non- null value to a boolean, or throw a SQLException .
See Also:   java.sql.ResultSet.getBoolean



toByte
byte toByte(Object value) throws AxionException(Code)
Convert the given non- null value to a byte, or throw a SQLException .
See Also:   java.sql.ResultSet.getByte



toByteArray
byte[] toByteArray(Object value) throws AxionException(Code)
Convert the given non- null value to a byte[], or throw a AxionException .
See Also:   java.sql.ResultSet.getBytes



toClob
Clob toClob(Object value) throws AxionException(Code)
Convert the given non- null value to a Clob , or throw a AxionException .
See Also:   java.sql.ResultSet.getClob



toDate
Date toDate(Object value) throws AxionException(Code)
Convert the given non- null value to a java.sql.Date , or throw a SQLException .
See Also:   java.sql.ResultSet.getDate



toDouble
double toDouble(Object value) throws AxionException(Code)
Convert the given non- null value to a double, or throw a AxionException .
See Also:   java.sql.ResultSet.getDouble



toFloat
float toFloat(Object value) throws AxionException(Code)
Convert the given non- null value to a float, or throw a AxionException .
See Also:   java.sql.ResultSet.getFloat



toInt
int toInt(Object value) throws AxionException(Code)
Convert the given non- null value to a int, or throw a AxionException .
See Also:   java.sql.ResultSet.getInt



toLong
long toLong(Object value) throws AxionException(Code)
Convert the given non- null value to a long, or throw a AxionException .
See Also:   java.sql.ResultSet.getLong



toShort
short toShort(Object value) throws AxionException(Code)
Convert the given non- null value to a short, or throw a AxionException .
See Also:   java.sql.ResultSet.getShort



toString
String toString(Object value) throws AxionException(Code)
Convert the given non- null value to a String , or throw a AxionException .
See Also:   java.sql.ResultSet.getString



toTime
Time toTime(Object value) throws AxionException(Code)
Convert the given non- null value to a Time , or throw a AxionException .
See Also:   java.sql.ResultSet.getTime



toTimestamp
Timestamp toTimestamp(Object value) throws AxionException(Code)
Convert the given non- null value to a Timestamp , or throw a AxionException .
See Also:   java.sql.ResultSet.getTimestamp



toURL
URL toURL(Object value) throws AxionException(Code)
Convert the given non- null value to a URL , or throw a AxionException .
See Also:   java.sql.ResultSet.getURL



write
void write(Object value, DataOutput out) throws IOException(Code)
Write an object of my type to the given DataOutput .
Parameters:
  value - the value to write, which must be DataType.accepts acceptableto thisDataType



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