Listing 5 shows the completed code for the Order class.
清单5显示了Order类的完成后的代码。
Our next example, shown in Figure 2, is a query with an ORDER BY clause using the code below.
我们的下一个例子,如图2所示,是一个含有ORDERBY子句的查询,它使用了下面的代码。
The one line of code in the class body of Order defines its relationship to the Item object.
在Order类体中有一行代码定义了它与Item对象的关系。
The UML To C++ transformation provides an option to generate the code in the order of public elements, followed by protected and private, respectively.
UML到 C++的转换提供了一个以公共元素、被保护元素、私有元素这一顺序生成代码的选项。
Listing 12 shows the code in main and its implementation of this order.
清单12展示了main中的代码和对此顺序的实现。
Switching the state by the order code, the system can be in the state of beacon or response.
通过切换命令码的状态,系统可分别工作在信标和应答状态下。
This helps people who work with the code understand it, and it also makes the allowed order of events explicit.
这有助于处理代码的人理解逻辑,也能清楚表明事件允许的出现顺序。
Once again, the tradeoff is that batch database operations do not necessarily process updates in the same order as the code, but they do generally result in better performance.
再次说明,批处理数据库操作的折衷在于,这种操作不会按与代码中相同的顺序来处理更新,但通常会带来更好的性能。
Information in a data document appears in an order that can be anticipated in the code.
数据文档中的信息以可在代码中预料的次序出现。
This technique relies on the compiler compiling the member variables in the same order as they are found in source code, so be wary of code formatting utilities that automatically sort your code.
这个技术依赖于编译器以代码中出现的先后顺序来编译成员变量的特点,所以要小心那些会自动排序代码的代码格式化工具。
The views shuffle around the column order of the tables so that the columns correspond to the order expected by the generated EJB persistence code.
视图改变表中的列顺序,以便这些列与生成的EJB 持久性代码所期望的顺序相对应。
You can now be sure you know the order in which responses come back to the client, enabling you to write code that can predict the order of events.
现在,您可以确保知道响应返回到客户端的顺序,从而可以根据事件的顺序编写代码。
The code gets quite complex because XML elements in SAX are read in order from top to bottom of the XML document.
代码变得十分复杂,因为SAX中的XML元素是按照从顶部到底部的顺序从 XML文档中读取的。
To do this, you'd need to modify the source code for Order and Contract to implement the new interface.
要做到这一点,您需要修改Order和Contract的源代码,以便实现新的接口。
In order to properly analyze the coverage statistics in the Rational Code coverage feature, it is important to understand the technology used behind the scenes.
为了适当地分析RationalCodeCoverage特性中的覆盖率统计数据,理解场景背后所用到的技术是非常重要的。
Depending on the sort order that you need, the code that you write for this bean specifies whether that column should be sorted in ascending or descending order or not sorted.
对于您所需要的排序顺序,您为这个bean所编写的代码要么可以以升序或降序的方式排序,要么不能排序。
The resource handlers contain very little code in order to process incoming data, and the ZRM completely hides interactions with the back end database.
资源处理程序仅包含少量代码,用于处理输入数据,并且ZRM完全隐藏了与后端数据库的交互。
In VS2008 for example, we inserted comments into generated unit test code in order to help beginner users to understand the various components of a unit test.
例如在VS 2008中,我们在生成的单元测试代码里加入注释来帮助初学者理解一个单元测试的各个组成部分。
This article instead attaches the policies directly to the client and server in order to be compatible with the 1.4.1 code.
本文将把策略直接连接到客户机和服务器,从而实现与1.4.1代码的兼容性。
Some might say that Ruby's syntax is terse, and it's that way with a purpose: this language lets you create concise working code in short order.
有人可能会说Ruby的语法很简洁,这正是它的意图:这种语言使开发人员可以迅速编写简洁的代码。
Applications do not need to change any code, nor be recompiled, in order to take advantage of these improvements so the benefits are automatic.
这些改进会自动生效,无需改变应用程序的任何代码,也不用重新编译。
When it gets the service's published object, it will download any code it needs in order to talk to the service, thereby learning how to talk to the particular service implementation via the API.
当它得到服务的已发布对象时,它将下载与该服务通信所需的任何代码,从而学习如何通过这个API与特定的服务实现进行通信。
Understanding and maintaining the authorization policy will be an order of magnitude more difficult, even if the code is free from defects.
了解和维护授权策略更加困难,即使代码没有任何缺陷。
The code needs only the Hibernate and HSQLDB libraries in order to compile and run properly.
只需要Hibernate和hsqldb库,这些代码就可以正确地编译和运行。
Your client application code will utilize these classes in order to issue remote calls to the Web service methods exposed by the PresenceMonitor implementation class.
您的客户端应用程序代码将利用这些类,将远程调用发送给PresenceMonitor实现类公开的Web方法。
This code is all one needs to write in order to have an entity model created for him, including all underlying plumbing needed to store the model in a database.
要想创建实体模型,上面这些代码足矣,它包含了将模型存储到数据库中所需的一切底层信息。
It is highly recommended to place custom code in a second source folder. In order to add a second source folder, use the following steps.
我们强烈推荐将定制代码存入次级源文件夹中。
The XML code and the relational code to create the purchase order are mostly identical, with the only difference being the query to find the current price of the product.
用于创建采购订单的XML代码和关系代码大部分都相同,惟一的差别是用于查找产品当前价格的查询。
Better yet, you can add completely new types of order processing with very minimal change to the existing code.
更好的是,你可以添加全新类型的订单处理程序而只需要对现有代码做细小的改动。
Now, send the message containing the purchase order to the Amazon SQS queue using the code in Listing 14.
现在,使用清单14中的代码将包含购买订单的消息发送到AmazonSQS队列。
应用推荐