Interface UserRelatedEntity<PK>

Type Parameters:
PK - the primary key type
All Superinterfaces:
Comparable<PK>, net.solarnetwork.dao.Entity<PK>, net.solarnetwork.domain.Identity<PK>, UserIdRelated
All Known Implementing Classes:
BaseUserCertificate, BaseUserModifiableEntity, UserEvent

public interface UserRelatedEntity<PK> extends net.solarnetwork.dao.Entity<PK>, UserIdRelated
API for an entity associated with a user ID.
Since:
2.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the user ID this entity relates to.

    Methods inherited from interface java.lang.Comparable

    compareTo

    Methods inherited from interface net.solarnetwork.dao.Entity

    getCreated

    Methods inherited from interface net.solarnetwork.domain.Identity

    getId, hasId
  • Method Details

    • getUserId

      Long getUserId()
      Get the user ID this entity relates to.
      Specified by:
      getUserId in interface UserIdRelated
      Returns:
      the user ID