现在,让我们回到查找器方法。
I refer to these as finder methods or finders.
我将之称为查找器方法或查找器。
All finder methods are handled by the container.
所有的查找器方法都由容器来处理。
SQL or EJB-QL that is needed to implement custom finder methods.
SQL或者EJB - QL,用来实现定制查找程序方法。
The data Access Object got several finder methods to query the database.
数据访问对象(Data Access Object)有一些搜索方法以查询数据库。
The example below shows two finder methods and the FinderHelper interface.
该示例显示了两个查找器方法以及FinderHelper接口。
It also offers dynamic finder methods and auto-generates the JUnit integration tests.
它还提供了动态查找方法并能自动产生JUnit集成测试。
Define an interface that extends GenericDao and contains any finder methods you need.
定义一个接口,它扩展GenericDao并包含所需的任何查找器方法。
Implementation of EJB finder methods in the bean class is not supported by this runtime.
这个运行时不支持bean类中的EJBfinder方法实现。
As a result the editor supports code completion of dynamic methods such as finder methods.
这样做带来的结果是:对诸如finder方法之类的动态方法,编辑器也能够实现代码自动完成功能。
The last mapping we need is between the finder methods and the result rows in the database.
最后我们需要在查找器方法与数据库中的结果行之间建立映射。
In WAS, this is handled by defining finder methods on the Home interface called custom finders.
在WAS 中,这是通过在Home接口上定义名为定制查找器的查找器方法实现的。
Now look at the FinderHelper interface that is used in conjunction with these two finder methods.
现在来看一下FinderHelper接口,该接口与这两个查找器方法一起联合使用。
I conclude my discussion with a look at the code (written just once!) that executes my finder methods.
查看执行查找器方法的代码(只编写了一次!)来结束我的讨论。
The concrete DAO for the Person entity class should add finder methods that are specific to the Person entity.
Person实体类的具体DAO应该增加一个特定于Person实体的finder方法。
In my DAO implementation, I use introductions to add a number of finder methods to my existing generic DAO class.
在我的DAO实现中,我使用introductions将许多查找器方法添加到现有泛型dao类中。
Each of these finder methods will accept different parameters, and each may return one errand or multiple errands.
这些查找器方法中的每一个都将接受不同的参数,每一个都可以返回一个或多个差事。
Because the finder methods are specific to each domain object, they are applied to the typed interfaces of the generic DAO.
因为查找器方法是特定于每个域对象的,因此将其应用于泛型DAO的类型化接口。
You see that it defines how to map each method to a particular table and column and specifies which columns are primary keys, finder methods, and so on.
从这段代码中可以看出,它定义了如何将一个方法映射到一个特定的表和列上,并指定哪些列是主键、查找方法,等等。
Active Record Query Interface 3.0 - Pratik Naik demonstrates ActiveRecord's finder methods and shows how a number of techniques are being deprecated in Rails 3.1.
Pratik Naik演示了ActiveRecord的finder方法,以及一些在Rails 3.1中将不再支持的技巧。
Using the Home interface, the client then finds the specific instance or instances needed by that application by invoking one of the finder methods on the Home interface.
使用Home接口,客户机随后通过调用Home接口的其中一个查找器方法查找到了该应用程序所需的特定的实例或多个实例。
The home interface declares method signatures for any method that creates new instances of the bean, and for all methods that are used to retrieve instances of the bean (finder methods).
该宿主接口声明任何创建bean新实例的方法以及所有用来检索bean实例的方法(finder方法)的方法签名。
Finder methods can have any input parameters.
查找器方法可以拥有任意输入参数。
Finder methods return the bean's Remote interface or an enumeration of Remote interfaces.
查找器方法返回bean的Remote接口或一个Remote接口的枚举。
Finder methods declared in the EJBHome interface of a bean must be associated with a query that is typically defined in another file.
在bean的EJBHome接口中声明的finder方法必须与一个查询相关联,查询通常在另一个文件中定义。
It is common to have additional "finder" methods defined for a given entity bean within an application.
在应用程序中通常为给定的实体bean定义额外的“finder ”方法。
It is common to have additional "finder" methods defined for a given entity bean within an application.
在应用程序中通常为给定的实体bean定义额外的“finder ”方法。
应用推荐