@Override public Function getFunction(String functionName) { int i = functionName.lastIndexOf('.'); String namespace = functionName.substring(0, i); String simpleFunctionName = functionName.substring(i + 1); Schema schema = schemas.get(namespace); if (schema == null) { throw new IllegalArgumentException("Could not find schema with namespace: " + namespace); } Function function = schema.getFunction(simpleFunctionName); if (function == null) { throw new IllegalArgumentException("Could not find function: " + simpleFunctionName + " in schema with namespace: " + namespace); } return function; }
@Override public Function getFunction(String functionName) { int i = functionName.lastIndexOf('.'); String namespace = functionName.substring(0, i); String simpleFunctionName = functionName.substring(i + 1); Schema schema = schemas.get(namespace); if (schema == null) { throw new IllegalArgumentException("Could not find schema with namespace: " + namespace); } Function function = schema.getFunction(simpleFunctionName); if (function == null) { throw new IllegalArgumentException("Could not find function: " + simpleFunctionName + " in schema with namespace: " + namespace); } return function; }
public static Function getAndCheckFunction(EntityDataModel entityDataModel, String functionName) { int namespaceLastIndex = functionName.lastIndexOf('.'); String namespace = functionName.substring(0, namespaceLastIndex); String simpleFunctionName = functionName.substring(namespaceLastIndex + 1); Schema schema = entityDataModel.getSchema(namespace); if (schema == null) { throw new ODataSystemException("Could not find schema in entity data model with namespace: " + namespace); } Function function = schema.getFunction(simpleFunctionName); if (function == null) { throw new ODataSystemException("Function not found in entity data model: " + functionName); } return function; }
public static Function getAndCheckFunction(EntityDataModel entityDataModel, String functionName) { int namespaceLastIndex = functionName.lastIndexOf('.'); String namespace = functionName.substring(0, namespaceLastIndex); String simpleFunctionName = functionName.substring(namespaceLastIndex + 1); Schema schema = entityDataModel.getSchema(namespace); if (schema == null) { throw new ODataSystemException("Could not find schema in entity data model with namespace: " + namespace); } Function function = schema.getFunction(simpleFunctionName); if (function == null) { throw new ODataSystemException("Function not found in entity data model: " + functionName); } return function; }
throw new IllegalArgumentException("Could not find schema with namespace: " + namespace); Function function = schema.getFunction(simpleFunctionName); Operation functionOperation = (Operation) initializeFunctionObject(function); fillOperationParameters(functionOperation,
throw new IllegalArgumentException("Could not find schema with namespace: " + namespace); Function function = schema.getFunction(simpleFunctionName); Operation functionOperation = (Operation) initializeFunctionObject(function); fillOperationParameters(functionOperation,