Class BusinessDataServiceImpl
- java.lang.Object
-
- org.bonitasoft.engine.business.data.impl.BusinessDataServiceImpl
-
- All Implemented Interfaces:
BusinessDataService
public class BusinessDataServiceImpl extends java.lang.Object implements BusinessDataService
-
-
Constructor Summary
Constructors Constructor Description BusinessDataServiceImpl(BusinessDataRepository businessDataRepository, JsonBusinessDataSerializer jsonBusinessDataSerializer, BusinessDataModelRepository businessDataModelRepository, TypeConverterUtil typeConverterUtil, BusinessDataReloader businessDataReloader, CountQueryProvider countQueryProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectcallJavaOperation(java.lang.Object businessObject, java.lang.Object valueToSetObjectWith, java.lang.String methodName, java.lang.String parameterType)java.io.SerializablegetJsonChildEntity(java.lang.String entityClassName, java.lang.Long identifier, java.lang.String childFieldName, java.lang.String businessDataURIPattern)java.io.SerializablegetJsonEntities(java.lang.String entityClassName, java.util.List<java.lang.Long> identifiers, java.lang.String businessDataURIPattern)java.io.SerializablegetJsonEntity(java.lang.String entityClassName, java.lang.Long identifier, java.lang.String businessDataURIPattern)org.bonitasoft.engine.bpm.businessdata.BusinessDataQueryResultgetJsonQueryEntities(java.lang.String entityClassName, java.lang.String queryName, java.util.Map<java.lang.String,java.io.Serializable> parameters, java.lang.Integer startIndex, java.lang.Integer maxResults, java.lang.String businessDataURIPattern)protected voidinvokeJavaMethod(java.lang.Object objectToSet, java.lang.String methodName, java.lang.String parameterType, java.lang.Object valueToSet)booleanisBusinessData(java.lang.Object data)protected java.lang.Class<? extends org.bonitasoft.engine.bdm.Entity>loadClass(java.lang.String returnType)protected java.lang.Class<? extends java.io.Serializable>loadSerializableClass(java.lang.String className)
-
-
-
Constructor Detail
-
BusinessDataServiceImpl
public BusinessDataServiceImpl(BusinessDataRepository businessDataRepository, JsonBusinessDataSerializer jsonBusinessDataSerializer, BusinessDataModelRepository businessDataModelRepository, TypeConverterUtil typeConverterUtil, BusinessDataReloader businessDataReloader, CountQueryProvider countQueryProvider)
-
-
Method Detail
-
isBusinessData
public boolean isBusinessData(java.lang.Object data)
- Specified by:
isBusinessDatain interfaceBusinessDataService
-
callJavaOperation
public java.lang.Object callJavaOperation(java.lang.Object businessObject, java.lang.Object valueToSetObjectWith, java.lang.String methodName, java.lang.String parameterType) throws SBusinessDataNotFoundException, SBusinessDataRepositoryException- Specified by:
callJavaOperationin interfaceBusinessDataService- Throws:
SBusinessDataNotFoundExceptionSBusinessDataRepositoryException
-
invokeJavaMethod
protected void invokeJavaMethod(java.lang.Object objectToSet, java.lang.String methodName, java.lang.String parameterType, java.lang.Object valueToSet) throws java.lang.ClassNotFoundException, java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException- Throws:
java.lang.ClassNotFoundExceptionjava.lang.NoSuchMethodExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetException
-
getJsonEntity
public java.io.Serializable getJsonEntity(java.lang.String entityClassName, java.lang.Long identifier, java.lang.String businessDataURIPattern) throws SBusinessDataNotFoundException, SBusinessDataRepositoryException- Specified by:
getJsonEntityin interfaceBusinessDataService- Throws:
SBusinessDataNotFoundExceptionSBusinessDataRepositoryException
-
getJsonEntities
public java.io.Serializable getJsonEntities(java.lang.String entityClassName, java.util.List<java.lang.Long> identifiers, java.lang.String businessDataURIPattern) throws SBusinessDataRepositoryException- Specified by:
getJsonEntitiesin interfaceBusinessDataService- Throws:
SBusinessDataRepositoryException
-
getJsonChildEntity
public java.io.Serializable getJsonChildEntity(java.lang.String entityClassName, java.lang.Long identifier, java.lang.String childFieldName, java.lang.String businessDataURIPattern) throws SBusinessDataNotFoundException, SBusinessDataRepositoryException- Specified by:
getJsonChildEntityin interfaceBusinessDataService- Throws:
SBusinessDataNotFoundExceptionSBusinessDataRepositoryException
-
getJsonQueryEntities
public org.bonitasoft.engine.bpm.businessdata.BusinessDataQueryResult getJsonQueryEntities(java.lang.String entityClassName, java.lang.String queryName, java.util.Map<java.lang.String,java.io.Serializable> parameters, java.lang.Integer startIndex, java.lang.Integer maxResults, java.lang.String businessDataURIPattern) throws SBusinessDataRepositoryException- Specified by:
getJsonQueryEntitiesin interfaceBusinessDataService- Throws:
SBusinessDataRepositoryException
-
loadClass
protected java.lang.Class<? extends org.bonitasoft.engine.bdm.Entity> loadClass(java.lang.String returnType) throws SBusinessDataRepositoryException- Throws:
SBusinessDataRepositoryException
-
loadSerializableClass
protected java.lang.Class<? extends java.io.Serializable> loadSerializableClass(java.lang.String className) throws SBusinessDataRepositoryException- Throws:
SBusinessDataRepositoryException
-
-