现在,让我们回到查找器方法。
All finder methods are handled by the container.
所有的查找器方法都由容器来处理。
I refer to these as finder methods or finders.
我将之称为查找器方法或查找器。
“Search is still essentially a Web site finder.” Mr. Lu says.
“搜索从本质上讲就是一个网站查找工具”Mr. Lu说。
As a placeholder for the input parameter on the finder method.
作为查找器方法的输入参数的占位符。
SQL or EJB-QL that is needed to implement custom finder methods.
SQL或者EJB - QL,用来实现定制查找程序方法。
ETC USES a different approach to implement the custom finder function.
ETC使用不同的方式实现定制的finder方法。
That's the problem domain to tackle: create a perfect-number finder.
这就是要处理的问题域:创建一个完全数查找程序。
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接口。
Electronic viewfinders cannot match the clarity of a good optical finder.
电子取景器清晰度还无法和光学取景器相比。
The database lookup for the Speaker is done using the finder we created above.
数据库查找Speaker 是使用我们之前创建的查找程序。
Notice that to the deployer, the CMR is handled just like a normal finder method.
请注意,对于部署人员而言,CMR的处理方式与普通查找程序方法很相似。
It looks poorest when you are richest.The fault-finder will find faults in paradise.
你最富有的时候,倒是看似最穷。爱找缺点的人就是到天堂里也能找到缺点。
The finder services would then, in a single call, return the objects for all IDs given.
因而,finder服务将在一个调用中返回所有给定id的对象。
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方法之类的动态方法,编辑器也能够实现代码自动完成功能。
Actually, all that was changed here is the first line in the index method: the finder query.
实际上,在这里只修改了index方法中的第一行:finder查询。
The last mapping we need is between the finder methods and the result rows in the database.
最后我们需要在查找器方法与数据库中的结果行之间建立映射。
Add a named query for each finder method to the hbm.xml mapping file for the domain object.
将每个查找器的命名查询添加到域对象的hbm . xml映射文件。
If a special finder method is required, it can be entered directly in the XML description file.
如果需要特殊的finder方法,可以直接在XML描述文件中输入。
FindByPrimaryKey is one finder method, but you may want to retrieve a bean using something else.
findByPrimaryKey是一个查找器方法,但您可能希望使用其它方法检索bean。
Now look at the FinderHelper interface that is used in conjunction with these two finder methods.
现在来看一下FinderHelper接口,该接口与这两个查找器方法一起联合使用。
In WAS, this is handled by defining finder methods on the Home interface called custom finders.
在WAS 中,这是通过在Home接口上定义名为定制查找器的查找器方法实现的。
There is no default finder target policy, thus find looks for an instance in all slices by default.
由于没有默认的查找定向策略,因此,find会默认地在所有片内查找一个实例。
It is common to have additional "finder" methods defined for a given entity bean within an application.
在应用程序中通常为给定的实体bean定义额外的“finder ”方法。
I conclude my discussion with a look at the code (written just once!) that executes my finder methods.
查看执行查找器方法的代码(只编写了一次!)来结束我的讨论。
Custom finder helpers allow applications to work with the EJB container to access the appropriate EJBs.
定制查找器助手允许应用程序与ejb容器一起工作来访问适当的EJB。
应用推荐