OracleAS PDK for Java 10.1.2.0.2

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

public 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

public 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

public 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

public 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

OracleAS PDK for Java 10.1.2.0.2

Copyright (c) 2002, 2005 Oracle Corporation. All Rights Reserved.