Inheritance: Annotations — Single table, joined table, and table per class.
继承:标注——单个表、联合表和按类表。
Classes can be derived from only a single class, but they can implement multiple interfaces.
类只可以从一个单一的类派生,但它们可以实现多个接口。
Grails gives you a place to store commonly used methods that transcend any single domain class: services.
Grails为您提供了保存常用方法的位置,并且超越了任何单个的域类:即服务。
The solution to this type of duplication is to refactor the code into a single Factors class, which appears in Listing 3.
去除重复的解决方案是将代码重构为一个单一的factors类,如清单3所示。
And there you have it: a single dynamic database access class that can bend itself to fit any table in your database.
现在就得到了单个动态的数据库访问类,它能够让自己适应到数据库中的任何表。
The model generalizes the equilibrium model for stochastic traffic networks of single class of travelers.
该模型概括了旅客的单类随机交通网络均衡模型。
Ceramics, Pottery, or Sculpting: Going to a single class, or taking a series of ceramic classes can give you a chance to sit and talk while experimenting with your creativity.
陶艺与雕刻:参加陶艺课程,无论单次还是系列的,都能给你一面坐着交谈一面实践创造力的机会。
This works well for single method changes or class extensions to already existing libraries.
这种模式非常适合单个方法的修改或者是在已有类库的基础上对类进行扩展。
Most important of all, property is by far the world's biggest single asset class.
最重要的是,房地产业是迄今为止世界上最大的单一资产类别。
This allows a single JSP class to be reloaded when necessary, without affecting any other loaded JSP classes.
这使得在必要时可重新加载单独的jsp类,而不会影响到任何其它加载的jsp类。
The ServiceUI class provides a single method to display the printer selection dialog
ServiceUI类提供一个单独的方法来显示打印机选择对话框
Annotation driven approaches work well if there is a single configuration being used per class which is pretty much what you need 90% + of the time.
如果各个类有一个简单的配置,能够满足超过90%的需要,那么标注驱动的方法是可行的。
Figure 8 presents the solution for the third mapping strategy — mapping a single class to a single data entity.
图8显示了第三种映射策略的解决方案——将单个类映射成单个数据实体。
The class covers security hardening, customizing authentication, integration, single sign on, and a variety of other related topics in depth.
这个课程深入讲解安全性加强、定制身份验证、集成、单点登录和各种其他相关主题。
For a single class, you can define the name of the class, its attributes, and its operations.
对于一个单独的类,你可以定义类的名字,属性和操作。
The ClassTransformer's single method - transform - is passed the class to be redefined and a byte array containing the class's bytecode.
ClassTransformer的单个方法—transform—被传入要重定义的类和包含类的字节码的字节数组。
As opposed to languages that only support single inheritance, Scala has a more general notion of class reuse.
与只支持单继承的语言相比,Scala具有更广泛意义上的类重用。
You can have multiple events on a single page, each wrapped in a tag marked with the vevent class.
单独的一个页面上可以有多个事件,各事件均包含于一个用vevent类进行标记的标记中。
Modern vector control for malaria is exceptionally dependent on a single class of molecule, the pyrethroids.
现代的疟疾病媒控制特别依赖于单一化学分子,即除虫菊酯。
Martin Fowler describes it as: Putting all presentation state and behavior for a window in a single class.
MartinFowler的回答是:将一个窗口所有的表现状态和行为都放在一个类里。
The third solution, which I cover in this article, is to write a single class that dynamically molds itself at runtime to the fields of a given table.
第三个解决方案,也是我在本文中介绍的,是编写一个类,在运行时动态地把自己塑造成指定表的字段。
XDoclet is a tool that lets you write only a single class for EJB for database access instead of a minimum of four classes.
XDoclet是一个非常有用的工具,使用这个工具您只需要为访问数据库的EJB编写一个类即可,而不用编写4个类。
First map the author class to the single dw_authors table.
首先将author类映射到dw_authors表。
With singletons implemented as single instances instead of static class members, you can initialize the singleton lazily, creating it only when it is first used.
由于单例对象作为实例存在而不是类的静态成员,所以你能够惰性地初始化单例对象,即只需要在第一次用它的时候才去创建它。
The next step is to create an instance of QueryExecution, a class that represents a single execution of a query.
下一步是创建QueryExecution的实例,这个类表示查询的一个执行。
The framework is easy to use for most benchmarking needs: just package the target code into some type of task object (either a Callable or Runnable) and then make a single call to the benchmark class.
这个框架很容易满足大多数基准测试需求:只要把目标代码打包成特定类型的任务对象(Callable或Runnable),然后调用benchmark类。
The function f is type as a function that takes a single input parameter of type View (another class from Android) and returns Unit, which is the Scala equivalent of void.
这个函数f的类型为带一个View 类型(Android中的另一个类)的输入参数的函数,并返回Unit,它是void在Scala 中的对等物。
Templates let us write a single class or function definition that can be used on a variety of types.
使用模板可以编写一个类定义或函数定义,而用于多个不同的数据类型。
You can put all of them in a single class or interface (to centralize all of your message definitions in a single location), or you can place these constants in the classes where they are used.
可以将它们放在单独的类或接口中(将所有消息定义集中到一个地点),也可以放在使用到它们的类中。
Mali did not have a single advanced programming class at the national university, so working to develop the first generation of programmers in Mali has been extremely exciting for Berg.
马里国立大学没有开设高级程序设计课程,因而对Berg来说,为马里培养第一代程序员充满刺激。
应用推荐