Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

½«Java¶ÔÏó´æ´¢µ½OracleÊý¾Ý¿âÖÐ

 ¶ÔÏó³Ö¾Ã»¯£¬Ò²¾ÍÊÇ¿ÉÒÔ°ÑÕâ¸ö¶ÔÏóÓÀÔ¶µÄ±£´æÆðÀ´£¬ÕâÀïµÄ±£´æ²»½öÊǶÔÏó±¾Éí£¬»¹°üÀ¨ËûµÄÊôÐÔºÍËùÒÀÀµµÄÆäËûÀࡣͨ³££¬¶ÔÏó¿ÉÒԳ־û¯µ½Îļþ»òÕßÊÇÊý¾Ý¿âÖС£ÎÒÕâÀïÖ»½éÉÜÈçºÎ½«¶ÔÏó´æ´¢µ½Êý¾Ý¿âÖС£Ç¡ÇÉOracleÊý¾Ý¿âΪÎÒÃÇÌṩÁËÕâÑùµÄ·½±ã¡£
   ÔÚOracleÖУ¬ÓÐÒ»ÖÖblogµÄ×Ö¶ÎÀàÐÍ£¬ËüÊÇÓÃÀ´´æ´¢´óÁ¿µÄ¶þ½øÖÆÊý¾ÝµÄ¡£ÎÒÃǾÍÀûÓÃÕâ¸ö×Ö¶ÎÈ¥´æ´¢¶ÔÏóÐÅÏ¢¡£
   Ê×ÏȽ¨Á¢Ò»¸ö²âÊÔ±í£º
create table TESTBLOB
(
  NAME    VARCHAR2(50) not null,
  CONTENT BLOB not null,
  ID      NUMBER(8) not null
)alter table TESTBLOB
  add constraint IDFORTEST primary key (ID);
   Ö»ÓÃÈý¸ö×ֶΣ¬ÆäÖÐidÊÇÊôÐÔ£¬contentÊÇÎÒÃÇÒª´æ´¢¶ÔÏóµÄ×ֶΡ£
   ÏÈÀ´¿´¿´ÎÒÃÇÒª´æÈëµÄ¶ÔÏó£º
import java.io.Serializable;
import java.util.Date;
import java.util.List;
public class TestObject implements Serializable {
 
 private static final long serialVersionUID = 4558876142427402513L;
 /**
  * @param args
  */
 private String name;
 private String password;
 private Date date;
 private List<City> cityList;
 
 public List<City> getCityList() {
  return cityList;
 }
 public void setCityList(List<City> cityList) {
  this.cityList = cityList;
 }
 public Date getDate() {
  return date;
 }
 public void setDate(Date date) {
  this.date = date;
 }
 public String getName() {
  return name;
 }
 public void setName(String name) {
  this.name = name;
 }
 public String getPassword() {
  return password;
 }
 public void setPassword(String password) {
  this.password = password;
 }
}
    ¼ÇµÃҪʵÏÖSerializable½Ó¿Ú£¬¿ÉÒÔ¿´µ½ÕâÊÇÒ»¸ö°üº¬ÁËstring£¬date£¬ºÍlistÀàÐ͵ĶÔÏó£¬ÎªÁ˸ø²âÊÔÔö¼Ó¸´ÔӶȣ¬ÎÒÃǵÄlistÊÇÁíÍâÒ»¸ö¶ÔÏó£¨city£©µÄlist£¬ÈçÏ£º
import java.io.Serializable


Ïà¹ØÎĵµ£º

JAVA¿ª·¢ÖÒ¸æ £¨ÐÂÊֱضÁ£¬ÀÏÊÖ·¹ý^_^£©

