org.modeshape.jdbc

## Class JdbcJcrValueFactory

- java.lang.Object
- - org.modeshape.jdbc.JdbcJcrValueFactory

-     public final class JdbcJcrValueFactory
      extends Object

  A factory class which creates `Value` instances from arbitrary objects (avoiding the dependency on the real `ValueFactory` implementations from other modules).

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected static SimpleDateFormat` | `ISO8601`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static Value` | `createValue(Object value)` Creates a new `Value` instance to be used by the JDBC driver.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### ISO8601

          protected static final SimpleDateFormat ISO8601

  - ### Method Detail

    - #### createValue

          public static Value createValue(Object value)

      Creates a new `Value` instance to be used by the JDBC driver.
      Parameters:
        `value` - an actual value which will be wrapped by the JCR value; may be null
      Returns:
        either a `Value` instance or `null` if the given argument is `null` or is the string `NULL`

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.