本文是中英对照毕业设计论文外文文献翻译,下载后直接可用!省去您找文献、pdf整理成word以及翻译的时间!一辈子也就一次的事!
文献引用作者出处信息:Josh Juneau, Jim Baker, Victor Ng, Frank Wierzbicki, Leo Soto Mu?oz The Definitive Guide to Jython Python for the Java Platform,2020(如觉得年份太老,可改为近2年,毕竟很多毕业生都这样做)
英文5408单词,32008字符(字符就是印刷符),中文8566汉字。(如果字数多了,可自行删减,大多数学校都是要求选取外文的一部分内容进行翻译的。)
Databases and Jython: Object Relational Mapping and Using JDBC
In this chapter, we will look at zxJDBC package, which is a standard part of Jython since version 2.1 and complies with the Python 2.0 DBI standard. zxJDBC can be an appropriate choice for simple one-off scripts where database portability is not a concern. In addition, it’s (generally) necessary to use zxJDBC when writing a new dialect for SQLAlchemy or Django. (But that’s not strictly true: you can use pg8000, a pure Python DBI driver, and of course write your own DBI drivers. But please don’t do that.) So knowing how zxJDBC works can be useful when working with these packages. However, it’s too low level for us to recommend for more general usage. Use SQLAlchemy or Django if at all possible. Finally, JDBC itself is also directly accessible, like any other Java package from Jython. Simply use the java.sql package. In practice this should be rarely necessary.
The second portion of this chapter will focus on using object relational mapping with Jython. The release of Jython 2.5 has presented many new options for object relational mapping. In this chapter we’ll focus on using SQLAlchemy with Jython, as well as using Java technologies such as Hibernate. In the end you should have a couple of different choices for using object relational mapping in your Jython applications.
ZxJDBC—Using Python’s DB API via JDBC
The zxJDBC package provides an easy-to-use Python wrapper around JDBC. zxJDBC bridges two standards:
?JDBC is the standard platform for database access in Java.
?DBI is the standard database API for Python apps.
ZxJDBC, part of Jython, provides a DBI 2.0 standard compliant interface to JDBC.