Java Doc for DynamicBean.java in  » Database-ORM » Persist » net » sf » persist » tests » framework » 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 ORM » Persist » net.sf.persist.tests.framework 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.sf.persist.tests.framework.DynamicBean

DynamicBean
public class DynamicBean (Code)
Set of helpers to build and manipulate beans at runtime.




Method Summary
public static  booleancompareBeans(Object o1, Object o2)
    
public static  booleancompareBeansFromDifferentClasses(Object o1, Object o2)
    
public static  booleancompareValues(Object v1, Object v2)
    
public static  ObjectconvertToType(Class cls, Object value)
     Try to convert the provided object to the provided class.
public static  ClasscreateBeanClass(BeanMap beanMap, boolean noTable)
    
public static  ObjectcreateInstance(Class cls, BeanMap beanMap, boolean useNulls)
    
public static  ObjectgetFieldValue(Object obj, String fieldName)
    
public static  booleanisNull(Class cls, Object obj)
    
public static  booleanrandomBoolean()
    
public static  byterandomByte(byte min, byte max)
    
public static  byte[]randomByteArray(int size)
    
public static  Byte[]randomByteObjArray(int size)
    
public static  charrandomChar()
    
public static  char[]randomCharArray(int size)
    
public static  Character[]randomCharObjArray(int size)
    
public static  doublerandomDouble(double min, double max)
    
public static  floatrandomFloat(float min, float max)
    
public static  intrandomInt(int min, int max)
    
public static  longrandomLong(long min, long max)
    
public static  shortrandomShort(short min, short max)
    
public static  StringrandomString(int size)
    
public static  longrandomTimestamp()
    
public static  byte[]readInputStream(InputStream is)
    
public static  StringreadReader(Reader r)
    
public static  StringtoString(Object obj)
    



Method Detail
compareBeans
public static boolean compareBeans(Object o1, Object o2)(Code)



compareBeansFromDifferentClasses
public static boolean compareBeansFromDifferentClasses(Object o1, Object o2)(Code)



compareValues
public static boolean compareValues(Object v1, Object v2)(Code)
Compare values trying to convert types if they are found to be compatible



convertToType
public static Object convertToType(Class cls, Object value)(Code)
Try to convert the provided object to the provided class. The following groups of types allow for conversion among their types: { String, char, Character, char[], Character[], Reader } { byte[], Byte[], InputStream } { boolean, Boolean } { byte, Byte, short, Short, int, Integer, long, Long, float, Float, double, Double, BigDecimal } { java.sql.Timestamp, java.sql.Date, java.sql.Time, java.util.Date }



createBeanClass
public static Class createBeanClass(BeanMap beanMap, boolean noTable)(Code)



createInstance
public static Object createInstance(Class cls, BeanMap beanMap, boolean useNulls)(Code)



getFieldValue
public static Object getFieldValue(Object obj, String fieldName)(Code)



isNull
public static boolean isNull(Class cls, Object obj)(Code)
Returns true if the field is a primitive number type (byte, short, int, etc.) and its value is zero, or if the field is an object and its value is null



randomBoolean
public static boolean randomBoolean()(Code)



randomByte
public static byte randomByte(byte min, byte max)(Code)



randomByteArray
public static byte[] randomByteArray(int size)(Code)



randomByteObjArray
public static Byte[] randomByteObjArray(int size)(Code)



randomChar
public static char randomChar()(Code)



randomCharArray
public static char[] randomCharArray(int size)(Code)



randomCharObjArray
public static Character[] randomCharObjArray(int size)(Code)



randomDouble
public static double randomDouble(double min, double max)(Code)



randomFloat
public static float randomFloat(float min, float max)(Code)



randomInt
public static int randomInt(int min, int max)(Code)



randomLong
public static long randomLong(long min, long max)(Code)



randomShort
public static short randomShort(short min, short max)(Code)



randomString
public static String randomString(int size)(Code)



randomTimestamp
public static long randomTimestamp()(Code)



readInputStream
public static byte[] readInputStream(InputStream is)(Code)



readReader
public static String readReader(Reader r)(Code)



toString
public static String toString(Object obj)(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)

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