The user record class is as follows.
用户记录类如下所示。
Stub jca — is used to generate a Record class for J2C applications.
stubjca——用于生成J2C应用程序的record类。
Each instance of an active record class is tied to a specific row in a database.
一个活动记录的每个实例都关系到数据库内的特定行。
In both cases, the wizard generates a command class and a user record class.
在这两种情况下,向导都生成一个命令类和一个用户记录类。
The user record class contains a column map for the database table you selected.
用户记录类包含所选数据库表的列映射。
If you select a templated consumer, the wizard generates a command class and a user record class.
如果选择模板使用者,则向导生成一个命令类和一个用户记录类。
The wizard generates a command class and a user record class, as shown in Consumer Wizard-Generated Classes.
向导生成命令类和用户记录类,如使用者向导生成的类中所示。
Although the user record class appears in class View, double-clicking it navigates to the command or table class in the header file instead.
虽然用户记录类出现在“类视图”中,但双击它时却会定位到头文件中的命令或表类。
The basic way to access information from a database is to create a command (or table) class and a user record class for a particular table in the database.
访问数据库中信息的基本方法是针对数据库中的特定表创建命令(或表)类和用户记录类。
Scaffolding quickly put an Active Record class online by providing standardized actions for listing, showing, creating, updating, and destroying objects of the class.
scaffolding通过提供列出、显示、创建、更新和销毁类的对象的标准化动作,快速地使一个Activerecord类上线。
If a record name is not specified, the class name is used.
如果一个记录名称没有指定,那么将会使用类名。
It's a huge price to pay in a pass-no-record first semester class. And, you know who is most severe on the committee on discipline?
这个代价太大了,只为了,第一次学期通过一门无记录的课程,你们知道着纪律委员会,谁最为严厉吗?
Whereas the singleton implementation uses the subclass's class name, other patterns (such as active record, covered later) need to reference other static properties.
尽管单例实现使用的是子类的类名,其他的模式(比如稍后介绍的活动记录模式)需要引用其他的静态属性。
You can find a list of the Active Record model validations that can be defined in the class scope here.
在这里可以找到可以在类范围中定义的ActiveRecord模型检验列表。
The fact that Class::DBI simplifies record operations to one-liners makes embedding Perl code in the database feasible and palatable.
DBI 将对记录的操作简化为单行形式(one-liner),这一事实使得在数据库中嵌入Perl代码既切实可行又令人满意。
In this case, we will follow the Active Record pattern and wrap a database row with a class capable of all database operations. Its code is shown below.
在本例中,我们将遵循activeRecord模式并用能够执行所有数据库操作的类封装数据库行。
Through some nifty lexical analysis, Active Record is able to determine that the ORDER class will map to the ORDERS table in the database.
通过一些漂亮的词汇分析,ActiveRecord能够判断出,Order类将映射到数据库中的ORDERS表。
Active Record doesn't require a mapping file, as Hibernate does; in fact, a developer working with Active Record doesn't need to code getters or setters, or even the properties of the class.
与Hibernate一样,ActiveRecord不需要映射文件;实际上,使用Active Record的开发人员不需要对getter或setter、甚至类的属性进行编码。
This consists of allocating an instance of our SearchFilter() class and associating this instance with a record enumeration object.
这个过程包括指派一个SearchFilter()类的实例,并把这个实例关联到记录枚举对象。
Listing 11 shows a simple class implementing the Comparator interface to sort records based on comparing the string contents of each record.
清单11展示了一个实现了Comparator接口的简单类,它通过比较每条记录的字符串内容对记录进行排序。
The AS400FileRecordDescription class provides methods for retrieving the record format of a system file.
AS400 filerecorddescription类提供一些方法来检索系统文件的记录格式。
Listing 12 a test class for a polymorphic Facebook user record.
清单12一条多态Facebook用户记录的测试类。
The com.ibm.lpex.preload extension point allows the LPEX Editor plug-in to record, upon initialization, the class loaders of all declaring client plug-ins.
preload扩展点允许LPEXEditor插件在初始化后记录所有声明客户机插件的类加载器。
These parameters can be put into a C-like structure (or pascal-like record) class named HsqldbParams, which is shown in Listing 9.
这些参数可以被放入一个类似c结构(或类似pascal记录)的名为HsqldbParams的类中,如清单9所示。
The comparator class is followed by the code to create an instance of the comparator and pass this as a parameter when creating a record enumeration.
紧跟comparator类之后的代码创建了一个比较器的实例,并在创建记录枚举时将其作为一个参数。
Active Record associates a class with a table and dynamically adds an attribute to each class for every column in the database.
ActiveRecord将类和表关联起来,并按照数据库中的每一列给每个类动态地添加一个属性。
The KeyedFile class represents a system file that has access by key while the SequentialFile class represents a system file that has access by record number.
Keyed file类表示一个通过密钥访问的系统文件,而sequentialfile类表示一个通过记录编号访问的系统文件。
The provided Monitor class is a useful tool for logging simulation measures, but you could record events by any other technique you wished also.
该库提供的Monitor类对记录模拟措施是个有用的工具,但您也可以通过您想使用的其它任何技术来记录事件。
But the best news is that WISE has found a record-breaking Y-class dwarf.
而最好的消息则是,WISE日前发现了一颗被标记为Y型的褐矮星。
But the best news is that WISE has found a record-breaking Y-class dwarf.
而最好的消息则是,WISE日前发现了一颗被标记为Y型的褐矮星。
应用推荐