д¸ø±ÈÎÒ»¹ÐµÄÐÂÊÖÃÇ£¬Èç¹ûÑ¡ÔñÁËÕâÐУ¬¾ÍÄÍÐĵĶÁÏÂÈ¥¡£
1£¬²»Òª×Ü˵“±à²»³öÀ´”£¬“²»»á±à”Ö®ÀàµÄ»°£¬ÄÇЩ»°ÊÇÒòΪÄã×Ô¼ºÀÁ£¬²»Ïë±à£¬²»Ïëѧ¶øÒÑ¡£
2£¬²»ÒªÄÜ¿ª·¢µãС³ÌÐò¾Í³öÈ¥ÏÔ°Ú£¬ÄãÖ»²»¹ýÊÇÓñðÈ˸øÄãдºÃµÄ¶«Î÷¶øÒÑ¡£
3£¬²»ÒªÌ«Ö´×ŵĶ¢×ÅAPI£¬JAVAµÄ¾«»ªÔÚÓÚ±à³Ì˼·¸úģʽ£¬¶ø²»ÊÇÒѾ­ ......

java µ÷Óà delphi±àдµÄdll


ÓÐЩʱºò,ҪдһЩ³ÌÐò,ÔÚ JAVA ÀïÃæºÃÄÑʵÏÖ, µ«Èç¹ûʹÓÃÆäËü±à³ÌÓïÑÔÈ´ÓֱȽÏÈÝÒ×ʱ,ÎÒÃDz»·Áͨ¹ý JNI À´Èò»Í¬ÓïÑԵijÌÐò¹²Í¬Íê³É.
JNI µÄ½Ì³Ì, ÍøÉÏ C µÄ±È½Ï¶à,Java Ò²ÌṩÁË javah.exe Ϊ C ÓïÑ﵀ JNI ³ÌÐòÉú³ÉÍ·Îļþ, Èç¹ûÄãÊÇÒ»¸ö Delphi ±à³ÌÔ±, ÄÜ·ñÈà JAVA Óë Delphi ³ÌÐò½»»¥ÄØ? ´ð°¸Êǿ϶¨µÄ,½ñÌìÎÒÃǾÍÀ´ ......

JAVA ³£Óü¼ÇÉ


1.²ð·Ö×Ö·û´®
Óöµ½ÌØÊâ×Ö·û£¬±ÈÈ磺¶Ô‘$’·ûºÅ£¬¾ÍÓ¦¸ÃʹÓÑ\\$’£¬ºó×ܽá¿ÉÒÔ¼Ó¸ö·½À¨ºÅÈç "[.]"¡£
2.±éÀúHASHMAP
Iterator itr = map.keySet().itrator();
while(itr.hasNext())
{
    Object temp1 = itr.next();
    Object temp2 = tab.get(temp1);
} ......

javaÖеĽӿÚ

1.½Ó¿ÚµÄ¶¨Ò壺
          interface ½Ó¿ÚÃû
               {  ½Ó¿ÚÌ壻 }
          ×¢Ò⣺½Ó¿ÚÌåÖÐÖ»ÄÜ°üº¬³£Á¿¶¨ÒåºÍ·½·¨¶¨ÒåÁ ......

һЩJavaÌâÄ¿

1.String str = new String("abc"); ÇëÎʶ¨ÒåÁ˼¸¸ö¶ÔÏ󡣶¨ÒåÁËÁ½¸ö¶ÔÏó£¬Ò»¸ö"abc", Ò»¸öÊÇnew String().<String s = "abc";Ê×Ïȵ½¶ÑÖвéÕÒֵΪ"abc"µÄ¶ÔÏó£¬Ã»ÓоÍн¨Ò»¸ö¶ÔÏó£¬"abc"±¾Éí¾ÍÊÇÒ»¸ö¶ÔÏó¡£>
2.ÃæÏò¶ÔÏóµÄ¶«Î÷£ºabstract & interfaceµÄ¸÷×ÔµÄ×÷Óã¬Çø±ð¡£
3.ÃæÏò¶ÔÏóµÄÌØÕ÷£¬ÒÔ¼°ÔõôʵÏֵġ£1 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