根据其定义,实例方法涉及对象状态。
Instance methods, almost by definition, involve object state.
而它们时常也会涉及易变的对象状态。
场景3:不适当的对象状态。
它也是有效的存储对象状态的互联网应用。
It is also effective for storing object state of Internet applications.
一个对象状态的变化可能就会影响另一个对象。
各个对象还包含一个错误状态和错误消息。
Each object also contains an error status and error message.
如果接收到一个响应,那么请求对象会注册为就绪状态4。
If a response is received, the request object registers a ready state of 4.
即使在对象更新它们状态的情况下,也应该谨慎地考虑对象实例化。
Even in the case when objects update their state, object instantiation should be carefully considered.
最后,我为每个对象调用状态函数。
Finally, I call the status functions for each of the objects.
图1显示了每行代码执行后各对象的状态。
Figure 1 shows the state of the objects after each line of code executes.
在事务最后提交之前,对象都处于“托管”状态。
Until the transaction is finally committed, the objects are in "managed" state.
在这种情况下,堆栈上的所有对象实例都处于未破坏状态。
In this case, all the object instances on the stack are left un-destructed.
对于删除操作,将记录删除前数据对象的全部状态。
Deletions record the entire state of the DataObject before it was deleted.
设置模仿对象中的状态和期望值
足够快速,而不用考虑对象的状态。
bInitialState是这个事件对象的初始状态。
图9:从内容到状态对象的消息委托。
Figure 9: Message delegation from the context to the State object.
利用refs,可在单个事务中改变多个对象的状态。
With refs, you can change the state of multiple objects in a single transaction.
在Integer情况下,对象的唯一状态是基本的整数值。
In the case of integer, the object's only state is the underlying integer value.
如果修改了对象的状态,方法就需要返回true。
If the object's state is modified, the method needs to return true.
变量(ctx)可以用来创建返回的状态对象。
The argument (CTX) can be used to create the status object to return.
查询已被索引的对象的状态
Session可能是状态管理上下文中使用得最多的对象。
Session is perhaps the most commonly used of the state management contexts.
内部对象例如工作流状态管理器对象。
对一个已经设置为有信号状态的事件对象再次执行该函数是无效的。
对于无状态服务对象很理想。
真正的敌人不是与你谈话的对象,是作战状态本身。
The real enemy is not your conversational counterpart, but the combat mentality itself.
重置解释器状态对象中的所有信息。解释器锁必须被获取。
Reset all information in an interpreter state object. The interpreter lock must be held.
重置指定线程状态对象的所有信息。解释器锁必须捕获。
Reset all information in a thread state object. The interpreter lock must be held.
重置指定线程状态对象的所有信息。解释器锁必须捕获。
Reset all information in a thread state object. The interpreter lock must be held.
应用推荐