protected ModelCreateExecutor newCreateExecutor(ModelExecutorContext context) { return mef.newCreateExecutor(context); }
/** * Creates a new record of model and returns the id. * * @param request the request bean contains properties of model. * @param id the id of model, pass null if use auto generated id. * @return the id of new record. */ protected Object createRecordAndReturnId(Object request, Object id, Map<String, Object> extraProperties) { ModelCreateExecutor executor = mef.newCreateExecutor(mec); return executor.createOne(request, id, extraProperties).id; }