In most instances, the actual class of the Content Store object returned will be known so it can be cast directly.
在大多数情况下,返回的内容库对象的实际的类是已知的,因此可以直接进行转换。
You can create a class to track and log these errors in a data store for future reference.
您可以创建一个类来跟踪并在数据仓库中记录这些错误,以后可以做作参考。
We have this offer business the one I talked with the computer class, then we have merchant business, we sell our software and our store to other merchants who want to sell in our store.
我们提供这种业务,我和计算机班业务,商业业务,我们销售软件和其他商店给商人,那些想在我们商店里卖东西的商人。
Figure 2 below shows a class with multiple methods, of which some need to store details about the user who accessed the method and the money amount that was transferred.
下面的图2显示了一个具有多个方法的类,其中有些需要存储关于哪些用户访问该方法,以及被转移的资金数额的细节。
It might be worth considering an enumeration here since it would remove the need for a reference type and store the value directly in the class.
这里,使用枚举可能值得考虑,因为它可以消除对引用类型的需要,并且将值直接存储到类中。
Let's take a simple XML document containing the list of employees at an organisation, add it to a GAE project, create a class for the elements, and store them as entities.
让我们以一个简单X ML文档(包含一个组织的员工列表)为例,将它添加到一个GAE项目,为其中的每个元素创建一个类,然后将它们存储为实体。
This reduces the amount of physical memory required to store class data when multiple JVMs run on the same machine.
当多个JVM在同一台机器上运行时,这将减少存储类数据所需的物理内存量。
They easily solve the problem of not having to store references to every class.
单例模式确实能够轻而易举解决无须对每个类的引用都进行存储的问题。
The store is initialized in the plug-in class, a class that initializes objects global to the plug-in.
该存储在插件类中被初始化,这个类初始化对该插件而言是全局的对象。
Because the example connector cannot know about the existence of the ad-hoc properties ahead of time, it does not store their property descriptions in the global item class.
因为示例连接器无法提前知道专用属性的存在,所以不在全局条目类中存储它们的属性描述。
You can then store these Settings in static members of the class, making the value available to subsequent messages.
然后,您可以将这些设置保存在类的静态成员中,以便后续的消息可以使用其值。
The JXEs used to store AOT code are generally much larger than the JAR files that hold the class files because native code is generally less dense than the bytecodes stored in class files.
用于存储AOT代码的JXE 文件通常要比存放类文件的JAR 文件大很多,这是因为本地代码一般要比存储在类文件中的字节码密度小。
Any new implementation for loading people from a store does not require any changes in the class that USES the factory and interface.
从数据库中装入人员的任何新实现都不要求在使用工厂和接口的类中进行任何更改。
For this example, this store is implemented with a simple, ephemeral hash table and is provided with a factory for generating the implementation class (Listings 3 and 4).
对于这个示例来说,这个存储器是由一个简单且短暂的散列表实现的,并由一个生成实现类的工厂提供(清单3和清单4)。
For our RIGHT hierarchy, we'll use a single table (TB_RIGHT) to store the entire class hierarchy.
对于我们的RIGHT层次结构,我们只使用一个表(tb_right)来保存整体类层次结构。
You'll notice that the TB_RIGHT table possesses all the columns necessary to store every attribute of the Right class hierarchy.
您会注意到,TB_RIGHT表拥有保存right类层次结构的每个属性所需要的所有列。
For example, the term report object will refer to an actual Content Store object of class report.
例如,报告对象一词指report类的实际的内容库对象。
The Derby class path lets you store jar files in the database itself.
Cloudscape类路径允许您在数据库本身中存储jar文件。
The BusinessLogicBase class has methods to store and receive data from the Distributed Map.
businesslogicbase类具有在分布式映射缓存存储和接收数据的方法。
Personalization no longer manages class files, and it does not store resource collection or content spot classes in its repository.
Personalization不再管理类文件,它不在自己的库中存储资源收集类或内容点类。
WebSphere Portal provides a class called CredentialVaultService which portlets can use to store and retrieve credentials from the vault.
WebSpherePortal提供一个名为 CredentialVaultService的类,portlet可以用它存储凭证并从保险库检索凭证。
You will recall that we have already placed the tag handler class in the classes directory, in Step 1, so we actually only have to store the TLD file.
您可以回忆起在第1步中我们已经将标记处理程序类放到了classes目录中,所以我们实际上只需储存tld文件。
Figure 8 shows the upgraded GraphicsEnvironment class with member variables that store the starting and ending coordinates of the viewport as VSX, vsy and vex, vey.
图8显示了更新后的graphicsenvironment类,它具有几个成员变量,用来存储viewport的起点和终点坐标:vsx,vsy和vex, vey。
Next, add a String field to the Entry class to store the filename, as shown in Listing 9.
接下来,将一个String字段添加到entry类,以存储filename,如清单9所示。
One way of getting around this problem is to create a custom SubjectHolder class that wraps a static ThreadLocal to store the current Subject.
一种解决这个问题的方法是创建一个自定义subjectholder类,它包装了一个staticThreadLocal以存储当前Subject。
This is a convenience class that can be used to store constant values used by your preference page. You can replace the auto-generated code with the following code.
这是一个方便的类,可用于存储您的首选项页面所使用的常量值。
Otherwise, an inner class will be created to store that element's contents (see name, phone and salary in Listing 9).
否则,将创建一个内部类来存储此元素的内容(见清单9中的name、phone和salary)。
Listing 1 begins by including the Zorba PHP class definitions, and creating an instance of the memory store with the InMemoryStore class.
清单1首先包含Zorbaphp类定义,然后使用inmemorystore类创建内存储存的一个实例。
Note that method changes to the class are irrelevant to db4o because it doesn't store methods or method implementations as part of the stored object data, and ditto for constructor refactorings.
注意,对类中方法的更改与db4o无关,因为它不将方法或方法实现作为存储的对象数据的一部分,对于构造函数的重构也是如此。
The Authenticator class is abstract, so you'll need to subclass it and implement the getPasswordAuthentication() method to store the username and password (see Listing 13).
Authenticator是一个抽象类,所以需要从它派生出子类,并实现 getPasswordAuthentication()方法来存储用户名和密码(见清单 13)。
应用推荐