文档介绍:客户信息管理脱务曰….「・•••••..(+}•・,・・白・・"EJMainframe,java••口^-".・・(默认)宙・・.;//lassCustomer{privateintid;privateStringprivateStringprivateintage;privateStringprivateStringcustomName;customPassword;address;phone;privateStringemail;publicStringgetCustomNmme(){returncustomName;}publicvoidsetCustomName(StringcustomName){=customNmme;}publicStringgetCustomPassword() {returncustomPesswoisd;}publicvoidsetCustomPassword(StringcustomPassword){=customPassword;}publicintgetAge() {returnage;}publicvoidsetAge(intage){=age;}publicintgetId() {returnid;}publicvoidsetld(intid){=id;}publicStringgetAddress() {returnaddress;}publicvoidsetAddress(Stringaddress){=address;}publicStringgetPhone() {returnphone;}publicvoidsetPhone(Stringphone){=phone;}publicStringgetEmail() {returnemail;}publicvoidsetEmail(Stringemail){=email;}^OverridepublicStringtoString() {//TODOAuto-+n\t"++"\tn++'*\tn+this・age+'*\tn+this・address+u\tn+this・phone+'*\tn+this・email;}}二、.my•db;.*;//lassDBCon{privateConnectioncon;onnectiongetConnection(){//方法一:JDBC-ODBC桥接/*try{(”sun・jdbc・odbc・JdbcOdbcDriver");//力fl载注册数据库驱动con=DriverManager・getConnection(”jdbc:odbc:db”,”S3”,"sa");//建立连接}cmtch(SQLExceptionex){System,("数据库连接不成功!”);();}catch(ClassNotFoundExceptionex){・printin(”驱动找不到!'*);();}*///方法二:纯粹的JAVA驱动try{("**);//力II载汴册数据库驱动con=DriverManager•getConnection(njdbc:microsoft:sqlserver://localhost:1433;databaseName=db","san,"sa");//建立连接}uatuh(SQLExcep