Building the model and utility class.
构建模型和实用程序类。
Listing 3 shows the utility class for ECS.
清单3展示了用于ECS的工具类。
XMLConfigurator: a configuration utility class.
XMLConfigurator:配置实用类。
The listing shows a utility class that gets used by the unit test.
这个清单给出单元测试使用的实用程序类。
Listing 7 shows how to setup a SAX parser with that same utility class.
清单7展示了如何使用这个相同的实用类来设置一个SAX解析器。
You also need a utility class for creating appropriate URLs in your feed.
您还需要使用一个实用类在提要中创建相应的URL。
This utility class can have functions for all such keywords or functions.
这个实用程序类可以包含针对所有这类关键字或函数的函数。
Next, policy and signature are generated with the utility class we built.
接下来,我们所创建的工具类会创建策略和签名。
It then calls a new method in the DB utility class we have used previously.
然后将在以前使用的DB实用程序类中调用新方法。
The BaseDbProvider provides a utility class for working with MySQL databases.
BaseDbProvider 为使用MySQL数据库提供一个实用程序类。
Create data classes and a utility class for getting an EntityManager instance.
创建数据类和一个实用类来获取EntityManager实例。
For each dynamic service obtained, the corresponding services utility class is invoked.
获得的每个动态服务都将调用对应的服务实用程序类。
XDoclet also generates a utility class used to look up the home and remote interfaces.
XDoclet还生成一个工具类,用来查询home和remote接口。
This change to the utility class is the first since the Collections Framework debuted in J2SE 1.2.
自从集合框架初次出现在J2SE 1.2 中以来,人们第一次对实用工具类进行了更改。
A simple utility class is created to easily get the instance of the async remote interface (lines 7-13 in Listing 8).
通过创建简单的实用程序类很容易获得异步远程接口的实例(清单8中的第7 - 13行)。
In this example the method is a series of if statements that divert control to different locations within our utility class.
在这个示例中,该方法是一个if语句序列,这些语句将控制权转移到我们的实用程序类中的不同位置。
The code USES JMSParameter.properties and JMS_Client utility class, which are shown in Listing 5 and Listing 6, respectively.
代码使用JMSParameter . properties与JMS_Client实用类,分别如清单5与清单6所示。
So you can rewrite the code in Listing 10 a little bit by putting the locale get method in a utility class, as Listing 11 shows.
这样您就可以将场所获取方法放在工具类中,来重写列表10中的代码,如列表11所示。
The javax.xml.datatypes package also defines the DatatypeConstants utility class that contains basic data type values as constants.
datatypes包还定义了DatatypeConstants 工具类,以常量定义了基本的数据类型值。
The service utility class is responsible for dynamically creating a SOAP request and getting the response back from the SOAP server.
服务实用程序负责动态创建SOAP请求,并从SOAP服务器取回响应。
Continuing with this design, you can place all of the business logic and transition mapping in a utility class for use by both our controller and JSPs.
继续这个设计,您可以将所有的业务逻辑和转换映射放在一个实用程序类中,以供我们的控制器和JSP使用。
Lines 41-54 shows how the primary key is created from an EPR by making use of the EPRHelper utility class, included in the WASv5WSAExtensions.jar library.
第41 - 54行说明了如何通过使用包含在WASv5WSAExtensions . jar库中的EPRHelper实用类来从epr创建主键。
I mentioned earlier that the TypeDescriptor class is a utility class that is used to obtain information about a type's properties, attributes, and events.
我在前面提到过,TypeDescriptor类是一个实用性的类,它用于获得有关类型的属性、特性和事件的信息。
The CustomerService bean is a utility class that implements methods to access the database for adding, updating, removing, and retrieving customer information.
CustomerServicebean是个工具类,它实现了访问数据库以增加、更新、删除和查询用户信息的方法。
These are primarily interfaces for parsing and building Document and Element objects and a utility class that makes reading and writing Document streams easier.
它们主要是解析和构建Document 和Element对象的接口,一个工具类使读和写 Document流更容易。
The key reason why we decided to have a utility class for data access was to ensure that the same classes could be used to connect to any type of Domino database.
决定实现一个实用程序类来进行数据访问的关键原因是,希望确保可以使用相同的类来连接任何类型的Domino数据库。
In fact, you might want to bundle up the code you write to handle data source configuration and connection into a utility class (that's left for you as an exercise).
实际上可以将处理数据源配置和连接的代码打包成一个工具类(留给读者作为练习)。
If the table doesn't exist, it invokes the database initialization code, ResourcesDatabaseInitializer, which in this example is a utility class that initializes the database.
如果该表不存在,则它调用数据库初始化代码ResourcesDatabaseInitializer,该代码在此示例中是初始化数据库的实用程序类。
The Sca framework provides an ScaTestExecutor utility class that manages the loading of test data and executes the corresponding test. The code for test methods, then, becomes very simple.
Sca框架提供了管理测试数据加载的ScaTestExecutor实用工具类,它可以执行相应的测试。
It also hurts the design of your domain classes because this utility class must now sit at the top of your object hierarchy, not allowing you to use inheritance to consolidate common behavior.
这还不利于域类的设计,因为这个实用类现在必须位于对象层次结构的顶层,不允许您使用继承来整合常见行为。
应用推荐