Oracle·ÖÒ³´æ´¢¹ý³Ì¼°javaµÄ¾ßÌåµ÷Ó÷½·¨
--°ü
create or replace package pkg_query as
type cur_query is ref cursor;
end pkg_query;
--¹ý³Ì
CREATE OR REPLACE PROCEDURE "PRC_QUERY" (p_tableName
in varchar2, --±íÃû
p_strWhere in varchar2, --²éѯÌõ¼þ
p_orderColumn in varchar2, --ÅÅÐòµÄÁÐ
p_orderStyle in varchar2, --ÅÅÐò·½Ê½
p_curPage in out Number, --µ±Ç°Ò³
p_pageSize in out Number, --ÿҳÏÔʾ¼Ç¼ÌõÊý
p_totalRecords out Number, --×ܼǼÊý
p_totalPages out Number, --×ÜÒ³Êý
v_cur out pkg_query.cur_query) --·µ»ØµÄ½á¹û¼¯
IS
v_sql VARCHAR2(1000) := ''; --sqlÓï¾ä
v_startRecord Number(4); --¿ªÊ¼ÏÔʾµÄ¼Ç¼ÌõÊý
v_endRecord Number(4); --½áÊøÏÔʾµÄ¼Ç¼ÌõÊý
BEGIN
--¼Ç¼ÖÐ×ܼǼÌõÊý
v_sql := 'SELECT TO_NUMBER(COUNT(*)) from ' || p_tableName || ' WHERE 1=1';
IF p_strWhere IS NOT NULL or p_strWhere <> '' THEN
v_sql := v_sql || p_strWhere;
END
Ïà¹ØÎĵµ£º
create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ
......
Java NIO APIÏê½â
ÔÚJDK
1.4ÒÔÇ°£¬JavaµÄIO²Ù×÷¼¯ÖÐÔÚjava.ioÕâ¸ö°üÖУ¬ÊÇ»ùÓÚÁ÷µÄ×èÈû£¨blocking£©API¡£¶ÔÓÚ´ó¶àÊýÓ¦ÓÃÀ´Ëµ£¬ÕâÑùµÄAPIʹÓúܷ½
±ã£¬È»¶ø£¬Ò»Ð©¶ÔÐÔÄÜÒªÇó½Ï¸ßµÄÓ¦Óã¬ÓÈÆäÊÇ·þÎñ¶ËÓ¦Óã¬ÍùÍùÐèÒªÒ»¸ö¸üΪÓÐЧµÄ·½Ê½À´´¦ÀíIO¡£´ÓJDK 1.4Æð£¬NIO
API×÷Ϊһ¸ö»ùÓÚ»º³åÇø£¬²¢ÄÜÌṩ·Ç×èÈû(non-blo ......
/*import javax.swing.JFrame;*/
/*import javax.swing.JOptionPane;*/
public class TestFrame{
public static void main(String[] args) throws Exception{
/*JFrame frame1 = new JFrame();
frame1.setTitle("Windows 1");
frame1.setSize(200,150);
frame1.setLocation(200,100);
frame1.setD ......
JAVA ÀàÒýÓÃÓг£Óõ½µÄÓÐÈýÖУº
µÚÒ»ÖÖ :super ÊǸ¸ÀàÒýÓã¬Í¨¹ýËü¿ÉÒÔ·ÃÎʸ¸ÀàµÄÊôÐԺͷ½·¨¡£
µÚ¶þÖÖ £ºthisÊǵ±Ç°ÀàµÄÒýÓá£Í¨¹ýËû¿ÉÒÔ·ÃÎʵ±Ç°ÀàµÄ·½·¨ºÍÊôÐÔ¡£
µÚÈýÖÖ£º×ÓÀàµÄÒýÓã¬ÎÒ³£Óø¸ÀàµÄ¶ÔÏóÈ¥·ÃÎÊ×ÓÀàµÄ¶ÔÏóÀ´ÊµÏÖ¶à̬¡£ÀýÈ磺ˮ¹ûÀà Ë®¹û=new Æ»¹ûÀࣨ£©£»
ÕâÑùÎÒÃÇ¿ÉÒÔͨ¹ý Ë®¹ûÕâ¸ö¶ÔÏóÈ¥·ÃÆ»¹ûÀ ......
±¾ÎÄÏêϸµÄ½éÉÜÁËʹÓÃJavaÓïÑÔ½¨Á¢Ò»Ì׶àÏ̷߳þÎñÆ÷µÄ¹ý³Ì£¬¸Ã·þÎñÆ÷ʹÓöÔÏó´«µÝÏûÏ¢£¬ÔÚÏß³ÌÖÐʹÓöÓÁлúÖÆ£¬Ê¹·þÎñÆ÷µÄÐÔÄÜ´ó´óÌá¸ßÁË¡£ÕâÌ×·þÎñÆ÷¿ÉÒÔ±»ÓÃÓÚ¸÷ÖÖC/S»òB/S½á¹¹µÄÓ¦ÓóÌÐòÖС£
JavaÓïÑÔÊÇÍêÈ«ÃæÏò¶ÔÏó
µÄ£¬ËüµÄÏ̻߳úÖƺͶÔÏóÐòÁл¯ÌرðÈÝÒ×ʹÓã¬Ê¹ÓÃJavaÀ´½¨Á¢Ò»Ì׶àÏ̷߳þÎñÆ÷Òª±ÈʹÓÃÆäËüÓï ......