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使用。
Each service utility class has it own implementation, since the URN name and method name each needs to invoke will be unique.
因为每个服务实用程序类所需调用的UR n名和方法名都将是唯一的,所以它们都有其自己的实现。
For each dynamic service obtained, the corresponding services utility class is invoked.
获得的每个动态服务都将调用对应的服务实用程序类。
This utility class can have functions for all such keywords or functions.
这个实用程序类可以包含针对所有这类关键字或函数的函数。
JNDIREFNAMES is a utility class that holds the values of various types of references.
JNDIREFNAMES是一个实用程序类,它拥有引用的各种类型的值。
The listing shows a utility class that gets used by the unit test.
这个清单给出单元测试使用的实用程序类。
This change to the utility class is the first since the Collections Framework debuted in J2SE 1.2.
自从集合框架初次出现在J2SE 1.2 中以来,人们第一次对实用工具类进行了更改。
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.
这还不利于域类的设计,因为这个实用类现在必须位于对象层次结构的顶层,不允许您使用继承来整合常见行为。
It then calls a new method in the DB utility class we have used previously.
然后将在以前使用的DB实用程序类中调用新方法。
With the form taken care of, we need a utility class to create and sign policy documents.
为了保护这个表单,我们需要使用一个工具类来创建策略文档并签名。
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).
实际上可以将处理数据源配置和连接的代码打包成一个工具类(留给读者作为练习)。
This utility class, for convenience, is shown in Listing 3.
对于这个有效类,为方便起见,在清单3中给出。
In the example, the test verifies that the advice correctly marshals data from ITDs as well as the return value of the original join point, passes it to a utility class, and returns the new result.
在例子中,测试验证建议正确地编组了来自ITD的数据以及原来联结点的返回值、将它传递给一个工具类并返回新的结果。
It is expedient to create a utility class for these kinds of helper methods.
它有利于为这些种类的助手程序创建有效的类。
Listing 3 shows the utility class for ECS.
清单3展示了用于ECS的工具类。
Create a new helper function in your utility class that takes care of the necessary parsing (see Listing 14).
在您的有效类中创建一个有利于必要解析工作的新的助手功能。(请看列表14)。
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所示。
Not surprisingly, you can also use this utility class to output the SELECT result bindings as JSON, as shown in Listing 11.
毫不奇怪,使用这个工具类也能将SELECT结果邦定输出为JSON,如清单 11 所示。
One extra utility class implements a bit of fuzziness in the checking to get HTML documents to pass (even without having all the closing tags XML requires).
一个附加的实用程序类在进行检查时会产生一些小麻烦,它会让HTML文档通过检查(即使那些文档没有xml必需的结束标记)。
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,该代码在此示例中是初始化数据库的实用程序类。
I have included a utility class called EmailSubscriber in the sample code for this article, which abstracts some of the complexity.
我已经将名为EmailSubscriber的实用工具类包括在本文的示例代码中,该示例代码摘要了某些复杂的内容。
The BaseDbProvider provides a utility class for working with MySQL databases.
BaseDbProvider 为使用MySQL数据库提供一个实用程序类。
In this example the method is a series of if statements that divert control to different locations within our utility class.
在这个示例中,该方法是一个if语句序列,这些语句将控制权转移到我们的实用程序类中的不同位置。
For example, a utility class function called NVL would return NVL if the database connection is with Oracle, and COALESCE if the DB connection is with DB2.
例如,如果连接的是Oracle数据库,那么名为NVL的实用程序类函数返回nvl;如果连接的是DB2,那么返回COALESCE。
Notice that for each method, we make a call to a utility class, DbManager, to get a connection.
注意,对于每个方法,我们将调用实用程序类dbmanager以获得连接。
The Blether service USES the JpaTemplate utility class that the Spring framework provides to add additional methods for JPA.
Blether服务使用Spring框架提供的JpaTemplate实用工具类来为jpa添加其他方法。
The CustomerService bean is a utility class that implements methods to access the database for adding, updating, removing, and retrieving customer information.
CustomerServicebean是个工具类,它实现了访问数据库以增加、更新、删除和查询用户信息的方法。
The sample code USES a utility class EtagComputeUtils to generate a byte array representation of an object and to handle the MD 5 digest logic.
下面的例子使用了一个工具类etagcomputeutils来产生对象所对应的字节数组,并处理MD5摘要逻辑。
WebSphere provides a utility class com.ibm.ws.webservice.engine.utils.tcpmon to sniff the HTTP traffic between two points.
WebSphere提供实体类 com.ibm.ws.webservice.engine.utils.tcpmon 用以嗅探两点之间的HTTP通信。
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流更容易。
应用推荐