亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? readme.html

?? 一個OR Mapping工具
?? HTML
?? 第 1 頁 / 共 2 頁
字號:
<HTML>
<HEAD>
<TITLE>JORA: Java Object Relational Adapter</TITLE>

<UL>
<LI><A HREF = "#introduction">Introduction</A>
<LI><A HREF = "#how">How it works</A>
<LI><A HREF = "#select">Selecting objects from database</A>
<LI><A HREF = "#manip">Insert, update and delete commands/A>
<LI><A HREF = "#about">Release notes</A>
</UL>

<BODY>
<HR>
<H2><A NAME = "introduction">Introduction</A></H2>

JORA will simplify you development of database application, establishing
implicit mapping between relational database tables and Java classes.
JORA is using JDBC for database connection, so it can be used with any 
database supporting JDBC or ODBC. JORA also allows you to use object-oriented 
features, such as polymorphism and complex objects, 
in your database applications.

<H2><A NAME = "how">How it works</A></H2>

Programmer should create <B>Table</B> object for each class, which
should be mapped to database table. Usually name of the class is the same as 
the name of database table. But it is possible to map several classes 
with different names to one database table.
Also names of class components should match names of
table columns (it is possible for class to contain not all fields from
the database table, so class can be considered as some kind of table view).
A component of mapped on table class should be either of one the types,
supported by JDBC (see table <A HREF="atypes">Atomic types</A>), or
object with such components, or object implementing 
<TT>java.io.Serializable</TT> interface. 
In second case, database table should contain all fields
from classes of object compoentns. If class component is object implementing 
<TT>Serializable</TT> interface, then database table should 
contain large binary column for storing contents of objects closure. 
Consider the following Java classes:

<PRE>
    public class Point { 
        public int x;
        public int y;
	
	public boolean belongs(int left, int top, int width, int height) { 
	    return x >= left && x &lt;= left + width &&
	           y >= top && y &lt;= top + height)
	}
	public static String sqlBelongs(String name,
	   int left, int top, int width, int height)
	{
	    return name + "_x BETWEEN " + left + " AND " + (left + width) + 
	     " AND " + name + "_y BETWEEN " + top + " AND " + (top + height);
	}
    }

    public class R2Object { 
        public int    id;
        public String name; 
        public Point  location;

        public static Table table = new Table("R2Object", null, session, "id");
    }
    public class Circle extends R2Object { 
        public int    radius;
        public static Table table = new Table("Circle");
    }
    public class Line extends R2Object { 
        public Point  lineTo;
        public static Table table = new Table("Line");
    }
</PRE>

And database containing correspondent tables:

<PRE>
    create table Circle(
        id         SMALLINT PRIMARY KEY,
	name       CHAR(10),
	location_x INTEGER,
	location_y INTEGER,
	radius     INTEGER
    );
    create table Line(
        id         SMALLINT PRIMARY KEY,
	name       CHAR(10),
	location_x INTEGER,
	location_y INTEGER,
	lineTo_x   INTEGER,
	lineTo_y   INTEGER
    );
</PRE>

Now it is possible to extract all records from <TT>Circle</TT> table
using <TT>select</TT> method of the <TT>Table</TT> class:

<PRE>
    Cursor c = Circle.table.select("order by name");
    Detail d;
    while ((d = (Detail)c.next()) != null) { 
        System.out.println("("+d.location.x+","+d.location.y+") - " + d.id);
    }
</PRE>

Or perform polymorphic query and select records from all these tables
using <TT>selectAll</TT> method of the <TT>Table</TT> class:

<PRE>
    Object selection[] = 
      R2Object.table.selectAll
        ("where " + Point.sqlBelongs("location", 0, 0, 100, 100)).toArray(); 
    for (int i = 0; i &lt; selection.length; i++) { 
        System.out.println(((R2Object)selection[i]).name);
    }
</PRE>

If you have large number of tightly linked objects, it is often very
inconvenient and inefficient to store all these objects in tables of
relational database. JORA allows you to pack the closure of such objects
and store it as BLOB field in database. Lets look at the following example:

<PRE>
    public class Detail implement java.io.Serialized { 
        public int      id;
        public String   name;
        public Detail[] connectedWith;

	public Detail(int id, String name, int nLinks) { 
	    this.id = id;
	    this.name = name;
	    this.connectedWith = new Detail[nLinks];
	}
    } 

    public class Assembly { 
        public String name;
	public double weight;
	public Detail details;

	public static Table table = new Table("Assembly", session, "name");
    }
</PRE>

Objects of <CODE>Assembly</CODE> class can be stored in the following
table:

<PRE>
    create table Assembly(
       name    VARCHAR(255) PRIMARY KEY,
       weight  REAL,
       details LONG RAW
    );
