用给定的名称、特性和字段类型,向类型中添加新字段。
Adds a new field to the type, with the given name, attributes, and field type.
可以做的更新有两种:更改现有字段值;添加新字段和新值。
You can make two different kinds of updates: by making changes to existing field values or by adding new fields with their own values.
如果向Bean中添加新字段,则需要添加另外三行代码进行初始化以及在GUI组件和域模型实现双向同步。
If a new field is added to the bean, there are three more lines to add for initialization and synchronization in each direction between the GUI components and domain model.
不过,这只是CtClass的部分内容,它还定义了在类中添加新字段、方法和构造函数、以及改变类、父类和接口的方法。
That's just the start for CtClass, though, which also defines methods for adding new fields, methods, and constructors to the class, and for altering the class name, superclass, and interfaces.
它还意味着可以方便地将新字段添加到头中,而不影响已经存储在队列中的消息。
It also means that new fields can easily be added to the header without impacting messages already stored in the queue.
然而,这不是添加对新字段支持所要做的惟一事件。
However, this is not the only thing that needs to be done to add support for a new field.
由于添加一个新字段到表中,所有受到此修改影响的应用程序都必须经过仔细测试。
Since a new column is being added to the table, all applications that may be impacted by this change should be tested carefully.
既然已经知道序列化允许重构,我们来看看当把新字段添加到person类中时,会发生什么事情。
Knowing that Serialization allows for refactoring, let's see what happens when we decide to add a new field to the Person class.
注意要添加一个约束,使这个新字段同时为blank(在HTML表单中)和nullable(在数据库中)。
Be sure to add a constraint that allows the new field to be both blank (in the HTML form) and nullable (in the database).
最近推出的e-mail面板需要两个新字段,它们作为属性添加在元素中。
The recently introduced e-mail panel required a couple of new fields, both of which were added as attributes to the element. Here's what the XML source looks like
如果某个文档需要添加一个新字段,它仅需包含该字段,从而不影响到数据库中的其他文档。
If a document needs to add a new field, it can simply include that field, without adversely affecting other documents in the database.
如果不能将新字段添加到ldap帐户中,那么可以使用ldap帐户中的现有空字段来保存该信息(例如,description或comments字段)。
If a new field cannot be added to the LDAP accounts, you can use an existing blank field in the LDAP accounts to hold this information (for example, the description or comments field).
基本上,当db4o看到新类型的字段时,就会在磁盘上创建一个新字段,该字段有相同的名称,但是具有新的类型,就好像它是添加到类中的另一个新字段一样。
Basically, when db4o sees the field of the new type, it creates a new field on disk with the same name but a new type, just as if it were any other new field added to the class.
Web服务操作Account . create需要一个新的强制性参数country,因此我们对Address类型进行修改,以添加这个新字段。
The Web service operation Account.create needs a new mandatory parameter for country, so we modify the Address type to add this new field.
Web服务操作Account . create需要一个新的强制性参数country,因此我们对Address类型进行修改,以添加这个新字段。
The Web service operation Account.create needs a new mandatory parameter for country, so we modify the Address type to add this new field.
应用推荐