Jsp message board source code 4

Source: Internet
Author: User
OpDb. java
========================================================== ====
Package ymbean;
Import java. SQL .*;
Import java. util .*;
Import java. text .*;
Import com. chinazjj. SQL. dsql;
Import com. chinazjj. util. dutil;
// I will not post the content in other packages dsql and dutil. The two functions used in this file are very simple.
Single
Public class opDb {
Private String inquire_value = "", inquire_item = "", disptype = "", inqtyp
E = "";
Private String inquire_num = "", inquire_addr = "", inquire_name = "";
Private dutil ldutil = new dutil ();
Public opDb (){
}
Public void setinquire_item (String name) {inquire_item = name
;}
Public void setinquire_value (String name) {inquire_value = ldut
Il. chineseToUnicode (name );}
Public void setdisptype (String name) {disptype = name ;}
Public void setinqtype (String name) {inqtype = name ;}
Public void setinquire_num (String name) {inquire_num = ldutil. c
HineseToUnicode (name );}
Public void setinquire_addr (String name) {inquire_addr = ldutil
. ChineseToUnicode (name );}
Public void setinquire_name (String name) {inquire_name = ldutil
. ChineseToUnicode (name );}
Public String getinquire_dndata ()
{
Return "";
}
Public ResultSet executeQuery (String SQL)
{
ResultSet rs = null;
Statement lstmt = null;
Try {
Lstmt = connectdb ();
Rs = lstmt.exe cuteQuery (SQL );
System. out. println ("executeQuery:" + SQL );
} Catch (SQLException ex) {System. err. println ("executeQuery:" +
Ex. getMessage ());}
Return rs;
}
Public Statement getStmt ()
{
Statement lstmt = null;
Lstmt = connectdb ();
Return lstmt;
}
Public String executeUpdate (String SQL)
{
ResultSet rs = null;
Statement lstmt = null;
Try {
Lstmt = connectdb ();
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.