Package de.julielab.concepts.db.core
Class JavaMethodCallBase
- java.lang.Object
-
- de.julielab.concepts.db.core.FunctionCallBase
-
- de.julielab.concepts.db.core.JavaMethodCallBase
-
- All Implemented Interfaces:
de.julielab.jssf.commons.spi.ParameterExposing
- Direct Known Subclasses:
FileDatabaseMappingInserter,JavaClassFileDBExporter,JavaClassFileDBOperator
public abstract class JavaMethodCallBase extends FunctionCallBase
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.julielab.concepts.db.core.FunctionCallBase
FunctionCallBase.Parameter
-
-
Field Summary
-
Fields inherited from class de.julielab.concepts.db.core.FunctionCallBase
log
-
-
Constructor Summary
Constructors Constructor Description JavaMethodCallBase(org.slf4j.Logger log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T> TcallInstanceMethod(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> parameterConfiguration, org.neo4j.dbms.api.DatabaseManagementService dbms)Retrieves the class and method names via the configuration keys CONFKEY_CLASS_NAME and CONFKEY_METHOD_NAME from the configuration, respectively.voidexposeParameters(String basePath, org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> template)-
Methods inherited from class de.julielab.concepts.db.core.FunctionCallBase
parseParameters
-
-
-
-
Method Detail
-
callInstanceMethod
protected <T> T callInstanceMethod(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> parameterConfiguration, org.neo4j.dbms.api.DatabaseManagementService dbms) throws MethodCallException, IncompatibleActionHandlerConnectionExceptionRetrieves the class and method names via the configuration keys CONFKEY_CLASS_NAME and CONFKEY_METHOD_NAME from the configuration, respectively.- Type Parameters:
T- The return value of the called method.- Parameters:
parameterConfiguration- The subconfiguration immediately containing the parameters.dbms- The graph database to apply the method call on. The graph database must be the first argument of the method.- Returns:
- The return value of the called method.
- Throws:
MethodCallException- If any part of the processing of calling the method fails.IncompatibleActionHandlerConnectionException
-
exposeParameters
public void exposeParameters(String basePath, org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> template)
-
-