Java Doc for Type.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » amber » type » 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 » EJB Server resin 3.1.5 » resin » com.caucho.amber.type 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.amber.type.Type

All known Subclasses:   com.caucho.amber.type.ObjectType,  com.caucho.amber.type.PrimitiveByteArrayType,  com.caucho.amber.type.YesNoType,  com.caucho.amber.type.BlobType,  com.caucho.amber.type.ArrayType,  com.caucho.amber.type.ByteType,  com.caucho.amber.type.IntegerType,  com.caucho.amber.type.SqlDateType,  com.caucho.amber.type.StringType,  com.caucho.amber.type.GeneratorTableType,  com.caucho.amber.type.LongType,  com.caucho.amber.type.SqlTimeType,  com.caucho.amber.type.FloatType,  com.caucho.amber.type.SqlTimestampType,  com.caucho.amber.type.UtilDateType,  com.caucho.amber.type.BigDecimalType,  com.caucho.amber.type.Primitive,  com.caucho.amber.type.CalendarType,  com.caucho.amber.type.ClassType,  com.caucho.amber.type.PrimitiveType,  com.caucho.amber.type.DoubleType,  com.caucho.amber.type.PrimitiveCharArrayType,  com.caucho.amber.type.BooleanType,  com.caucho.amber.type.ShortType,  com.caucho.amber.type.TrueFalseType,  com.caucho.amber.type.EnumType,  com.caucho.amber.type.AbstractEnhancedType,  com.caucho.amber.type.ClobType,  com.caucho.amber.type.CharacterType,  com.caucho.amber.type.BigIntegerType,
Type
abstract public class Type (Code)
The type of a property.




Method Summary
public  EntityItemfindItem(AmberConnection aConn, ResultSet rs, int index)
    
public  StringfromObject(String value)
     Converts from an object.
public  StringgenerateCastFromObject(String value)
     Converts the value.
public  StringgenerateCreateColumnSQL(AmberPersistenceUnit manager, int length, int precision, int scale)
     Generates the type for the table.
public  StringgenerateEquals(String a, String b)
     Returns a boolean equality.
public  StringgenerateIncrementVersion(String value)
     Generates the increment version.
public  StringgenerateIsNull(String value)
     Returns a test for null.
public  intgenerateLoad(JavaWriter out, String rs, String indexVar, int index)
     Generates a string to load the type as a property.
public  intgenerateLoad(JavaWriter out, String rs, String indexVar, int index, JClass targetType)
     Generates a string to load the type as a property.
public  intgenerateLoadForeign(JavaWriter out, String rs, String indexVar, int index)
     Generates a string to load the type as a property.
public  StringgenerateNull()
     Returns a test for null.
public  voidgenerateSet(JavaWriter out, String pstmt, String index, String value)
     Generates a string to set the type as a property.
public  voidgenerateSetNull(JavaWriter out, String pstmt, String index)
     Generates a string to set the property.
public  voidgenerateSetVersion(JavaWriter out, String pstmt, String index, String value)
     Generates a string to set the type as a property.
public  intgetColumnCount()
     Returns the number of columns the type takes up.
public  TypegetForeignType()
     Returns the type as a foreign key.
public  StringgetForeignTypeName()
     Returns the java class of the type as a foreign key.
public  StringgetJavaTypeName()
     Returns the java type.
abstract public  StringgetName()
     Returns the type name.
public  ObjectgetObject(ResultSet rs, int index)
     Gets the value.
public  ObjectgetObject(AmberConnection aConn, ResultSet rs, int index)
     Gets the value.
public  voidinit()
     Initialize the type.
public  booleanisAssignableTo(JClass javaType)
     Returns true if the value is assignable to the Java type.
public  booleanisAutoIncrement()
     Returns true for an auto-increment type.
public  booleanisBoolean()
     Returns true for a boolean type.
public  booleanisNumeric()
     Returns true for a numeric type.
public  voidsetParameter(PreparedStatement pstmt, int index, Object value)
     Sets the value.
public  StringtoObject(String value)
     Converts to an object.
public  ObjecttoObject(long value)
     Converts to an object.



Method Detail
findItem
public EntityItem findItem(AmberConnection aConn, ResultSet rs, int index) throws SQLException(Code)
Finds the object



fromObject
public String fromObject(String value)(Code)
Converts from an object.



generateCastFromObject
public String generateCastFromObject(String value)(Code)
Converts the value.



generateCreateColumnSQL
public String generateCreateColumnSQL(AmberPersistenceUnit manager, int length, int precision, int scale)(Code)
Generates the type for the table.



generateEquals
public String generateEquals(String a, String b)(Code)
Returns a boolean equality.



generateIncrementVersion
public String generateIncrementVersion(String value) throws IOException(Code)
Generates the increment version.



generateIsNull
public String generateIsNull(String value)(Code)
Returns a test for null.



generateLoad
public int generateLoad(JavaWriter out, String rs, String indexVar, int index) throws IOException(Code)
Generates a string to load the type as a property.



generateLoad
public int generateLoad(JavaWriter out, String rs, String indexVar, int index, JClass targetType) throws IOException(Code)
Generates a string to load the type as a property.



generateLoadForeign
public int generateLoadForeign(JavaWriter out, String rs, String indexVar, int index) throws IOException(Code)
Generates a string to load the type as a property.



generateNull
public String generateNull()(Code)
Returns a test for null.



generateSet
public void generateSet(JavaWriter out, String pstmt, String index, String value) throws IOException(Code)
Generates a string to set the type as a property.



generateSetNull
public void generateSetNull(JavaWriter out, String pstmt, String index) throws IOException(Code)
Generates a string to set the property.



generateSetVersion
public void generateSetVersion(JavaWriter out, String pstmt, String index, String value) throws IOException(Code)
Generates a string to set the type as a property.



getColumnCount
public int getColumnCount()(Code)
Returns the number of columns the type takes up.



getForeignType
public Type getForeignType()(Code)
Returns the type as a foreign key.



getForeignTypeName
public String getForeignTypeName()(Code)
Returns the java class of the type as a foreign key.



getJavaTypeName
public String getJavaTypeName()(Code)
Returns the java type.



getName
abstract public String getName()(Code)
Returns the type name.



getObject
public Object getObject(ResultSet rs, int index) throws SQLException(Code)
Gets the value.



getObject
public Object getObject(AmberConnection aConn, ResultSet rs, int index) throws SQLException(Code)
Gets the value.



init
public void init() throws ConfigException(Code)
Initialize the type.



isAssignableTo
public boolean isAssignableTo(JClass javaType)(Code)
Returns true if the value is assignable to the Java type.



isAutoIncrement
public boolean isAutoIncrement()(Code)
Returns true for an auto-increment type.



isBoolean
public boolean isBoolean()(Code)
Returns true for a boolean type.



isNumeric
public boolean isNumeric()(Code)
Returns true for a numeric type.



setParameter
public void setParameter(PreparedStatement pstmt, int index, Object value) throws SQLException(Code)
Sets the value.



toObject
public String toObject(String value)(Code)
Converts to an object.



toObject
public Object toObject(long value)(Code)
Converts to an object.



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.