当完成工作时,活动记录转到激活状态。
Activity records are moved to the Activated state when work is being done.
一个活动记录的每个实例都关系到数据库内的特定行。
Each instance of an active record class is tied to a specific row in a database.
它不复制数据,例如,特定的请求、任务或者活动记录。
It does not copy the data, such as specific request, task, or activity records.
让我们先来看看活动记录设计模式的一个简单的部分实现。
Let's take at look at a simple (and partial) implementation of the active record design pattern.
活动记录模式则可用来在域类内包装关系数据库持久性方法。
You use the active record pattern to wrap relational database persistence methods in domain classes.
每个循环都反映活动记录和Streamlined的元数据。
Each one reflects on metadata from Active Record and Streamlined.
保持日常操作,维护和安全活动记录,并记录电厂运行报告。
Maintain a daily log of operation, maintenance and safety activities, and write reports on plant operation.
活动记录包含了这个函数的所有与调用有关的数据,包括参数和本地变量。
The activation record contains all of the call-specific data for the function, including parameters and local variables.
框架查询两个元数据源:活动记录模型和每个模型对象的定制元数据文件。
The framework queries two sources of metadata: the Active Record model and a custom metadata file for each model object.
streamlined目录支持额外的元数据,而不会污染活动记录。
The streamlined directory allows additional metadata without pollution of Active Record.
活动记录是任务记录的子记录,正如任务记录是问题的子记录一样。
Activity records are child records of the Task record, just as the Tasks are child records of the Issue.
可以使用假脱机功能将CLPPlus会话中发生的活动记录到一个文件中。
Activities occurred in a CLPPlus session can be recorded into a file using the spooling feature.
活动记录设计模式实现内经常提供的一个很棒的特性是动态finder方法。
A cool feature often provided in active record design pattern implementations is dynamic finder methods.
由于活动记录是在堆栈上实现的,它们通常也会被称为堆栈帧,这两个术语是对等的。
Because activation records are implemented on a stack, they are often referred to as stack frames, but both terms are equivalent.
默认情况下,Rails从活动记录内捕获到足够的元数据,构建复杂的用户界面。
By default, Rails captures enough metadata within Active Record to build a surprisingly sophisticated default user interface.
Streamlined的创造者们原本可以轻易地把定制数据添加到了活动记录。
The Streamlined creators could have easily added customization data to Active Record.
然后展示了PHPV5.3的LSB特性,并给出了单例和活动记录设计模式。
Then it shows how PHP V5.3's LSB feature resolves those issues, while showing implementations of the singleton and active record design patterns.
但是,在大多数情况下,技术专家及其他人还是能够通过在线活动记录将个人与IP对应起来。
But in many cases, technology experts and others have been able to link IP addresses to individuals using records of their online activities.
如果一个函数正在执行,那么堆栈指针就会指向整个堆栈的顶部,这也是该函数活动记录的顶部。
If a function is executing, then the stack pointer is pointing to the top of the whole stack, which is also the top of that function's activation record.
每个调用都有自己的活动记录,因此每次被调用时,变量都会在活动记录中获得自己的存储空间。
Each call gets its own activation record, so each time it is called the variables get their own storage space within that activation record.
它掌握本地代码的活动记录(堆帧stack frames),VM代码包括解释器循环功能。
It holds the activation records (i.e. stack frames) of native code, and VM code including the interpreter loop function.
这对函数了解自己的活动记录在什么地方提供了方便——它们可以使用堆栈指针的形式简单地进行定义。
This makes it easy for functions to know where their activation record is — they are simply defined in terms of the stack pointer.
直到函数调用彻底完成 时,活动记录使用的空间才会被释放以便重用(更多信息请参看后面的介绍)。
Only when the function call is completely finished is the space for the activation record released for reuse (more on this later).
你在一张搞怪猫的图片下面哈哈了一下,你的这个哈哈就会被一直记录在你的活动记录里了,删不掉了。
LOL at a lolcat and your LOL gets logged for all time on your indelible activity record.
正如您可以看到的一样,挂起的函数的活动记录“压入堆栈”,然后在每个函数返回时,就从堆栈中弹出。
As you can see, the suspended function activation records "stack up", and then, when each function returns, it gets taken off of the stack.
基线、构建,以及活动记录的使用可以让测试人员了解测试什么,以及跟踪哪些测试已经在这个构建中运行。
The use of the Baseline, build, and Activity records enables testers to know what to test and to track which tests have been run against the build.
尽管单例实现使用的是子类的类名,其他的模式(比如稍后介绍的活动记录模式)需要引用其他的静态属性。
Whereas the singleton implementation uses the subclass's class name, other patterns (such as active record, covered later) need to reference other static properties.
在第1部分中,看到了搭建如何使用活动记录提供的元数据——类型、列名称和关系——来构建复杂的用户界面。
In Part 1, you saw how scaffolding used the metadata provided by Active Record — types, column names, and relationships — to build a sophisticated user interface.
当确定目标和定义之后,可将广告活动记录链接到讨论区域或活动组,参与者从此处确定广告活动内容。
When you are determining objectives and definitions, you can link the campaign record to a discussion area or activity set in which contributors work out what defines the campaign.
Streamlined方法允许在一个地点合并常见视图特征,非常像活动记录为了持久性考虑而做的那样。
The Streamlined approach lets a single place consolidate common view characteristics, much as Active Record does for persistence concerns.
应用推荐