Interface BeanProcessor<T>
-
- Type Parameters:
T
- type of java bean handled by the processor
public interface BeanProcessor<T>
A service that converts between iKnowBase Documents and java beans.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
load(ContentServicesClient client, DocumentReference documentReference)
Loads a document from the database, and returns as a java bean.DocumentReference
save(ContentServicesClient client, T bean)
Saves a java bean as an iKnowBase document
-
-
-
Method Detail
-
load
T load(ContentServicesClient client, DocumentReference documentReference)
Loads a document from the database, and returns as a java bean.- Parameters:
client
- the ContentServicesClientdocumentReference
- reference of the document to load- Returns:
- the loaded bean
-
save
DocumentReference save(ContentServicesClient client, T bean)
Saves a java bean as an iKnowBase document- Parameters:
client
- the ContentServicesClientbean
- bean to save- Returns:
- reference to the saved document
-
-