📄 prod_view_searchtestclient1.java~1~
字号:
System.out.println("Error in getModel(): " + ERROR_NULL_REMOTE); return returnValue; } long startTime = 0; if (logging) { log("Calling getModel()"); startTime = System.currentTimeMillis(); } try { returnValue = prod_view_searchRemoteObject.getModel(); if (logging) { long endTime = System.currentTimeMillis(); log("Succeeded: getModel()"); log("Execution time: " + (endTime - startTime) + " ms."); } } catch(Exception e) { if (logging) { log("Failed: getModel()"); } e.printStackTrace(); } if (logging) { log("Return value from getModel(): " + returnValue + "."); } return returnValue; } public String getUnit() { String returnValue = ""; if (prod_view_searchRemoteObject == null) { System.out.println("Error in getUnit(): " + ERROR_NULL_REMOTE); return returnValue; } long startTime = 0; if (logging) { log("Calling getUnit()"); startTime = System.currentTimeMillis(); } try { returnValue = prod_view_searchRemoteObject.getUnit(); if (logging) { long endTime = System.currentTimeMillis(); log("Succeeded: getUnit()"); log("Execution time: " + (endTime - startTime) + " ms."); } } catch(Exception e) { if (logging) { log("Failed: getUnit()"); } e.printStackTrace(); } if (logging) { log("Return value from getUnit(): " + returnValue + "."); } return returnValue; } public String getRemark() { String returnValue = ""; if (prod_view_searchRemoteObject == null) { System.out.println("Error in getRemark(): " + ERROR_NULL_REMOTE); return returnValue; } long startTime = 0; if (logging) { log("Calling getRemark()"); startTime = System.currentTimeMillis(); } try { returnValue = prod_view_searchRemoteObject.getRemark(); if (logging) { long endTime = System.currentTimeMillis(); log("Succeeded: getRemark()"); log("Execution time: " + (endTime - startTime) + " ms."); } } catch(Exception e) { if (logging) { log("Failed: getRemark()"); } e.printStackTrace(); } if (logging) { log("Return value from getRemark(): " + returnValue + "."); } return returnValue; } public float getTax() { float returnValue = 0f; if (prod_view_searchRemoteObject == null) { System.out.println("Error in getTax(): " + ERROR_NULL_REMOTE); return returnValue; } long startTime = 0; if (logging) { log("Calling getTax()"); startTime = System.currentTimeMillis(); } try { returnValue = prod_view_searchRemoteObject.getTax(); if (logging) { long endTime = System.currentTimeMillis(); log("Succeeded: getTax()"); log("Execution time: " + (endTime - startTime) + " ms."); } } catch(Exception e) { if (logging) { log("Failed: getTax()"); } e.printStackTrace(); } if (logging) { log("Return value from getTax(): " + returnValue + "."); } return returnValue; } public int getAmount() { int returnValue = 0; if (prod_view_searchRemoteObject == null) { System.out.println("Error in getAmount(): " + ERROR_NULL_REMOTE); return returnValue; } long startTime = 0; if (logging) { log("Calling getAmount()"); startTime = System.currentTimeMillis(); } try { returnValue = prod_view_searchRemoteObject.getAmount(); if (logging) { long endTime = System.currentTimeMillis(); log("Succeeded: getAmount()"); log("Execution time: " + (endTime - startTime) + " ms."); } } catch(Exception e) { if (logging) { log("Failed: getAmount()"); } e.printStackTrace(); } if (logging) { log("Return value from getAmount(): " + returnValue + "."); } return returnValue; } public int getMaxlow() { int returnValue = 0; if (prod_view_searchRemoteObject == null) { System.out.println("Error in getMaxlow(): " + ERROR_NULL_REMOTE); return returnValue; } long startTime = 0; if (logging) { log("Calling getMaxlow()"); startTime = System.currentTimeMillis(); } try { returnValue = prod_view_searchRemoteObject.getMaxlow(); if (logging) { long endTime = System.currentTimeMillis(); log("Succeeded: getMaxlow()"); log("Execution time: " + (endTime - startTime) + " ms."); } } catch(Exception e) { if (logging) { log("Failed: getMaxlow()"); } e.printStackTrace(); } if (logging) { log("Return value from getMaxlow(): " + returnValue + "."); } return returnValue; } public float getBprice() { float returnValue = 0f; if (prod_view_searchRemoteObject == null) { System.out.println("Error in getBprice(): " + ERROR_NULL_REMOTE); return returnValue; } long startTime = 0; if (logging) { log("Calling getBprice()"); startTime = System.currentTimeMillis(); } try { returnValue = prod_view_searchRemoteObject.getBprice(); if (logging) { long endTime = System.currentTimeMillis(); log("Succeeded: getBprice()"); log("Execution time: " + (endTime - startTime) + " ms."); } } catch(Exception e) { if (logging) { log("Failed: getBprice()"); } e.printStackTrace(); } if (logging) { log("Return value from getBprice(): " + returnValue + "."); } return returnValue; } public String getSprice() { String returnValue = ""; if (prod_view_searchRemoteObject == null) { System.out.println("Error in getSprice(): " + ERROR_NULL_REMOTE); return returnValue; } long startTime = 0; if (logging) { log("Calling getSprice()"); startTime = System.currentTimeMillis(); } try { returnValue = prod_view_searchRemoteObject.getSprice(); if (logging) { long endTime = System.currentTimeMillis(); log("Succeeded: getSprice()"); log("Execution time: " + (endTime - startTime) + " ms."); } } catch(Exception e) { if (logging) { log("Failed: getSprice()"); } e.printStackTrace(); } if (logging) { log("Return value from getSprice(): " + returnValue + "."); } return returnValue; } public String getState() { String returnValue = ""; if (prod_view_searchRemoteObject == null) { System.out.println("Error in getState(): " + ERROR_NULL_REMOTE); return returnValue; } long startTime = 0; if (logging) { log("Calling getState()"); startTime = System.currentTimeMillis(); } try { returnValue = prod_view_searchRemoteObject.getState(); if (logging) { long endTime = System.currentTimeMillis(); log("Succeeded: getState()"); log("Execution time: " + (endTime - startTime) + " ms."); } } catch(Exception e) { if (logging) { log("Failed: getState()"); } e.printStackTrace(); } if (logging) { log("Return value from getState(): " + returnValue + "."); } return returnValue; } public String getDepositary() { String returnValue = ""; if (prod_view_searchRemoteObject == null) { System.out.println("Error in getDepositary(): " + ERROR_NULL_REMOTE); return returnValue; } long startTime = 0; if (logging) { log("Calling getDepositary()"); startTime = System.currentTimeMillis(); } try { returnValue = prod_view_searchRemoteObject.getDepositary(); if (logging) { long endTime = System.currentTimeMillis(); log("Succeeded: getDepositary()"); log("Execution time: " + (endTime - startTime) + " ms."); } } catch(Exception e) { if (logging) { log("Failed: getDepositary()"); } e.printStackTrace(); } if (logging) { log("Return value from getDepositary(): " + returnValue + "."); } return returnValue; } public Image getImage() { Image returnValue = null; if (prod_view_searchRemoteObject == null) { System.out.println("Error in getImage(): " + ERROR_NULL_REMOTE); return returnValue; } long startTime = 0; if (logging) { log("Calling getImage()"); startTime = System.currentTimeMillis(); } try { returnValue = prod_view_searchRemoteObject.getImage(); if (logging) { long endTime = System.currentTimeMillis(); log("Succeeded: getImage()"); log("Execution time: " + (endTime - startTime) + " ms."); } } catch(Exception e) { if (logging) { log("Failed: getImage()"); } e.printStackTrace(); } if (logging) { log("Return value from getImage(): " + returnValue + "."); } return returnValue; } //---------------------------------------------------------------------------- // Utility Methods //---------------------------------------------------------------------------- private void log(String message) { if (message == null) { System.out.println("-- null"); return ; } if (message.length() > MAX_OUTPUT_LINE_LENGTH) { System.out.println("-- " + message.substring(0, MAX_OUTPUT_LINE_LENGTH) + " ..."); } else { System.out.println("-- " + message); } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -