public class OrmObject extends Object
A row in a relational database (RDB) table corresponds to an entity in the ORM database.
Before operating entities in the ORM database, you need to create an entity class that
inherits from OrmObject and annotate it with @Entity.
OrmDatabaseSystemCapability.Data#DATA_APPDATAMGR| 构造器 | 说明 |
|---|---|
OrmObject() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
equals(Object object) |
|
long |
getRowId() |
Obtains the row corresponding to an
OrmObject instance in the RDB table. |
int |
hashCode() |
Obtains the hash code value of an
OrmObject. |
void |
setRowId(long rowId) |
Sets the row corresponding to an
OrmObject instance in the RDB table. |
public long getRowId()
OrmObject instance in the RDB table.OrmObject instance.public void setRowId(long rowId)
OrmObject instance in the RDB table.rowId - Indicates the ID of the row corresponding to the OrmObject instance.public boolean equals(Object object)
public int hashCode()
OrmObject.
The hash code value is generated by rowId and objectId of the OrmObject.
hashCode 在类中 ObjectOrmObject.Object.equals(java.lang.Object),
System.identityHashCode(java.lang.Object)