|
Oracle® Fusion Middleware Remote Intradoc Client (RIDC) Java API Reference 11g Release 1 (11.1.1) E17274-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.stellent.ridc.model.impl.DataBinderImpl
public class DataBinderImpl
Default databinder implementation.
| Constructor Summary | |
|---|---|
DataBinderImpl() |
|
| Method Summary | |
|---|---|
void |
addFile(java.lang.String name, java.io.File file)Add a file to this data binder. |
void |
addFile(java.lang.String name, TransferFile file)Add a file to this data binder |
void |
addOptionList(java.lang.String name, java.util.List<java.lang.String> values)Add an option list with the given names |
void |
addResultSet(java.lang.String name, DataResultSet resultSet)Add a result set with the given name |
boolean |
containsFiles()Check if there are files |
java.lang.String |
getFieldType(java.lang.String name)Retrieve the field type for a given property. |
java.util.Collection<java.lang.String> |
getFieldTypeNames()Retrieve all field names |
TransferFile |
getFile(java.lang.String name)Retrieve a file from this data binder |
java.util.Collection<java.lang.String> |
getFileNames()Retrieve all file names |
java.util.Map<java.lang.String,TransferFile> |
getFiles() |
java.lang.String |
getLocal(java.lang.String name)Shortcut for getLocalData().get(name) |
DataObject |
getLocalData()Retrieve the local data |
java.util.List<java.lang.String> |
getOptionList(java.lang.String name)Retrieve a specific option list by name |
java.util.Collection<java.lang.String> |
getOptionListNames()Retrieve all option list names |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getOptionLists() |
DataResultSet |
getResultSet(java.lang.String name)Retrieve the result set by name |
java.util.Collection<java.lang.String> |
getResultSetNames()Retrieve all result set names |
java.util.Map<java.lang.String,DataResultSet> |
getResultSets()Retrieve a map representation of the result sets, indexed by result set name. |
protected java.util.Map<java.lang.String,java.lang.String> |
loadFieldTypes()Load the internal field types by examining the blFieldTypes local data. |
void |
merge(DataBinder source)This will merge copies of all the data from the source binder into this binder, overwriting existing values and result sets, if they exist. |
void |
putLocal(java.lang.String name, java.lang.String value)Shortcut for getLocalData().put(name,value) |
void |
removeFieldType(java.lang.String name)Remove the field type mapping |
void |
removeFile(java.lang.String name)Remove a file |
void |
removeOptionList(java.lang.String name)Remove an option list |
void |
removeResultSet(java.lang.String name)Remove the result set |
protected void |
serializeFieldTypes()Serialize the field types into the blFieldTypes |
void |
setFieldType(java.lang.String name, java.lang.String type)Set a field type for this data binder |
void |
synchronizeData(DataFactory.Direction in)Called after the localdata is set to initialize the binder based on LocalData values (blFieldTypes, etc.) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataBinderImpl()
| Method Detail |
|---|
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getOptionLists()
public java.util.Map<java.lang.String,TransferFile> getFiles()
public void synchronizeData(DataFactory.Direction in)
in - true to sync local into fieldspublic DataObject getLocalData()
DataBindergetLocalData in interface DataBinderpublic java.lang.String getFieldType(java.lang.String name)
getFieldType in interface DataBindername - the property name
public void setFieldType(java.lang.String name,
java.lang.String type)
setFieldType in interface DataBindername - the field nametype - the typepublic java.util.Collection<java.lang.String> getFieldTypeNames()
DataBindergetFieldTypeNames in interface DataBinderpublic void removeFieldType(java.lang.String name)
removeFieldType in interface DataBindername - the property name to remove from the mappings tablepublic java.lang.String getLocal(java.lang.String name)
getLocalData().get(name)getLocal in interface DataBindername - the local property name
public void putLocal(java.lang.String name,
java.lang.String value)
getLocalData().put(name,value)putLocal in interface DataBindername - the local property namevalue - the local property valuepublic DataResultSet getResultSet(java.lang.String name)
getResultSet in interface DataBindername - the result set namepublic java.util.Map<java.lang.String,DataResultSet> getResultSets()
DataBinderDataBinder.addResultSet(String, DataResultSet) and DataBinder.removeResultSet(String) methods.getResultSets in interface DataBinderDataBinder.addResultSet(String, DataResultSet), DataBinder.removeResultSet(String), DataBinder.getResultSetNames()public void removeResultSet(java.lang.String name)
removeResultSet in interface DataBindername - the result set name to removepublic java.util.Collection<java.lang.String> getResultSetNames()
DataBindergetResultSetNames in interface DataBinder
public void addResultSet(java.lang.String name,
DataResultSet resultSet)
addResultSet in interface DataBindername - the result set nameresultSet - the result setpublic java.util.List<java.lang.String> getOptionList(java.lang.String name)
getOptionList in interface DataBindername - the list namepublic java.util.Collection<java.lang.String> getOptionListNames()
DataBindergetOptionListNames in interface DataBinder
public void addOptionList(java.lang.String name,
java.util.List<java.lang.String> values)
addOptionList in interface DataBindername - the option list namevalues - the valuespublic void removeOptionList(java.lang.String name)
removeOptionList in interface DataBindername - the option list namepublic java.util.Collection<java.lang.String> getFileNames()
DataBindergetFileNames in interface DataBinderpublic TransferFile getFile(java.lang.String name)
getFile in interface DataBindername - the file name
public void addFile(java.lang.String name,
java.io.File file)
throws java.io.IOException
addFile (name, new TransferStream (file));
addFile in interface DataBindername - the file namefile - the file objectjava.io.IOException - if the file cannot be readaddFile(String, oracle.stellent.ridc.model.TransferFile)
public void addFile(java.lang.String name,
TransferFile file)
addFile in interface DataBindername - the file namefile - the file streampublic void removeFile(java.lang.String name)
removeFile in interface DataBindername - the file namepublic boolean containsFiles()
DataBindercontainsFiles in interface DataBinderpublic void merge(DataBinder source)
merge in interface DataBindersource - the source databinderprotected java.util.Map<java.lang.String,java.lang.String> loadFieldTypes()
protected void serializeFieldTypes()
|
Oracle® Fusion Middleware Remote Intradoc Client (RIDC) Java API Reference 11g Release 1 (11.1.1) E17274-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||