| java.lang.Object hu.netmind.persistence.PersistenceMetaData
PersistenceMetaData | public class PersistenceMetaData implements Serializable(Code) | | An object of this class represents all persistence related information
about an object, which BeanKeeper is aware of.
author: Brautigam Robert version: CVS Revision: $Revision$ |
getCreationDate | public Date getCreationDate()(Code) | | Get the creation date of this version
of the object. If the object is not yet saved, this
value is null. Only committed creation dates are given.
If the object is saved in a transaction, but the
transaction did not yet commit, then this date will reflect
the last committed creation date of the object (before
the transaction).
Selecting the object later with this date will give
the same version only if this version of the object
lived at least 1 millisecond (it was not deleted
or superseded in that time). If it didn't, then the next
version of the object is selected which lived at least
1 millisecond.
|
getPersistenceEnd | public Long getPersistenceEnd()(Code) | | Get the end serial. If the object is not deleted, then
this is Long.MAX_VALUE.
|
getPersistenceId | public Long getPersistenceId()(Code) | | Get the persistence id of the object. This id is
available to non-existent objects too, and it does
not ever change. Not if the object does not exist
yet, and not if a new version is saved or the object
is deleted.
|
getPersistenceStart | public Long getPersistenceStart()(Code) | | Get the creation serial number of this version. This is
a unique number based on dates. All versions will have different
serial numbers.
|
getRemoveDate | public Date getRemoveDate()(Code) | | Get the deletion date of this version
of the object. If the object was not yet saved, then
this value is null. If the object was not yet deleted,
but it exists in the database, then this date is an extremal
big date. Selecting the object on this date
will select the next version of the object which lived at least
1 millisecond.
|
setObjectClass | void setObjectClass(Class objectClass)(Code) | | |
setPersistenceEnd | void setPersistenceEnd(Long persistenceEnd)(Code) | | |
setPersistenceId | void setPersistenceId(Long persistenceId)(Code) | | |
setPersistenceStart | void setPersistenceStart(Long persistenceStart)(Code) | | |
setQuerySerial | void setQuerySerial(Long querySerial)(Code) | | |
|
|