此外,在构造函数内有某种逻辑,这种逻辑将确定是否先获得实例。
Moreover, there is certain logic within its constructor that would determine whether an instance can be obtained in the first place.
获得实例后,它被用于启动和提交事务,如果发生任何错误,事务将回滚。
After it's acquired, it's used to start and commit a transaction, and if there are any errors, the transaction is rolled back.
这里的creator属性被设置为值new,这意味着DWR应当调用类的默认构造函数来获得实例。
The creator attribute here is set to the value new, meaning that DWR should call the class's default constructor to obtain an instance.
But there's actually hidden in there an important element, and that is, when I create an instance, I have to be able to get access to the things that characterize that instance.
也就是,当我创建了一个实例,我应该能够获得那些特性化,这个实例的东西,我的意思不是说它们是想法,或者情绪之类的。
应用推荐