简体   繁体   English

什么是实体对象实例?

[英]What is Entity Object Instance?

I understand that Entity Object Definition is XML data that represents metadata and corresponds to DB table. 我知道实体对象定义是表示元数据并对应于数据库表的XML数据。

Example: 例:

 <Entity
   xmlns="http://xmlns.oracle.com/bc4j"
   Name="Departments"
   Version="11.1.1.53.3"
   DBObjectType="table"
   DBObjectName="DEPARTMENTS"
   AliasName="Departments"
   BindingStyle="OracleName"
   UseGlueCode="false">
  <DesignTime>
   <AttrArray Name="_publishEvents"/>
  </DesignTime>
 <Attribute
   Name="DepartmentId"
   IsNotNull="true"
   Precision="4"
   Scale="0"
   ColumnName="DEPARTMENT_ID"
   SQLType="NUMERIC"
   Type="oracle.jbo.domain.Number"
   ColumnType="NUMBER"
   TableName="DEPARTMENTS"
   PrimaryKey="true">
  <DesignTime>
   <Attr Name="_DisplaySize" Value="22"/>
  </DesignTime>
 </Attribute>

I understand that Entity Attributes corresponds to DB table columns. 我了解实体属性对应于数据库表列。

BUT I CAN`T understand what is Entity Object Instance. 但是我无法理解什么是实体对象实例。 I know that it corresponds to one single row from DB table and for every row there is a different EOI, but where can I find it? 我知道它对应于数据库表中的一行,并且每一行都有一个不同的EOI,但是在哪里可以找到它呢? Any example and simple explanation would be helpful! 任何示例和简单的解释都将有所帮助! :) :)

Entity Object Instance is something like the row data & business logic object oriented representation. 实体对象实例类似于行数据和业务逻辑面向对象的表示形式。 Imagine you need to load data from a DB table into memory, you need a collection of rows (for example List<DbTableRow> ), each row ( DbTableRow ) is an object that contains properties according to each table column data types and it's values; 假设您需要将数据库表中的数据加载到内存中,需要一个行集合(例如List<DbTableRow> ),每一行( DbTableRow )都是一个对象,其中包含根据每个表列数据类型及其值的属性; Entity Object Instance is something like each DbTableRow object item of the list. 实体对象实例类似于列表中的每个DbTableRow对象项。 Hope it helps... 希望能帮助到你...

The following URL will have examples about ADF Entity Object 以下网址将提供有关ADF实体对象的示例

About Entity and View Object 关于实体和视图对象

Entity and View Java classes 实体和View Java类

I know this is an old post. 我知道这是旧帖子。 Hope it will be useful for others 希望对其他人有用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM