Oracle Fusion Middleware
Java API Reference for Oracle PDK Java
11g Release 1 (11.1.1)
E10691-01

oracle.portal.provider.v2.preference
Interface PreferenceDataObject

All Known Subinterfaces:
PersonalizationObject
All Known Implementing Classes:
NameValuePersonalizationObject, NameValuePreferenceDataObject

public interface PreferenceDataObject

Interface for data objects stored in a PreferenceStore. Classes implementing this interface are expected to have a public zero argument constructor.


Method Summary
 java.lang.String getContentVersion()
          Gets the version String associated with the content of the PreferenceDataObject
 void read(java.io.InputStream is)
          Populates the PreferenceDataObject with content read from a persistent store
 void setContentVersion(java.lang.String version)
          Sets the version associated with the content of the PreferenceDataObject.
 void write(java.io.OutputStream os)
          Writes the content of the PreferenceDataObject to a persistent store
 

Method Detail

setContentVersion

void setContentVersion(java.lang.String version)
Sets the version associated with the content of the PreferenceDataObject. The version number is a String to allow you to define the structure of your version numbers.

Parameters:
version - version string to be associated with the content of the PreferenceDataObject

getContentVersion

java.lang.String getContentVersion()
Gets the version String associated with the content of the PreferenceDataObject

Returns:
the version String associated with the content of the PreferenceDataObject

read

void read(java.io.InputStream is)
          throws java.io.IOException
Populates the PreferenceDataObject with content read from a persistent store

Parameters:
is - InputStream from which content should be read
Throws:
java.io.IOException

write

void write(java.io.OutputStream os)
           throws java.io.IOException
Writes the content of the PreferenceDataObject to a persistent store

Parameters:
os - OutputStream to which content should be written
Throws:
java.io.IOException

Oracle Fusion Middleware
Java API Reference for Oracle PDK Java
11g Release 1 (11.1.1)
E10691-01

Copyright (c) 1999, 2009, Oracle and/or its affiliates. All rights reserved.