Package com.helger.tenancy.tenant
Class AbstractTenantObject
- java.lang.Object
-
- com.helger.tenancy.AbstractBusinessObject
-
- com.helger.tenancy.tenant.AbstractTenantObject
-
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>,com.helger.commons.type.IHasObjectType,com.helger.commons.type.ITypedObject<String>,com.helger.datetime.domain.IHasCreationDateTime,com.helger.datetime.domain.IHasDeletionDateTime,com.helger.datetime.domain.IHasLastModificationDateTime,IHasCreationInfo,IHasDeletionInfo,IHasLastModificationInfo,IBusinessObject,IHasTenant,IHasTenantID,ITenantObject,Serializable
- Direct Known Subclasses:
AbstractAccountingArea
@Immutable public abstract class AbstractTenantObject extends AbstractBusinessObject implements ITenantObject
Abstract base implementation ofITenantObject.- Author:
- Philip Helger
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractTenantObject(ITenantObject aBase)AbstractTenantObject(ITenant aTenant, IBusinessObject aObject)AbstractTenantObject(ITenant aTenant, String sID, LocalDateTime aCreationDT, String sCreationUserID, LocalDateTime aLastModificationDT, String sLastModificationUserID, LocalDateTime aDeletionDT, String sDeletionUserID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)ITenantgetTenant()inthashCode()StringtoString()-
Methods inherited from class com.helger.tenancy.AbstractBusinessObject
attrs, getCreationDateTime, getCreationUserID, getDeletionDateTime, getDeletionUserID, getID, getLastModificationDateTime, getLastModificationUserID, setDeletion, setLastModification, setUndeletion
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.tenancy.IBusinessObject
attrs, getLastChangeDateTime, isDeleted, isDeletedAt, isLastChangeAfter, isNotDeleted
-
Methods inherited from interface com.helger.datetime.domain.IHasCreationDateTime
getCreationDate, getCreationDateTime, getCreationTime, hasCreationDateTime, isCreatedAt
-
Methods inherited from interface com.helger.tenancy.datetime.IHasCreationInfo
getCreationUserID, hasCreationUserID
-
Methods inherited from interface com.helger.datetime.domain.IHasDeletionDateTime
getDeletionDate, getDeletionDateTime, getDeletionTime, hasDeletionDateTime
-
Methods inherited from interface com.helger.tenancy.datetime.IHasDeletionInfo
getDeletionUserID, hasDeletionUserID
-
Methods inherited from interface com.helger.datetime.domain.IHasLastModificationDateTime
getLastModificationDate, getLastModificationDateTime, getLastModificationTime, hasLastModificationDateTime, isLastModifiedAt
-
Methods inherited from interface com.helger.tenancy.datetime.IHasLastModificationInfo
getLastModificationUserID, hasLastModificationUserID
-
Methods inherited from interface com.helger.commons.type.IHasObjectType
getObjectType, getObjectTypeName, hasObjectType
-
Methods inherited from interface com.helger.tenancy.tenant.IHasTenant
hasSameTenant, hasSameTenantID, hasTenant, hasTenantID
-
Methods inherited from interface com.helger.tenancy.tenant.IHasTenantID
hasSameTenantID
-
Methods inherited from interface com.helger.tenancy.tenant.ITenantObject
getTenantID
-
-
-
-
Constructor Detail
-
AbstractTenantObject
protected AbstractTenantObject(@Nonnull ITenantObject aBase)
-
AbstractTenantObject
public AbstractTenantObject(@Nonnull ITenant aTenant, @Nonnull IBusinessObject aObject)
-
AbstractTenantObject
public AbstractTenantObject(@Nonnull ITenant aTenant, @Nonnull @Nonempty String sID, @Nonnull LocalDateTime aCreationDT, @Nullable String sCreationUserID, @Nullable LocalDateTime aLastModificationDT, @Nullable String sLastModificationUserID, @Nullable LocalDateTime aDeletionDT, @Nullable String sDeletionUserID)
-
-
Method Detail
-
getTenant
@Nonnull public final ITenant getTenant()
- Specified by:
getTenantin interfaceIHasTenant- Specified by:
getTenantin interfaceITenantObject- Returns:
- The tenant to which the object is assigned to. May not be
null.
-
equals
public final boolean equals(Object o)
- Overrides:
equalsin classAbstractBusinessObject
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAbstractBusinessObject
-
toString
public String toString()
- Overrides:
toStringin classAbstractBusinessObject
-
-