public class DBObjectImpl extends Object implements DBObject
DBObject
.Constructor and Description |
---|
DBObjectImpl(Surrogate surrogate)
Construct a
DBObject . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
DatabaseBackend |
getDatabase()
Return the database of the object.
|
DBObjectId |
getId()
Return the id of this database object.
|
Surrogate |
getSurrogate()
Return the surrogate for this database object.
|
int |
hashCode() |
boolean |
inConstruction()
Test whether the data object is in the database or is a new object being
constructed.
|
boolean |
isValid()
Return true if the database object was not deleted.
|
public DBObjectId getId()
DBObject
getId
in interface DBObject
DBObjectId
or nullpublic Surrogate getSurrogate()
DBObject
getSurrogate
in interface DBObject
public DatabaseBackend getDatabase()
DBObject
getDatabase
in interface DBObject
public boolean inConstruction()
DBObject
inConstruction
in interface DBObject
public boolean isValid()
DBObject
Copyright © 2017. All rights reserved.