A. Al數據處理是什麼意思
個人理解,AI是人工智慧的意思,數據處理那就應該是程序員的意思唄。如果你真的是做這個行業的。又怎麼可能不知道這個工作的工作內容是什麼?
B. ALDSP涓鍔ㄦ佹暟鎹琛ㄨ塊棶鐨勮В鍐蟲柟妗
銆銆涓嶅皯緋葷粺涓閮芥湁鍔ㄦ佹暟鎹琛ㄧ殑瀛樺湪 姣斿傛寜鏃ユ垨鑰呮寜鏈堝湪鏁版嵁搴撲腑鐢熸垚涓涓琛 浠ユ棩琛ㄤ負渚 鍏惰〃鍚嶇殑褰㈠紡涓篢ableName_XXXX_XX_XX 濡俆ableName_ _ _ 絳 琛ㄦ槑鍏惰〃鍐呮暟鎹瀛樻斁鐨勬槸 騫 鏈 鏃ユ墍浜х敓鐨勬暟鎹 鍦ㄨ繖浜涙棩琛ㄤ腑 琛ㄧ粨鏋勫畬鍏ㄧ浉鍚 鍙鏄鍦ㄨ〃鍚嶄笂鏈夋墍鍖哄埆
銆銆鑰屽湪ALDSP浠庡叧緋繪暟鎹搴撲腑瀵煎叆鍏冩暟鎹錛坕mport Meta Data錛夋椂 鏃犺烘槸鐩存帴浠庤〃瀵煎叆 榪樻槸浠嶴QL璇鍙ュ煎叆 閮藉繀欏繪彁渚涘叾琛ㄥ悕 鍚﹀垯鏃犳硶鐢熸垚Data Services 浣嗘槸鍦ㄤ笉灝戝㈡埛鐨勫簲鐢ㄤ腑 緇忓父鏄瑕佹牴鎹閫夋嫨鐨勬椂闂磋寖鍥存潵鍔ㄦ佺殑鏌ヨ涓涓琛ㄦ垨鑰呭氫釜琛 鏍規嵁瀹㈡埛鎻愬嚭鐨勮繖浜涜佹眰 緇忚繃鐮旂┒鍙戠幇 鍦ˋLDSP涓瑕佹瘮杈冩柟渚跨殑瑙e喅榪欎釜闂棰 涓昏佸彲浠ラ氳繃涓や釜閫斿緞瑙e喅 鍏朵竴鏄鍦ㄦ暟鎹搴撶鐢熸垚涓涓鍑芥暟錛坒unction錛夋垨鑰呭瓨鍌ㄨ繃紼嬶紙store procere錛 璁懼畾琛ㄥ悕浣滀負鍙傛暟 鐒跺悗鐢盇LDSP瀵煎叆鐢熸垚Data Services 鍏朵簩鏄鐩存帴鍒╃敤ALDSP鍙浠ヤ粠鍑芥暟瀵煎叆鍏冩暟鎹鐨勫姛鑳 鍏堢敓鎴愪竴涓浠ヨ〃鍚嶄負鍙傛暟鐨勫嚱鏁 鐒跺悗瀵煎叆ALDSP鐢熸垚Data Services
銆銆浠ヤ笅涓昏佷粙緇嶇浜岀嶆柟娉曠殑瀹炵幇
銆銆鍦ˋLDSP涓 鍙浠ヤ粠澶氱嶅紓鏋勬暟鎹婧愪腑鍙栧緱鏁版嵁 鍖呮嫭鏁版嵁搴 flatfile xml鏂囦歡 Web Services Java鍑芥暟絳 浠嶫ava鍑芥暟涓鐢熸垚Data Services鏈夊嚑鐐硅佹敞鎰忕殑鍦版柟 璇﹁佸叾涓鍖呮嫭鍑芥暟鐨勫畾涔夊繀欏諱負static 榪樻湁灝辨槸榪斿洖鍊兼湁浜涢檺鍒 涓昏佸彲浠ヨ繑鍥炰袱縐嶇被鍨 鍏朵竴涓篔ava鍘熷嬬被鍨嬶紙primitive types錛夋垨鑰呭師濮嬬被鍨嬬殑鏁扮粍 鍏朵簩涓哄嶆潅綾誨瀷錛坧lex types錛夋垨鑰呭嶆潅綾誨瀷鐨勬暟緇 鍦ㄤ竴鑸鐨凧ava紼嬪簭涓 榪斿洖澶嶆潅綾誨瀷鏁版嵁涓鑸浼氱敤鍒癑avaBean鎴栬匤avaBean鐨勬暟緇勬垨鑰呯洿鎺ョ敤涓涓瀹瑰櫒榪斿洖 浣嗘槸瀵笰LDSP鑰岃█ 鏃犺烘槸瀹瑰櫒鎴栬匤avaBean鐨勬暟鎹 ALDSP鍧囦笉鑳戒粠涓鑾峰彇鍒版墍闇鐨勫厓鏁版嵁錛圡eta Data錛変俊鎮 瑕佹弧瓚矨LDSP鍏冩暟鎹鑾峰彇鐨勮佹眰 鎴戜滑鍙浠ラ氳繃涓涓狫ava to XML鎴栬匤avaBena鐨勬妧鏈鏉ュ瑰叾榪斿洖鍊艱繘琛屽皝瑁
銆銆閽堝逛互涓婅繖浜涙儏鍐 鎴戜滑閫氳繃涓涓妯℃嫙鐨勪緥瀛愭潵瀹炵幇榪欎釜瑙e喅鏂規 棣栧厛鍦ㄦ暟鎹搴撲腑鐢熸垚涓ゅ紶琛ㄨ〃鍚嶄負table 鍜宼able 緇撴瀯濡備笅
銆銆 瀛楁靛悕 綾誨瀷 ID 瀛楃︿覆鍨 NAME 瀛楃︿覆鍨 鏍規嵁琛ㄧ殑綾誨瀷 璁捐XMLBean鐨刋ML Schema鏉ラ傚簲鎴戜滑鐨勯渶瑕
銆銆浠ヤ笅涓哄浘褰㈠寲瑙嗗浘錛堢敱XMLSPY鐢熸垚錛
銆銆
銆銆XML鏂囦歡婧愪唬鐮佸備笅
銆銆<錛焫ml version= 錛> <xs schema xmlns xs= xmlns tns= targetNamespace= elementFormDefault= qualified attributeFormDefault= unqualified > <xs element name= AllUser > <xs plexType> <xs sequence> <xs element name= User minOccurs= maxOccurs= unbounded > <xs plexType> <xs sequence> <xs element name= ID type= xs string /> <xs element name= Name type= xs string /> </xs sequence> </xs plexType> </xs element> </xs sequence> </xs plexType> </xs element> </xs schema>鐒跺湪鍦╓orkshop閲屾柊寤轟竴涓搴旂敤紼嬪簭 鍐嶆柊寤轟竴涓猄chema Project 鍐嶆柊寤轟竴涓猉ML Schema濡備笅鎵紺
銆銆淇濆瓨AllUser xsd鍚庝細鑷鍔ㄧ紪璇戞垚鐢焁MLBean鐨勫寘
銆銆
銆銆榪欐牱 鎴戜滑灝卞彲浠ュ湪瀹氫箟鐨凧ava綾諱腑榪斿洖XMLBean綾誨瀷鐨勬暟鎹浜
銆銆
銆銆鎺ヤ笅鏉ュ湪褰撳墠搴旂敤紼嬪簭涓鏂板緩涓涓狫ava宸ョ▼ 鍔犱竴涓狫ava綾 鐢熸垚涓涓綾誨備笅
銆銆import java sql Connection import java sql Driver import java sql ResultSet import java sql Statement import java util Hashtable import javax naming Context import javax naming InitialContext import javax sql DataSource import openuri temp testDynamicTable allUser AllUserDocument
銆銆public class DynamicTable { //鍑芥暟鐨勫嚱鏁頒負琛ㄥ悕public static AllUserDocument getUser錛圫tring tablename錛
銆銆{ AllUserDocument doc AllUserDocument AllUser alluser AllUserDocument AllUser User user //鍏堢敓鎴愪竴涓猉MLBean鐨勫疄渚媎oc = AllUserDocument Factory newInstance錛堬級 //鍍忚繖涓瀹炰緥涓鍔犲叆涓涓鑺傜偣alluser = doc addNewAllUser錛堬級 try { Hashtable env = new Hashtable錛堬級 Context ctx = null ctx = new InitialContext錛堬級 DataSource ds = 錛圖ataSource錛塩tx lookup錛 cgDataSource 錛 Connection conn = ds getConnection錛堬級 Statement stmt = conn createStatement錛堬級 ResultSet rs = stmt executeQuery錛 select id name from +tablename錛 //閫氳繃JDBC鍙栧緱鏁版嵁闆哛esultSet while錛坮s next錛堬級錛
銆銆{ //鐒跺悗灝嗘暟鎹闆嗕腑鐨勬暟鎹鍔犲叆鍒癤MLBean涓璾ser = alluser addNewUser錛堬級 user setID錛坮s getString錛 id 錛夛級 user setName錛坮s getString錛 name 錛夛級 } System out println錛坉oc toString錛堬級錛 } catch錛圗xception ex錛
銆銆{ ex printStackTrace錛堬級 } //灝嗙粨鏋滈泦鍖呰呬負XMLBean鍚庤繑鍥瀝eturn doc }浠ヤ笂浠g爜鐨勪富瑕佸師鐞嗘槸 閫氳繃JNDI鍙栧緱鏁版嵁婧 鐒跺悗浣跨敤鏍規嵁浼犲叆鐨勮〃鍚嶆嫾瑁呭嚭涓涓猄QL鏌ヨ㈣鍙 鐒跺悗鐢卞彇寰楃粨鏋滈泦鍚庣敓鎴怷MLBean榪斿洖
銆銆緇忚繃緙栬瘧鍚庡氨鍙浠ュ煎叆鐢熸垚涓涓狣ata Services浜
銆銆
銆銆鏈鍚庢祴璇曠粨鏋滃備笅
銆銆
lishixin/Article/program/Java/hx/201311/26163