</PRE>

Such object cluster representing an assembly can be stored and retrieved
from database without any explicit efforts of programmer:

<PRE>
    Assembly asm = new Assembly();
    asm.name = "Z-195";
    asm.weight = 30.5;
    Detail bolt = new Detail(105, "bolt", 1);
    Detail screw = new Detail(106, "screw", 1);
    asm.details = bolt;
    bolt.connectedWith[0] = screw;
    screw.connectedWith[0] = bolt;

    Assembly.table.insert(asm);
    asm.weight += 1.1;    
    Assembly.table.update(asm);

    asm = (Assembly)Assembly.table.select("where name='Y-315'");
    System.out.println(asm.details.name);
</PRE>
    

<H2><A NAME = "select">Selecting objects from database</A></H2>

JORA supports two kinds of object queries from database:
simple query, when object are extracted only from one database table,
and polymorphic query, when objects are also selected from all database
tables, which are derived from the specified table. 
Inheritance relationship between tables is specified by correspondent 
relationship between Java classes mapped to the table. 
JORA also supports notion of <I>abstract</I> table, which is not present in 
database and is used only for issuing polymorphic queries 
(table <TT>R2Object</TT> from the example above). 
Abstract tables are created by constructor with <TT>tableName</TT>
parameter equal to <TT>null</TT>.<P>

When <TT>Table</TT> object is constructed, you should pass to constructor
name of Java class, name of database table, session object and name of primary
key for this table. If table name is the same as class name without package 
prefix, then it is possible to specify only the class name: JORA provides 
special constructor for this case. Session object is used to encapsulate 
connection with database server. It should be opened before first access to 
the table. Primary key is used for update and remove operation, to locate 
necessary record within table. Primary key should be atomic. 
It is possible not to specify session and primary key parameters in derived 
tables, they will be taken from base table.<P>

<I><B>Important!</I></B>
All non-atomic components of mapped on 
database table classes should have constructor with no parameters 
(default constructor) to make it possible for JORA to create instances 
of this object when data is loaded from database. Otherwise 
<TT>NoSuchMethodError</TT> error will be raised.<P>

<I><B>JDK 1.1 restriction</I></B>
Prior to version 1.2 of JDK, it is not possible to access through reflection
mechanism fields of non-public classes from other packages. 
That is why all classes, mapped on database tables, should
be defined as <TT>public</TT> (within package) and their components also
should be <TT>public</TT>, otherwise JORA package will be not able
to store and extract component values (<TT>IllegalAccessError</TT> will
be raised). There is no such restriction with JDK 1.2.<P>


