|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal 11g Release 1 (11.1.1.9.0) E15995-08 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.wcps.property.BlobData
public class BlobData
Encapsulates a blob value.
| Constructor Summary | |
|---|---|
BlobData()Note: This is for JAXB. |
|
BlobData(byte[] value)Creates this with the given value an array of bytes. |
|
BlobData(java.lang.Object o)Creates this with the byte array after serializing the given o object. |
|
BlobData(java.io.Serializable s)Creates this with the byte array after serializing the given s object. |
|
BlobData(java.lang.String value)Creates this with bytes converted from the UTF-8 encoded string value. |
|
| Method Summary | ||
|---|---|---|
java.util.List<PropertyValue> |
asList(BlobData[] ts)Converts the given array to list. |
|
boolean |
equals(java.lang.Object o) |
|
|
getObject(java.lang.Class<T> type)Convenience method to convert the byte array value into an object of the given type. |
|
byte[] |
getValue()Returns the raw value as a byte array. |
|
int |
hashCode() |
|
void |
setValue(byte[] value)Uses the given byte array value as its raw value. |
|
java.io.Serializable |
unwrap()Unwraps this into correct type value. |
|
java.io.Serializable |
unwrap(java.util.List<? extends PropertyValue> values, boolean isMultiValue)Unwraps this into correct type values. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BlobData()
public BlobData(java.lang.String value)
value - a string value.public BlobData(byte[] value)
value an array of bytes.
value - an array of value.public BlobData(java.io.Serializable s)
s object.
s - a serializable object.public BlobData(java.lang.Object o)
o object.
o - a serializable object.| Method Detail |
|---|
public byte[] getValue()
getValue in interface PropertyValuepublic void setValue(byte[] value)
value as its raw value.value - the raw value for this.public java.io.Serializable unwrap()
PropertyValueunwrap in interface PropertyValueType enum values.public java.util.List<PropertyValue> asList(BlobData[] ts)
ts - an array of this.ts.
public java.io.Serializable unwrap(java.util.List<? extends PropertyValue> values,
boolean isMultiValue)
PropertyValueisMultiValue is true it will convert values into an array of values.unwrap in interface PropertyValuevalues - a list of property values.isMultiValue - if this is an array or not.public <T> T getObject(java.lang.Class<T> type)
type.T - type templatetype - a class.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal 11g Release 1 (11.1.1.9.0) E15995-08 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||