´«ÖDz¥¿Íjavaѧϰ hibernate³õ²½
ÎÒ½ñÌìѧϰÁËÐìÀÏʦ½²µÄhibernate֪ʶ£¬ÎÒ×öÁ˼òµ¥µÄ±Ê¼Ç£º
Ò»¡¢Hibernate
a) Á¬½ÓjavaÓ¦ÓóÌÐòºÍ¹ØϵÐÍÊý¾Ý¿âµÄÖмä¼þ£¬¶ÔJDBC API·â×°£¬¸ºÔð¶ÔÏó³Ö¾Ã»¯
b) λÓڳ־û¯²ã£¬·â×°ËùÓеÄÊý¾Ý·ÃÎÊϸ½Ú£¬Ê¹ÒµÎñÂß¼²ã¸ü¹Ø×¢ÓÚÒµÎñÂß¼£¬Ò»ÖÖORMÓ³É乤¾ß¡£
¶þ¡¢Hibernate API
1.Configuration ÅäÖÃhibernate£¬¸ùÆô¶¯hibernate£¬´´½¨
sessionFactory¶ÔÏó¡£
2.SessionFactory ³õʼ»¯hibernate£¬³äµ±Êý¾ÝÔ´´úÀí£¬´´½¨
session¶ÔÏó¡£Ḭ̈߳²È«µÄ£¬¿É±»¶à¸öÏ̹߳²Ïí¡£ÖØÁ¿¼¶µÄ£¬
ÐèÒªÒ»¸öºÜ´óµÄ»º´æ£¬ÓÃÓÚ´æ·ÅÓÚ¶¨ÒåµÄsqlÓï¾äºÍÓ³ÉäÔªÊý
¾ÝµÈ¡£Óû§»¹¿ÉΪËüÅäÖÃÒ»¸ö»º´æ²å¼þ£¬³ÆΪ¶þ¼¶»º´æ¡£
3.Session ʹÓÃ×î¹ã·º£¬Ò²±»³ÆΪ³Ö¾Ã»¯¹ÜÀíÆ÷£¬ËüÌṩºÍ³Ö¾Ã
»¯Ïà¹ØµÄ²Ù×÷¡£Ôö¡¢É¾¡¢¸Ä¡¢²éµÈ¡£²»ÊÇḬ̈߳²È«µÄ£¬±ÜÃâ¶à
¸öÏ̹߳²Ïí¡£ÇáÁ¿¼¶µÄ£¬´´½¨ºÍÏú»Ù²»ÐèÒªÏûºÄÌ«¶à×ÊÔ´¡£
SessionÖÐÓÐÒ»¸ö»º´æ£¬³ÆΪһ¼¶»º´æ¡£´æ·Åµ±Ç°¹¤×÷µ¥Ôª¼Ó
ÔصĶÔÏó¡£
4.Transaction hibernateÊý¾Ý¿âÊÂÎñ½Ó¿Ú£¬
Ëü¶Ôµ×²ãµÄÊÂÎñ½Ó¿Ú×÷ÁË·â×°.µ×²ãÊÂÎñ½Ó
¿Ú°üÀ¨:
JDBC API
JTA(java Transaction API)
CORBA(common object request Broker architecture)
5.QueryºÍCriteria½Ó¿Ú£º¶¼ÊDzéѯ½Ó¿Ú£¬queryʵÀý
°ü×°ÁËHQL²éѯÓï¾ä£¬hqlÊÇÃæÏò¶ÔÏóµÄ£¬ËûÒýÓÃÀà
Ãû¼°ÀàµÄÊôÐÔÃû£¬¶ø²»ÊDZíÃûºÍ×Ö¶ÎÃû¡£Criteria½Ó
¿ÚÍêÈ«·â×°ÁË»ùÓÚ×Ö·û´®ÐÎʽµÄ²éѯÓï¾ä£¬±È
query½Ó¿Ú¸üÃæÏò¶ÔÏó£¬ËûÉó¤Ö´Ðж¯Ì¬²éѯ¡£
sessoin½Ó¿ÚµÄfind·½·¨Ò²¾ßÓÐÊý¾Ý²éѯ¹¦ÄÜ£¬µ«Ëû
Ö»ÊÇÖ´ÐÐһЩ¼òµ¥µÄhql²éѯÓï¾äµÄ¿ì½Ý·½Ê½£¬Ô¶Ã»
&n
Ïà¹ØÎĵµ£º
ÔÚjavaÖе÷ÓÃ×Ô¼ºµÄc++´úÂëÊÇÒ»¼þ¼òµ¥µÄÊÂÇ飬ÒÔÏÂÀàΪÀý£º
class Prompt {
private native String getLine(String prompt);
public static void main(String args[]) {
Prompt p = new Prompt();
String input = p.getLine("Type a line: ");
&nbs ......
ÎÒÃǶ¼ÖªµÀjava¡¢c#¡¢vbµÈÓïÑÔ¶¼ÓÐsleepÔÝÍ£µÄº¯Êý£¬¶øJavaScript½Å±¾Ã»ÓÐÀàËƵŦÄÜ¡£
ÏÂÃæ¾ÍÊÇÎÒµÄʵÏֵķ½·¨£º
<mce:script type="text/javascript"><!--
function test()
{
var s="javascript--ÔÝÍ£º¯Êý";
setTimeout(
function(){
eval(sleep(test)); //Ö´ÐÐreturnÖ®ºóµÄ´úÂ룬Ҳ¾ÍÊÇ&ldq ......
ÔÚͨ¶ÁjdkÔ´´úÂëµÄʱºò·¢ÏÖÐí¶àjava·½·¨Ç°¶¼ÓÐnative¹Ø¼ü×ÖÐÞÊΣ¬×îºóµÃÖªnativeÊÇÓëC++ÁªºÏ¿ª·¢µÄʱºòÓõģ¬java×Ô¼º¿ª·¢²»Óá£
ʹÓÃnative¹Ø¼ü×Ö˵Ã÷Õâ¸ö·½·¨ÊÇÔÉúº¯Êý£¬Ò²¾ÍÊÇÕâ¸ö·½·¨ÊÇÓÃC/C++ÓïÑÔʵÏֵģ¬²¢ÇÒ±»±àÒë³ÉÁËDLL£¬ÓÉjavaÈ¥µ÷Óá£ÕâЩº¯Êý ......
http://lavasoft.blog.51cto.com/62575/18920
JavaÒì³£´¦Àí×ܽá
Òì³£´¦ÀíÊdzÌÐòÉè¼ÆÖÐÒ»¸ö·Ç³£ÖØÒªµÄ·½Ã棬ҲÊdzÌÐòÉè¼ÆµÄÒ»´óÄѵ㣬´ÓC¿ªÊ¼£¬ÄãÒ²ÐíÒѾ֪µÀÈçºÎÓÃif...else...À´¿ØÖÆÒì³£ÁË£¬Ò²ÐíÊÇ×Ô·¢
µÄ£¬È»¶øÕâÖÖ¿ØÖÆÒ쳣ʹ¿à£¬Í¬Ò»¸öÒì³£»òÕß´íÎóÈç¹û¶à¸öµØ· ......