Monomer test

xiaoxiao2021-03-06  37

private final Connection getConnections () {String url = null; String user = null; String password = null; Connection conn = null; url = "jdbc: oracle: thin: @ 192.168.10.223: 1521: gcs"; user = "fsmain "" Password = "fsmain"; try {class.forname ("Oracle.jdbc.driver.Oracledriver); conn = drivermanager.getConnection (URL, User, Password);} catch (classnotfoundexception) {system.out.println ("Error: Conn Error !!!!!!!!!!!"); E.PrintStackTrace ();} catch (sqlexception e) {E.PrintStackTrace ();} return conn;} public static void main Args []) {boolean istrue = false; string str = null; shizaikihonmaintemodelimpl model = new shizaikihonmaintemodelimpl (); valueObject vo = null; ValueObject Ivo = null; BaseValueObject bvo = null; ListElement dataList = null; ListElement le = null; ArrayList al = null; try {le = new ListElement (); le.setValue (DataModel.SHIZAIINFO_ITEM_CD, "10001"); le.setValue (DataModel.SHIZAIINFO_ITEM_CD_BRANCH, "00"); le.setValue (DataModel.SHIZAIINFO_HACYUSAKI_CD, "00234"); le.setValue (DataModel.SHIZAIINFO_SIHARAISAKI_CD, ""); al = new ArrayList (); al.add (le); Ivo =

new BaseValueObject (al); isTrue = model.getShizaiDetailInfo (Ivo);} catch (BaseException e) {// catch ubN e.printStackTrace ();?} vo = (ValueObject) model.getAttribute (SHIZAI_KIHON_MAINTE_VO_KEY); System.out. Println (istrue); System.out.Println (VO);}}

转载请注明原文地址:https://www.9cbs.com/read-64637.html

New Post(0)