Java Doc for ValueFactory.java in  » 6.0-JDK-Modules » jsr-283 » javax » jcr » 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 » 6.0 JDK Modules » jsr 283 » javax.jcr 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.jcr.ValueFactory

ValueFactory
public interface ValueFactory (Code)
The ValueFactory object provides methods for the creation Value objects that can then be used to set properties.




Method Summary
public  BinarycreateBinary(InputStream stream)
     Returns a Binary object with a value consisting of the content of the specified InputStream.
public  ValuecreateValue(String value)
     Returns a Value object of PropertyType.STRING with the specified value.
public  ValuecreateValue(String value, int type)
     Returns a Value object of the PropertyType specified by type with the specified value. A ValueFormatException is thrown if the specified value cannot be converted to the specifed type.
Parameters:
  value - a String
Parameters:
  type - one of the constants defined in PropertyType.
public  ValuecreateValue(long value)
     Returns a Value object of PropertyType.LONG with the specified value.
public  ValuecreateValue(double value)
     Returns a Value object of PropertyType.DOUBLE with the specified value.
public  ValuecreateValue(BigDecimal value)
     Returns a Value object of PropertyType.DECIMAL with the specified value.
public  ValuecreateValue(boolean value)
     Returns a Value object of PropertyType.BOOLEAN with the specified value.
public  ValuecreateValue(Calendar value)
     Returns a Value object of PropertyType.DATE with the specified value.
public  ValuecreateValue(InputStream value)
     Returns a Value object of PropertyType.BINARY with a value consisting of the content of the specified InputStream.
public  ValuecreateValue(Binary value)
     Returns a Value object of PropertyType.BINARY with a value consisting of the content of the specified Binary.
public  ValuecreateValue(Node value)
     Returns a Value object of PropertyType.REFERENCE that holds the identifier of the specified Node.



Method Detail
createBinary
public Binary createBinary(InputStream stream) throws RepositoryException(Code)
Returns a Binary object with a value consisting of the content of the specified InputStream.

The passed InputStream is closed before this method returns either normally or because of an exception.

Throws a RepositoryException if an error occurs.
Parameters:
  stream - an InputStream a Binary
throws:
  RepositoryException - if an error occurs.
since:
   JCR 2.0




createValue
public Value createValue(String value)(Code)
Returns a Value object of PropertyType.STRING with the specified value.
Parameters:
  value - a String a Value of PropertyType.STRING



createValue
public Value createValue(String value, int type) throws ValueFormatException(Code)
Returns a Value object of the PropertyType specified by type with the specified value. A ValueFormatException is thrown if the specified value cannot be converted to the specifed type.
Parameters:
  value - a String
Parameters:
  type - one of the constants defined in PropertyType. a Value of PropertyType type.
throws:
  ValueFormatException - if the specified value cannotbe converted to the specified type.



createValue
public Value createValue(long value)(Code)
Returns a Value object of PropertyType.LONG with the specified value.
Parameters:
  value - a long a Value of PropertyType.LONG



createValue
public Value createValue(double value)(Code)
Returns a Value object of PropertyType.DOUBLE with the specified value.
Parameters:
  value - a double a Value of PropertyType.DOUBLE



createValue
public Value createValue(BigDecimal value)(Code)
Returns a Value object of PropertyType.DECIMAL with the specified value.
Parameters:
  value - a double a Value of PropertyType.DECIMAL
since:
   JCR 2.0



createValue
public Value createValue(boolean value)(Code)
Returns a Value object of PropertyType.BOOLEAN with the specified value.
Parameters:
  value - a boolean a Value of PropertyType.BOOLEAN



createValue
public Value createValue(Calendar value)(Code)
Returns a Value object of PropertyType.DATE with the specified value.
Parameters:
  value - a Calendar a Value of PropertyType.DATE



createValue
public Value createValue(InputStream value) throws RepositoryException(Code)
Returns a Value object of PropertyType.BINARY with a value consisting of the content of the specified InputStream.

The passed InputStream is closed before this method returns either normally or because of an exception.

Throws a RepositoryException if an error occurs. ValueFactory.createValue(Binary)
Parameters:
  value - an InputStream a Value of PropertyType.BINARY
throws:
  RepositoryException - if an error occurs.




createValue
public Value createValue(Binary value)(Code)
Returns a Value object of PropertyType.BINARY with a value consisting of the content of the specified Binary.
Parameters:
  value - a Binary a Value of PropertyType.BINARY
since:
   JCR 2.0



createValue
public Value createValue(Node value) throws RepositoryException(Code)
Returns a Value object of PropertyType.REFERENCE that holds the identifier of the specified Node. This Value object can then be used to set a property that will be a reference to that Node.

A RepositoryException is thrown if the specified Node is not referenceable, the current Session is no longer active, or another error occurs.
Parameters:
  value - a Node a Value of PropertyType.REFERENCE
throws:
  RepositoryException - if the specified Nodeis not referencable, the current Session is no longer active, or anothererror occurs.




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