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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? readme.html

?? 一個OR Mapping工具
?? HTML
?? 第 1 頁 / 共 2 頁
字號:
JORA automatically constructs list of fields, which should be fetched from
the database table, creates new object instances and assigns extracted vales to
object components. Method used to retrieve data from the database server 
depends on the type of Java object component. For example, if component has 
<TT>int</TT> type, then <TT>getInt()</TT> method is used. 
If component type is <TT>java.io.InputStream</TT>, then method
<TT>getBinaryStream</TT> is used for peeking value of this column.
If component has non built-in type (such as <TT>int, char, float...</TT>), 
then extracting of NULL values is handled by assigning <TT>null</TT> to this 
object component.<P>

<I><B>Important!</I></B>
Different SQL databases support different sets of basic types. 
For examples types DATE, TIME, TIMESTAMP, which are defined in SQL-92 standard,
are implemented by only a very small subset of the major databases.
In some cases JDBC driver failed to map JDBC type at the type supported
by concrete database (for example, with MS SQL 6.5 and JDBC-ODBC bridge,
method <CODE>java.sql.PreparedStatement.setDate()</CODE> throws 
"Driver not capable" exception). JORA tries to fix this problem by
doing conversion of the object to string and allowing database server to 
perform necessary conversion from string to target database type.
There is also a problem with choosing types for table columns when
database table is created. Different vendors use different names for
the same type. For example most of database supports BLOBs, but
in Oracle it will be named <TT>"LONG RAW"</TT>, 
in MS SQL and Sybase - <TT>"IMAGE"</TT>, <TT>"BYTE"</TT> in Informix and
<TT>"LONG VARCHAR FOR BIT DATA"</TT> in DB2. Unfortunately JORA can
not help you in solving this problem  and creating portable applications,
working with different databases. You should either choose most standard
types (such as <TT>INTEGER, CHAR, VARCHAR</TT>) or tune your application
for concrete database.<P>

JORA can return set of selected objects in two ways: as an array of objects
or by means of <I><B>Cursor</B></I>. Cursor allows you to successively 
access selected objects.
As far as polymorphic queries can require issuing of more than 
one SQL statement to fetch data from different tables, it is also task of 
the <TT>Cursor</TT> class to construct necessary SQL statements for 
each such table. Extracting selected objects into array makes it possible
to perform random access to selected objects. It is possible to limit
size of the array, so that only restricted number of objects will be 
placed in the array. Objects placed into the array should have no
components with "lazy" extraction, such as <TT>InputStream</TT>
or <TT>Blob</TT>, because they will be closed after fetching of the next 
record.
<B><I>Attention!</B></I> Because of polymorphic select is
represented by several SQL statements, sorting directives will not work 
correctly in this case (records will be ordered only locally within
each table).<P>

Cursor can be also used for updating or deleting current records 
pointed by cursor. In this case clause "for update" should be added
kin select stattement: <CODE>Assembly.table.select("for update");</CODE>
<B>Not</B> all database drivers support such operations 
with cursor. So this methods will no work with such database drivers.
Alternative way for execution update/remove operations is to 
use primary key to locate affected record.<P>


JORA also supports "Query By Example" approach for selecting objects from 
database. In this case, you do not need to explicitly specify select condition,
but instead of it pass object, which non-null components are used
as search criteria. More precisely, components of the object with 
non built-in type (<TT>int, char,...</TT>) are check for null, and
components with non-null values are added to search condition.
The result of such query will be a set of objects, having the same values
of components from the search list as object used as example.
It is convenient to use this approach when user should fill some request form 
and then application shows list of objects matching specified criteria.
Also using Query by Example approach can cause better performance, because
in this case JORA caches prepared SQL statements and database server have
not to parse them each time again. JORA uses hash table to search for 
previously prepared statements.<P>

As far as it was mentioned above, JORA supports complex object, which
fields are automatically scattered when object is constructed from
database tables values, and gathered when record is inserted or updated. 
Such complex object can be also included in search condition,
which is formed by programmer. But JORA can't help you in this case. 
Suggested approach, which allows you to preserve data encapsulation, 
is to add to the class special method, which can be used to construct query.
For example, if we have <TT>Complex</TT> class, which consists of two 
components, we can define the following method for constructing
search condition:

