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).

- - ### 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`

- - ### 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.