可以为表中的每个字段定义一个方法。
如果客户机能够调用方法或访问字段,那么就测试它。
采用这种内部形式的类引用是作为字段和方法描述符的一部分使用的。
Class references in this internal form are used as part of field and method descriptors.
这很容易在GUI编辑器中完成,方法与您前面添加字段的方法相同。
This is done easily in the GUI editor the same way you added fields earlier.
当用于字段和方法接入时反射要远慢于直接代码。
Reflection is much slower than direct code when used for field and method access.
创建字段的方法也有两种。
清单6显示了样例字段和方法。
如果该字段为true,它会调用访问程序的visit方法。
下面是我们使用的gdata . spreadsheet方法和字段。
在应用程序中设置DB 2客户端信息字段的方法。
Ways to set DB2 client information fields in your application.
只有按钮的label字段和click方法被保留了下来。
在添加字段之后,我为构建的类添加了4个必要方法。
After adding the field, I add the four necessary methods for the class being constructed.
方法、字段和本地变量名以小写字母开头,如read 。
Method, field, and local variable names begin with a lowercase letter, as in read .
preflush字段只用于数据逻辑方法。
此方法假定表中的“id ”字段有唯一整数值。
It assumes that an "id" field in the table has unique integer values.
如果你没必要访问对象的字段,那么使你的方法成为静态方法。
If you don't need to access an object's fields, make your method static.
方法设置给定对象支持的字段的值。
Method sets the value of the field supported by the given object.
方法设置给定对象支持的字段的值。
Method sets the value of the field supported by the given object.
应用推荐