<PRE>
    public class Complex { 
        public double re;
	public double im;

       /** Normal comparison method
        */
	public boolean equal(Complex c) { 
	    return c.re == re && c.im == im;
	}
       /** Generate condition for SQL statement
        */
        public String sqlEqual(String name, Complex c) { 
	    return name+"_re="+c.re+" AND "+name+"_im="+c.im;
        }
    }
</PRE>

Consider the following class with component of <TT>Complex</TT> class:

<PRE>
    public class Resistor { 
        public int     id;
        public String  name;
        public Complex resistance;

        public Static Table table = new Table("Resistor", session, "id");
    } 
</PRE>

The definition of correspondent database table can be:

<PRE>
    create Table Resistor(
        id            INTEGER PRIMARY KEY,
        name          VARCHAR(80),
        resistance_re REAL,
        resistance_im REAL
    );
</PRE>

Symbol '_' is used as separator of field names of compound objects.
This symbol is defined in class <TT>Table</TT> and can be changed to
any other symbol. The query of <TT>Resistor</TT> objects can be constructed
in the following way:

<PRE>
    public Resistor findResistor(Complex resistance) { 
        return Table.Resistor.select("where " + 
                                     Resistor.sqlEqual("resistance",
				                       resistance));
    }
</PRE>

This solution is not so elegant, but at least it makes it possible to use
such approaches as polymorphism and encapsulation. See also example in previous
paragraph with <TT>Point</TT> object.<P>



<H2><A NAME = "manip">Insert, update and delete commands</A></H2>

It is possible to insert new record in the table using 
<CODE>Table.insert(Object obj)</CODE> method. Values of componets of specified
object will be stored in correspondent columns of new database record.
If some object component is <TT>null</TT>, then value of record
column will be <TT>NULL</TT>. In case of components of <TT>Serializable</TT>
type, the closure of referenced objects (i.e. object referenced by this object,
objects referenced from objects referenced by this objects,...)
will be packed and placed in database BLOB field using standard Java
serialization mechanism.<P>

Update and insert commands can be performed either by using table primary key
or cursor current object. In the first case affected record is determined
by primary key field of the object. Located record is either deleted or
updated with values of components of specified object. 
JORA supports only keys of atomic types, if you need to 
update record in table with compound key, then use cursor.
In the second case record located by current cursor 
position is used. It is not necessary to specify object in this case, 
because current object of <TT>Cursor</TT> class is used for updating
current record. <B><I>Attention!</B></I> Cursors are not supported by all
databases.<P>


<TABLE BORDER WIDTH=80% ALIGN="CENTER">
<CAPTION><A HNAME="atypes">Atomic types for components of classes mapped on database tables</A></CAPTION>
<TR><TD>byte</TD><TD>Byte</TD><TD>String</TD></TR>
<TR><TD>short</TD><TD>Short</TD><TD>char[]</TD></TR>
<TR><TD>int</TD><TD>Integer</TD><TD>java.sql.Date</TD></TR>
<TR><TD>long</TD><TD>Long</TD><TD>java.sql.Time</TD></TR>
<TR><TD>float</TD><TD>Float</TD><TD>java.sql.Timestamp</TD></TR>
<TR><TD>double</TD><TD>Double</TD><TD>java.math.BigDecimal</TD></TR>
<TR><TD>boolean</TD><TD>Boolean</TD><TD>java.io.InputStream</TD></TR>
</TABLE><P>

<H2><A NAME = "about">Release notes</A></H2>

