If you've never encountered test-driven development (see Resources), you might object that no one would write such a simple-minded implementation.
如果您从未接触过由测试驱动的开发(请参阅参考资料),那么您可能也会认为人人都能编写如此头脑简单的实现。
If your database contains sensitive data, you might want to limit access to the catalog views, because the catalog describes every object in the database.
如果你的数据库包含敏感信息,您可能希望限制对编目视图的访问,因为编目描述了数据库中的每一个对象。
It supports polymorphism very well as you merely have records in the appropriate tables for each role that an object might have.
它能够很好地支持多态性,对于对象可能有的每个角色,只需要在相应的表中保存记录。
For instance, you might group together all code that processes XML into a higher-level object model specific to your application.
例如,您可能会将处理XML的所有代码集合到一个应用程序提供的高层对象模型。
For example, a user is a mutable entity, but you might use an immutable value object to represent the user's address, just changing the address that you point to for the user if he or she moves.
例如,虽然用户是可变实体,但是您可以使用不可变值对象来表示用户的地址,如果用户移动了位置,那么只需为该用户更改您所指向的地址。
Also, the document object might already have handlers installed for some other purpose, and you don't want to overwrite them.
而且,文档对象可能已经安装了一些用于其他用途的处理程序,您不可以覆盖它们。
For example, you might want to use another generic type system such as Service Data Object (SDO) (see Resources).
例如,你可能希望使用另外一种通用类型系统如服务数据对象(SDO)(参见参考资料)。
Now that you have seen the business object definitions, you might ask about simple types and how attributes are modeled.
您现在已经了解了业务对象定义,可能会想了解有关简单类型以及如何建模属性的信息。
If you're used to responding to emails within an hour or two, you might worry that people will object if they don't hear back for a day or more.
如果你习惯了在一两个小时之内回复邮件,那么你会担心如果你一天或更长时间不回复,人们将会反对。
Predictive loading is a strategy by which when you load an object (say, upon a cache miss) and then guess which other related objects might also need at the same time and load them as well.
而当您加载一个对象(比如缓存缺失之后)然后推测同时还需要哪些其他相关对象并加载它们时,则需要用到预测性加载策略。
As other object models for XML begin to work with JAXP, you might want to move away from JAXP's default DOM model.
因为JAXP已经开始接受其他XML对象模型,您可能希望不使用JAXP默认的DOM模型。
To gauge the "freshness" of the data, you might decide to add a timestamp field to the object so that you could easily detect whether the object and the backing store were out of sync.
要测量数据的“更新程度”,您可能决定向该对象添加时间戳记字段,以便容易地检测对象是否与后备存储器同步。
You might even have multiple business objects whose individual parts need to be mapped to or from one business object.
您甚至可能有多个业务对象,它们的各个部分需要映射到一个业务对象,或者从一个业务对象映射到各个部分。
The first two are what you might expect-a reference to the object containing the property that will be changed and a reference to the new value of the property.
前两个可能是您想要的—对包含要更改属性的对象的引用和对新属性值的引用。
If no comment is associated with a given purchase order object, you might expect this column to be null after persisting the entity.
如果没有任何注释与给定订单对象相关,那么您可能希望在持久化实体后将该列设为null。
You might, for example, be using a value object inside a class — such as the BagImpl class above.
比方说,您可以在一个类中使用值对象,就像上面的bagimpl类那样。
You can now apply SVG transforms to any old Web browser object so that for example you might decide to rotate an IFRAME by 45 degrees, a trick that would usually require the Canvas facility.
您现在可以向任何一个旧Web浏览器对象应用SVG转换,例如,这样您可以决定将IFRAME 旋转45度,而这通常需要使用 Canvas 工具。
For example, you might also want to create or update the EmployeeAddress business object in a module.
例如,您可能还需要创建或更新模块中的EmployeeAddress业务对象。
You might build an ObjectMother object that makes Seminar objects with different sets of characteristics that you can use to test certain things.
您可能构建一个ObjectMother对象,使Seminar对象具有不同种特征,您可以用这些特征来测试某些情况。
You might want to use this functionality to employ jQuery functions on things like the window object.
您可能会想要使用这个功能将 jQuery函数用于一些对象,比方说 window 对象。
Here is a list of the three Lotus Symphony application object classes that you might want to utilize.
下面是您可能想要利用的3个LotusSymphony应用程序对象类。
You might say that the InitialDirContext object is a wrapper for the DirContext object instantiated by a factory object.
您可能会说InitialDirContext对象是由工厂对象实例化的DirContext对象的包装器。
But, you might want to work with JDOM constructs, or perhaps the object model that dom4j provides.
但是,有可能希望使用JDOM结构或者dom 4 j提供的对象模型。
If you need to cache more than a single object, you might use a Map, but you have a choice as to how to employ soft references.
如果需要缓存不止一个对象,您可以使用一个Map,但是可以选择如何使用软引用。
You might be advised to use the find() method to get a test object when the getMappedTestObject() method does not work.
建议您在getMappedTestObject()方法不能使用时,使用find() 方法来找到一个测试对象。
Some of this topic goes beyond the scope of this article, but if you ever end up with XPath code that isn't behaving, you might have a misconfigured XPath object on your hands.
其中一些主题超出了本文的范围,但是如果遇到XPath代码不工作的情况,可能是因为使用了错误配置的XPath对象。
As you can see, there are many other properties of this object that might prove useful for testing this applet.
正如您看到的,对象中存在许多对于测试applet非常有用的属性。
If that's the case — or you suspect that it might be — you can always call xpath.reset to reset the object to its original configuration.
如果是这种情况,或者怀疑是这样,可以通过调用xpath .reset重新将该对象恢复为初始配置。
If that's the case — or you suspect that it might be — you can always call xpath.reset to reset the object to its original configuration.
如果是这种情况,或者怀疑是这样,可以通过调用xpath .reset重新将该对象恢复为初始配置。
应用推荐