@Override public String debug() { return mId + "; deps = " + Arrays.toString(cp); }
(e instanceof byte[]) ? toString( (byte[]) e) : (e instanceof short[]) ? toString( (short[]) e) : (e instanceof int[]) ? toString( (int[]) e) : (e instanceof long[]) ? toString( (long[]) e) : (e instanceof char[]) ? toString( (char[]) e) : (e instanceof boolean[]) ? toString( (boolean[]) e) : (e instanceof float[]) ? toString( (float[]) e) : (e instanceof double[]) ? toString( (double[]) e) : "");
(e instanceof byte[]) ? toString( (byte[]) e) : (e instanceof short[]) ? toString( (short[]) e) : (e instanceof int[]) ? toString( (int[]) e) : (e instanceof long[]) ? toString( (long[]) e) : (e instanceof char[]) ? toString( (char[]) e) : (e instanceof boolean[]) ? toString( (boolean[]) e) : (e instanceof float[]) ? toString( (float[]) e) : (e instanceof double[]) ? toString( (double[]) e) : "");
(e instanceof byte[]) ? toString( (byte[]) e) : (e instanceof short[]) ? toString( (short[]) e) : (e instanceof int[]) ? toString( (int[]) e) : (e instanceof long[]) ? toString( (long[]) e) : (e instanceof char[]) ? toString( (char[]) e) : (e instanceof boolean[]) ? toString( (boolean[]) e) : (e instanceof float[]) ? toString( (float[]) e) : (e instanceof double[]) ? toString( (double[]) e) : "");
jc.parse(args); } catch (ParameterException e) { logger.debug("Failed while parsing the args " + Arrays.toString(args), e); showHelp(jc.getParsedCommand()); return;
public static Map<String, Object> updateImageMethod(DispatchContext dctx, Map<String, ? extends Object> context) { Map<String, Object> result = new HashMap<>(); Delegator delegator = dctx.getDelegator(); //Locale locale = (Locale) context.get("locale"); String dataResourceId = (String) context.get("dataResourceId"); ByteBuffer byteBuffer = (ByteBuffer)context.get("imageData"); if (byteBuffer != null) { byte[] imageBytes = byteBuffer.array(); try { GenericValue imageDataResource = EntityQuery.use(delegator).from("ImageDataResource").where("dataResourceId", dataResourceId).queryOne(); if (Debug.infoOn()) { Debug.logInfo("imageDataResource(U):" + imageDataResource, module); Debug.logInfo("imageBytes(U):" + Arrays.toString(imageBytes), module); } if (imageDataResource == null) { return createImageMethod(dctx, context); } imageDataResource.setBytes("imageData", imageBytes); imageDataResource.store(); } catch (GenericEntityException e) { return ServiceUtil.returnError(e.getMessage()); } } return result; }
Debug.logInfo("in updateBinaryFileMethod, imageData:" + Arrays.toString(imageData), module);