JORA is distributed as separate Java package together with documentation
prepared by <B>javadoc</B> <A HREF="Package-jora.html">Package-jora.html</A>
and test program containing classes 
<A HREF="Test.java">Test.java</A>,
<A HREF="Employee.java">Employee.java</A>, 
<A HREF="Programmer.java">Programmer.java</A>, 
<A HREF="Manager.java">Manager.java</A>, 
<A HREF="Experience.java">Experience.java</A> and 
<A HREF="Activity.java">Activity.java</A>.
Special script <TT>compile</TT> can be used to compile JORA package and 
test program and create HTML documentation. 
This test program was tuned for Microsoft SQL server and is using default 
account "sa" with empty password. So you may need to change in this test
driver, database URL, user name and password according to concrete database 
server your are using.
Also names of SQL types, which are used for table creation, are candidates for 
replacing. Test can be executed by running <TT>java Test</TT> command.<P>
 

JORA is freeware and is distributed with sources and without any restrictions.
E-mail support is guaranteed. I will do my best to fix all reported bugs 
and extend JORA functionality. Any suggestions and comments are welcome.
Version of Jora for JDBC 2.0, supporting batch statement execution,
efficient update and delete for current record, <TT>Blob</TT> and <TT>Clob</TT>
data types, will be available as soon as implementation of JDBC 2.0 will 
be ready.
<P> 

