您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 市场营销 > java商品管理系统12
packagecom.DateSystem;importjava.sql.Connection;importjava.sql.ResultSet;importjava.sql.SQLException;importjava.sql.Statement;publicclassJDBcloss{privatestaticvoidclose(ResultSetresultSet){if(resultSet!=null){try{resultSet.close();}catch(SQLExceptione){//TODOAuto-generatedcatchblocke.printStackTrace();}}}privatestaticvoidclose(Statementstatement){if(statement!=null){try{statement.close();}catch(SQLExceptione){//TODOAuto-generatedcatchblocke.printStackTrace();}}}privatestaticvoidclose(Connectionconnection){if(connection!=null){try{connection.close();}catch(SQLExceptione){//TODOAuto-generatedcatchblocke.printStackTrace();}}}publicstaticvoidclose(Statementstatement,Connectionconnection){close(statement);close(connection);}publicstaticvoidclose(ResultSetresult,Statementstate,Connectionconn){close(result);close(state);close(conn);}}
本文标题:java商品管理系统12
链接地址:https://www.777doc.com/doc-4620495 .html