@Immutable public abstract class AbstractBaseObject extends Object implements IObject
IObject that handles everything
except IHasObjectType.getObjectType(), Object.equals(Object) and
Object.hashCode().| Constructor and Description |
|---|
AbstractBaseObject(IObject aObject) |
AbstractBaseObject(String sID,
LocalDateTime aCreationDT,
String sCreationUserID,
LocalDateTime aLastModificationDT,
String sLastModificationUserID,
LocalDateTime aDeletionDT,
String sDeletionUserID) |
| Modifier and Type | Method and Description |
|---|---|
LocalDateTime |
getCreationDateTime() |
String |
getCreationUserID() |
LocalDateTime |
getDeletionDateTime() |
String |
getDeletionUserID() |
String |
getID() |
LocalDateTime |
getLastModificationDateTime() |
String |
getLastModificationUserID() |
com.helger.commons.state.EChange |
setDeletion(LocalDateTime aDeletionDT,
String sDeletionUserID) |
void |
setLastModification(LocalDateTime aLastModificationDT,
String sLastModificationUserID) |
com.helger.commons.state.EChange |
setUndeletion(LocalDateTime aUndeletionDT,
String sUndeletionUserID) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisDeleted, isDeleted, isLastChangeAftergetObjectType, hasObjectTypepublic AbstractBaseObject(@Nonnull @Nonempty String sID, @Nullable LocalDateTime aCreationDT, @Nullable String sCreationUserID, @Nullable LocalDateTime aLastModificationDT, @Nullable String sLastModificationUserID, @Nullable LocalDateTime aDeletionDT, @Nullable String sDeletionUserID)
@Nonnull @Nonempty public final String getID()
getID in interface com.helger.commons.id.IHasID<String>@Nullable public final LocalDateTime getCreationDateTime()
getCreationDateTime in interface com.helger.datetime.domain.IHasCreationDateTimegetCreationDateTime in interface IObjectnull-able creation date time of the object.@Nullable public final String getCreationUserID()
getCreationUserID in interface IHasCreationInfogetCreationUserID in interface IObjectnull in
case of migrated content.@Nullable public final LocalDateTime getLastModificationDateTime()
getLastModificationDateTime in interface com.helger.datetime.domain.IHasLastModificationDateTime@Nullable public final String getLastModificationUserID()
getLastModificationUserID in interface IHasLastModificationInfonull if
this object has not yet been modified.public final void setLastModification(@Nonnull LocalDateTime aLastModificationDT, @Nonnull @Nonempty String sLastModificationUserID)
@Nullable public final LocalDateTime getDeletionDateTime()
getDeletionDateTime in interface com.helger.datetime.domain.IHasDeletionDateTime@Nullable public final String getDeletionUserID()
getDeletionUserID in interface IHasDeletionInfonull if this
object has not yet been deleted.@Nonnull public final com.helger.commons.state.EChange setDeletion(@Nonnull LocalDateTime aDeletionDT, @Nonnull @Nonempty String sDeletionUserID)
@Nonnull public final com.helger.commons.state.EChange setUndeletion(@Nonnull LocalDateTime aUndeletionDT, @Nonnull @Nonempty String sUndeletionUserID)
Copyright © 2014–2017 Philip Helger. All rights reserved.