If a record name is not specified, the class name is used.
如果一个记录名称没有指定,那么将会使用类名。
Each instance of an active record class is tied to a specific row in a database.
一个活动记录的每个实例都关系到数据库内的特定行。
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()类的实例,并把这个实例关联到记录枚举对象。
Stub jca — is used to generate a Record class for J2C applications.
stubjca——用于生成J2C应用程序的record类。
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类对记录模拟措施是个有用的工具,但您也可以通过您想使用的其它任何技术来记录事件。
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类上线。
But the best news is that WISE has found a record-breaking Y-class dwarf.
而最好的消息则是,WISE日前发现了一颗被标记为Y型的褐矮星。
Critics often compare India to the other Asian giant, China, which has built world-class infrastructure in record time.
观察人士常常把印度和亚洲另外一个经济大国中国相比。中国在创记录的短时间内修建了世界一流的基础设施。
Our class made the record that no one can break, because we got zero in the match.
我们班打破了一个没人能破的记录,因为我们在比赛中得了零分。
With next fall's college freshman class expected to approach a record 2.9 million students, hundreds of thousands of applicants will soon be receiving the dreaded letters.
由于今年秋季美国大学新生班预计将容纳创纪录的290万名学生,数十万申请者将很快会收到这种恐怖的信件。
Teachers in UK schools are trialling the use of bodycameras in class to record bad pupils' behaviour, ithas been revealed.
英国学校的教师们正在尝试在课堂上使用随身摄像头,记录表现差的孩子们的行为。
If you are unable to attend for up to three working days then you must contact your Class Tutor and complete a Student Absence Record in the Programme Office.
如果是3天以内请假,必须联系班主任并在项目办公室填写学生缺席记录。
Yet the number of Harvard applications has soared the past three years, now at a record high, with 34 percent more for the class of 2020 than for 2013.
然而,哈佛的入学申请数量在过去三年中出现激增,现在达到了创纪录的数量,2020年毕业的那一届要比2013年多出34%。
Besides, Li Lin from Class 7 broke the school record for 100-meter race and Class 11 won the team title.
另外还有来自7班的李林打破了100米短跑的学校记录,11班获得了团体总分第一。
Besides, Li Lin from Class 7 broke the school record for 100-meter race and Class 11 won the team title.
另外还有来自7班的李林打破了100米短跑的学校记录,11班获得了团体总分第一。
应用推荐