?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
黄色日韩三级电影| 色就色 综合激情| 91浏览器打开| 久久国产尿小便嘘嘘尿| 蜜桃av一区二区| 91麻豆精东视频| 亚洲国产精品ⅴa在线观看| 亚洲小说欧美激情另类| 懂色av一区二区在线播放| 538在线一区二区精品国产| 欧美国产日韩在线观看| 蓝色福利精品导航| 欧美视频在线一区| 欧美日韩1234| 一区二区在线观看视频在线观看| 一区二区三区欧美日| 国产精品伊人色| 欧美不卡激情三级在线观看| 亚洲va中文字幕| 日本道精品一区二区三区| 欧美电影一区二区| 亚洲精品老司机| 99精品欧美一区二区三区小说| 91国产成人在线| 综合久久综合久久| 天堂蜜桃一区二区三区 | 国产精品网站在线| 午夜免费久久看| 久久国内精品视频| 欧美日韩激情一区二区| 亚洲精品高清视频在线观看| 成人免费视频国产在线观看| 久久久久久久综合日本| 九一久久久久久| 精品电影一区二区三区 | 午夜精品久久久久久久99水蜜桃 | aaa亚洲精品| 久久婷婷一区二区三区| 精品影视av免费| 精品久久久久久综合日本欧美| 一区在线观看视频| fc2成人免费人成在线观看播放| 欧美写真视频网站| 亚洲va韩国va欧美va| 欧美日韩小视频| 奇米777欧美一区二区| 欧美电影免费观看高清完整版在线| 18成人在线观看| 久久国产免费看| 久久久精品黄色| a4yy欧美一区二区三区| 最新欧美精品一区二区三区| 91高清在线观看| 日韩av一二三| 国产日韩高清在线| 91视频国产观看| 日日夜夜免费精品视频| 欧美成人福利视频| 成人免费福利片| 夜夜嗨av一区二区三区四季av| 国产精品一区二区你懂的| 777欧美精品| 国产麻豆一精品一av一免费| 亚洲欧洲日本在线| 欧美午夜不卡在线观看免费| 成人国产精品免费| 亚洲视频电影在线| 日韩欧美卡一卡二| 福利一区二区在线| 亚洲福利视频三区| 欧美激情一区二区三区在线| 久久精品国产**网站演员| 国产拍揄自揄精品视频麻豆| 欧美综合视频在线观看| 国模大尺度一区二区三区| 亚洲视频一区在线| 成人av在线影院| 日产国产高清一区二区三区| 欧美系列亚洲系列| 国产一本一道久久香蕉| 久久综合色之久久综合| 色婷婷久久久亚洲一区二区三区| 国产精品国产三级国产普通话99| 国产福利不卡视频| 久久精品视频一区二区| 欧美精品v日韩精品v韩国精品v| 亚洲欧美一区二区久久| 色综合色综合色综合| 裸体健美xxxx欧美裸体表演| 亚洲精品久久久蜜桃| 久久久精品免费网站| 国产91丝袜在线播放0| 中文在线一区二区| 日韩欧美色综合网站| 欧美性欧美巨大黑白大战| 手机精品视频在线观看| 亚洲视频电影在线| 中文字幕精品三区| 91久久免费观看| 国产精品18久久久久久久久 | 国产精品毛片a∨一区二区三区| 成人美女视频在线看| 自拍偷拍欧美精品| 国产日韩欧美麻豆| 色婷婷亚洲精品| av在线一区二区| 国产麻豆视频一区二区| 国产中文字幕一区| 激情小说亚洲一区| 捆绑调教美女网站视频一区| 日韩国产高清在线| 三级在线观看一区二区| 麻豆成人91精品二区三区| 日韩欧美国产午夜精品| 欧美精品18+| 欧美三级日韩在线| 国产精品一二三四| 国产一区视频网站| 国产一区二区在线观看免费| 国产乱码精品一品二品| 亚洲一区二区欧美激情| 亚洲乱码国产乱码精品精的特点| 欧美一三区三区四区免费在线看 | 成人中文字幕合集| 成人激情小说乱人伦| 国产一区中文字幕| 国产69精品久久久久777| 懂色av噜噜一区二区三区av| 国产高清无密码一区二区三区| 一区二区三区加勒比av| 依依成人精品视频| 亚洲成人免费电影| 日本欧美在线观看| 韩日欧美一区二区三区| 亚洲欧美激情小说另类| 夜夜嗨av一区二区三区中文字幕| 久久先锋影音av鲁色资源| 久久精品人人爽人人爽| 国产精品国产三级国产普通话99| 日韩欧美专区在线| 色婷婷精品久久二区二区蜜臀av| 六月丁香婷婷色狠狠久久| 亚洲啪啪综合av一区二区三区| 日韩一区二区三免费高清| 日韩欧美中文字幕制服| 在线视频国内一区二区| 国产成人av一区二区| 91麻豆国产精品久久| 精品污污网站免费看| 日韩欧美中文字幕制服| 中文字幕在线不卡一区| 日韩一区二区电影在线| 国产丝袜在线精品| 337p粉嫩大胆噜噜噜噜噜91av| 久久免费精品国产久精品久久久久| 欧美精品在线视频| 亚洲精品一区二区三区福利 | 色婷婷精品大在线视频| 欧美卡1卡2卡| 欧美激情综合五月色丁香小说| 久久嫩草精品久久久久| 一区二区成人在线| 久久机这里只有精品| 一本到不卡精品视频在线观看| 99re亚洲国产精品| 日韩亚洲欧美在线| 亚洲免费电影在线| 国产伦精一区二区三区| 国产乱码精品一区二区三区av| 国产伦精一区二区三区| 欧美日韩亚洲综合在线| 国产午夜精品久久| 天天色 色综合| 一本一道波多野结衣一区二区| 97精品视频在线观看自产线路二 | 国产资源在线一区| 欧美午夜宅男影院| 欧美一区二区视频观看视频 | 麻豆91精品视频| 欧美日韩在线精品一区二区三区激情| 色www精品视频在线观看| 久久综合资源网| 丝袜亚洲另类丝袜在线| 色综合av在线| 国产精品久久久久aaaa樱花| 国产伦精品一区二区三区免费迷 | 欧美优质美女网站| 中文字幕精品—区二区四季| 亚洲天堂av一区| 成人综合婷婷国产精品久久免费| av资源站一区| 国产欧美日韩视频一区二区| 国产一区二区三区蝌蚪| 欧美一区二区三区在线观看视频 | 成人精品国产福利| 国产亚洲女人久久久久毛片| 精品在线免费视频| va亚洲va日韩不卡在线观看| 日本一区二区三区视频视频| 亚洲第一福利视频在线|