|
Oracle Beehive Java Content Repository Java API Reference Release 1 (1.3) E11993-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface OracleValueFactory
The ValueFactory object provides methods for the creation Value objects that can then be used to set properties.
| Method Summary | |
|---|---|
javax.jcr.Value |
createValue(boolean value)Returns a Value object ofjavax.jcr.PropertyType#BOOLEAN with the specified value. |
javax.jcr.Value |
createValue(java.util.Calendar value)Returns a Value object ofjavax.jcr.PropertyType#DATE with the specified value. |
javax.jcr.Value |
createValue(double value)Returns a Value object ofjavax.jcr.PropertyType#DOUBLE with the specified value. |
javax.jcr.Value |
createValue(java.io.InputStream value)Returns a Value object of OraclePropertyType.BINARY with a value consisting of the content of the specified InputStream. |
javax.jcr.Value |
createValue(long value)Returns a Value object ofjavax.jcr.PropertyType#LONG with the specified value. |
javax.jcr.Value |
createValue(javax.jcr.Node value)Returns a Value object ofjavax.jcr.PropertyType#REFERENCE that holds the UUID of the specified Node. |
javax.jcr.Value |
createValue(java.lang.String value)Returns a Value object of javax.jcr.PropertyType#STRING with the specified value. |
javax.jcr.Value |
createValue(java.lang.String value, int type)Returns a Value object of the javax.jcr.PropertyType specified by type with the specified value. |
| Method Detail |
|---|
javax.jcr.Value createValue(java.lang.String value)
Value object of javax.jcr.PropertyType#STRING with the specified value.createValue in interface javax.jcr.ValueFactoryvalue - a StringValue of javax.jcr.PropertyType#STRING
javax.jcr.Value createValue(java.lang.String value,
int type)
throws javax.jcr.ValueFormatException
Value object of the javax.jcr.PropertyType specified by type with the specified value. A ValueFormatException is thrown if the specified value cannot be converted to the specified type.createValue in interface javax.jcr.ValueFactoryvalue - a Stringtype - one of the constants defined in javax.jcr.PropertyType.Value of javax.jcr.PropertyType type.javax.jcr.ValueFormatException - if the specified value cannot be converted to the specified type.javax.jcr.Value createValue(long value)
Value object ofjavax.jcr.PropertyType#LONG with the specified value.createValue in interface javax.jcr.ValueFactoryvalue - a longValue of javax.jcr.PropertyType#LONGjavax.jcr.Value createValue(double value)
Value object ofjavax.jcr.PropertyType#DOUBLE with the specified value.createValue in interface javax.jcr.ValueFactoryvalue - a doubleValue ofjavax.jcr.PropertyType#DOUBLEjavax.jcr.Value createValue(boolean value)
Value object ofjavax.jcr.PropertyType#BOOLEAN with the specified value.createValue in interface javax.jcr.ValueFactoryvalue - a booleanValue ofjavax.jcr.PropertyType#BOOLEANjavax.jcr.Value createValue(java.util.Calendar value)
Value object ofjavax.jcr.PropertyType#DATE with the specified value.createValue in interface javax.jcr.ValueFactoryvalue - a CalendarValue ofjavax.jcr.PropertyType#DATEjavax.jcr.Value createValue(java.io.InputStream value)
Value object of OraclePropertyType.BINARY with a value consisting of the content of the specified InputStream.createValue in interface javax.jcr.ValueFactoryvalue - an InputStreamValue ofjavax.jcr.PropertyType#BINARY
javax.jcr.Value createValue(javax.jcr.Node value)
throws javax.jcr.RepositoryException
Value object ofjavax.jcr.PropertyType#REFERENCE that holds the UUID of the specified Node. This Value object can then be used to set a property that will be a reference to that Node.<p/> <p/> A RepositoryException is thrown if the specified Node is not referenceable, the current Session is no longer active, or another error occurs.createValue in interface javax.jcr.ValueFactoryvalue - a NodeValue ofjavax.jcr.PropertyType#REFERENCEjavax.jcr.RepositoryException - if the specified Node is not referenceable, the current Session is no longer active, or another error occurs.
|
Oracle Beehive Java Content Repository Java API Reference Release 1 (1.3) E11993-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||