<HR>
<P ALIGN="CENTER"><A HREF="http://www.ispras.ru/~knizhnik">
<B>Look for new version at my homepage</B></A><B> | </B>
<A HREF="mailto:knizhnik@altavista.net">
<B>E-mail me about bugs and problems</B></A></P>
</BODY>
</HTML>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产91高潮流白浆在线麻豆| jizzjizzjizz欧美| 中文字幕亚洲电影| 欧美一二三四在线| 91麻豆精品秘密| 国产精品自在欧美一区| 午夜电影久久久| 亚洲色欲色欲www在线观看| 精品精品国产高清a毛片牛牛| 在线日韩国产精品| 99vv1com这只有精品| 黄一区二区三区| 视频一区中文字幕| 一区二区三区四区在线播放| 国产精品乱人伦一区二区| 精品理论电影在线| 91麻豆精品国产91久久久久| 91久久人澡人人添人人爽欧美| 国内成人自拍视频| 老司机免费视频一区二区| 午夜视黄欧洲亚洲| 亚洲电影中文字幕在线观看| 亚洲人快播电影网| 国产精品久久久久久户外露出| 欧美精品一区二区三区在线| 91精品婷婷国产综合久久| 在线观看www91| 日本韩国精品在线| 色久优优欧美色久优优| 91丨porny丨国产入口| 成人综合婷婷国产精品久久免费| 精品一区二区三区欧美| 紧缚捆绑精品一区二区| 久久精品999| 久久99精品久久久久婷婷| 另类欧美日韩国产在线| 精品一区二区三区久久| 激情综合网av| 国产又粗又猛又爽又黄91精品| 免费在线观看成人| 蜜臀av国产精品久久久久 | 日韩色视频在线观看| 欧美日本免费一区二区三区| 欧美日韩一区二区三区四区| 欧美人妇做爰xxxⅹ性高电影| 欧美四级电影在线观看| 欧美午夜理伦三级在线观看| 欧美日韩精品系列| 91精品免费在线观看| 日韩欧美国产不卡| 久久蜜桃av一区二区天堂| 久久久高清一区二区三区| 国产精品伦理在线| 一区二区成人在线视频| 亚洲国产色一区| 免费欧美在线视频| 黑人精品欧美一区二区蜜桃| 国产精品一区二区在线播放| 不卡av免费在线观看| 91久久精品一区二区| 91精品国产综合久久精品| 精品日韩成人av| 国产亚洲视频系列| 自拍偷拍欧美精品| 亚洲图片欧美综合| 美女脱光内衣内裤视频久久影院| 激情五月婷婷综合| 99热精品国产| 欧美日韩另类国产亚洲欧美一级| 欧美成人伊人久久综合网| 国产精品久久久久久久蜜臀| 午夜国产不卡在线观看视频| 韩国精品久久久| 日本韩国欧美一区| 2020国产成人综合网| 日韩毛片一二三区| 蜜臀a∨国产成人精品| 99久久99久久免费精品蜜臀| 欧美老肥妇做.爰bbww视频| 久久久久综合网| 亚洲高清免费在线| 国产美女av一区二区三区| 91丝袜美腿高跟国产极品老师| 欧美日韩一区在线| 中文字幕av不卡| 亚洲成av人影院| 国v精品久久久网| 精品视频一区二区三区免费| 久久婷婷综合激情| 午夜亚洲国产au精品一区二区| 国产精品性做久久久久久| 欧美日韩三级一区二区| 国产精品嫩草久久久久| 免费在线观看不卡| 欧美自拍偷拍一区| 日本一区二区三区在线观看| 日韩成人免费电影| 色哟哟亚洲精品| 国产色综合一区| 日本vs亚洲vs韩国一区三区| 91老师片黄在线观看| 精品国精品国产尤物美女| 天天综合网 天天综合色| bt7086福利一区国产| 久久综合色婷婷| 五月激情综合网| 91黄色小视频| 国产精品毛片a∨一区二区三区| 日韩va欧美va亚洲va久久| 91亚洲国产成人精品一区二区三| 精品伦理精品一区| 日韩影院精彩在线| 欧美性视频一区二区三区| 国产精品久久网站| 国产99一区视频免费| 精品999久久久| 日韩高清一级片| 欧美日本一区二区三区四区| 亚洲一区二区三区自拍| 91免费精品国自产拍在线不卡| 久久久五月婷婷| 国产在线日韩欧美| 久久久久久久综合| 国产一区在线精品| 26uuu成人网一区二区三区| 美女网站一区二区| 日韩女同互慰一区二区| 人禽交欧美网站| 91精品婷婷国产综合久久性色 | 国产欧美在线观看一区| 国产一区二区三区免费观看 | 伊人婷婷欧美激情| 一本到高清视频免费精品| 综合色中文字幕| 色婷婷久久久久swag精品| 一区二区久久久| 欧美亚洲自拍偷拍| 亚洲国产精品久久久男人的天堂| 在线观看日韩高清av| 亚洲国产一区二区三区| 欧美在线免费视屏| 亚洲自拍另类综合| 欧美精品第1页| 老司机午夜精品| 久久久不卡网国产精品一区| 国产精品66部| 亚洲日韩欧美一区二区在线| 色婷婷av久久久久久久| 麻豆成人久久精品二区三区小说| 欧美美女一区二区三区| 热久久国产精品| 国产亚洲欧美激情| 99视频精品全部免费在线| 亚洲制服丝袜一区| 欧美日本一道本在线视频| 久久成人av少妇免费| 久久精品视频一区二区| 91网站视频在线观看| 日日夜夜免费精品| 国产喂奶挤奶一区二区三区| 99久久99久久精品免费看蜜桃| 亚洲欧美色图小说| 91精品免费观看| 国产suv一区二区三区88区| 亚洲视频在线观看一区| 欧美日韩国产另类不卡| 国内精品伊人久久久久av一坑 | 蜜臀99久久精品久久久久久软件| 精品福利二区三区| 96av麻豆蜜桃一区二区| 视频一区视频二区在线观看| 国产亚洲一区字幕| 欧美无砖砖区免费| 精品中文字幕一区二区| 亚洲欧美一区二区视频| 777色狠狠一区二区三区| 国产99精品在线观看| 一区二区三区在线视频免费观看| 日韩午夜三级在线| 9久草视频在线视频精品| 人人狠狠综合久久亚洲| ●精品国产综合乱码久久久久| 日韩一区二区三区视频在线 | 欧美精品18+| 成人深夜福利app| 蜜臀av一区二区在线免费观看 | 国产亚洲欧美色| 欧美日本国产一区| av亚洲精华国产精华精华| 日韩1区2区3区| 日韩毛片精品高清免费| 2019国产精品| 91精品国产麻豆国产自产在线 | 国产精品天天摸av网| 69堂成人精品免费视频| 一道本成人在线| 丁香激情综合五月| 奇米影视在线99精品| 一区二区三区中文在线观看| 中文字幕精品在线不卡|