Listing 4 shows a version of the singleton that USES a method instead of an attribute to specify the appropriate class.
清单4显示了使用方法而非属性来指定适当类的单例。
Listing 6 shows a class that assigns only one of its constructor arguments to a class attribute and then attempts to reference both in another method.
清单6展示了一个类,它只将其中一个constructor参数赋值给一个类属性,并尝试在另一个方法中引用它们。
The form in Listing 11 has no method or action attribute, which means that when you press the Register button, nothing will happen.
清单11中的表单没有方法或动作属性,这意味着当您单击Register按钮时,什么也不会发生。
Suppose you take the EJB from Listing 1 and deploy it using container-managed transactions and a transactional attribute of RequiresNew for the business method.
假定取用清单1中的EJB,并用容器托管的事务部署它,将业务方法的事务属性设定为RequiresNew。
To make use of this method, we need to specify the getLabelClass attribute of our tree widget tag, as in Listing 18.
要想使用这种方法,我们需要指定我们的这个tree小部件标记的getlabelclass属性,如清单18所示。
Similarly, if we want to update the city attribute value, we can invoke its mutator method in the UPDATE statement ( Listing 2).
同样的,如果想更新城市属性值,可以调用UPDATE语句中的 mutator方法(清单2)。
To do that, we will invoke the observer method (using the double-dot operator) for the city attribute of the structured type value in the ADDRESS column (Listing 2).
为了实现这个目标,我们将调用observer方法(使用双点运算符)获取address列中的结构化类型值的城市属性。(清单2)。
To do that, we will invoke the observer method (using the double-dot operator) for the city attribute of the structured type value in the ADDRESS column (Listing 2).
为了实现这个目标,我们将调用observer方法(使用双点运算符)获取address列中的结构化类型值的城市属性。(清单2)。
应用推荐