ProjectionClass

Provides type information on a projection class.

Parameters

<P>

the type of projections

Functions

Link copied to clipboard
public static ProjectionClass<P> asProjectionClass<P extends Projection>(Class<P> cls)
Obtains a model class for the passed raw class.
Link copied to clipboard
public final ImmutableSet<EventClass> domesticEvents()
Obtains a set of domestic events which this class receives.
Link copied to clipboard
public final ImmutableSet<StateClass> domesticStates()
Obtains domestic entity states to which the class is subscribed.
Link copied to clipboard
public final ImmutableSet<EventClass> events()
Obtains a set of event classes which this class receives.
Link copied to clipboard
public final ImmutableSet<EventClass> externalEvents()
Obtains a set of external events which this class receives.
Link copied to clipboard
public final ImmutableSet<StateClass> externalStates()
Obtains external entity states to which the class is subscribed.
Link copied to clipboard
public final ImmutableSet<SubscriberMethod> subscribersOf(EventClass eventClass, MessageClass<?> originClass)
Obtains all subscriber methods that handle the passed event class.

Inherited functions

Link copied to clipboard
public static EntityClass<E> asEntityClass<E extends Entity>(Class<E> cls)
Obtains an entity class for the passed raw class.
Link copied to clipboard
public final Columns columns()
Obtains the entity columns of this class.
Link copied to clipboard
public final Constructor<E> constructor()
Obtains constructor for the entities of this class.
Link copied to clipboard
public E create(Object constructionArgument)
Creates new entity.
Link copied to clipboard
Creates a new instance of the factory for creating entities.
Link copied to clipboard
public final EntityState defaultState()
Obtains the default state for this class of entities.
Link copied to clipboard
public boolean equals(Object o)
Link copied to clipboard
public final EntityFactory<E> factory()
Obtains the factory for creating entities.
Link copied to clipboard
protected static ModelClass<T> get<T, M extends ModelClass<T>>(Class<T> rawClass, Class<M> requestedModelClass, Supplier<ModelClass<T>> supplier)
Obtains the model class for the passed raw class.
Link copied to clipboard
public int hashCode()
Link copied to clipboard
public final Class<? extends Object> idClass()
Obtains the class of IDs used by the entities of this class.
public static Class<I> idClass<I>(Class<? extends Entity> cls)
Obtains the class of identifiers from the passed entity class.
Link copied to clipboard
public final Class<? extends EntityState> stateClass()
Obtains the class of the state of entities of this class.
Link copied to clipboard
public static Class<S> stateClassOf<S extends EntityState>(Class<? extends Entity> entityClass)
Retrieves the state class of the passed entity class.
Link copied to clipboard
public final MessageType stateType()
Obtains the entity state type.
Link copied to clipboard
public final TypeUrl stateTypeUrl()
Obtains type URL of the state of entities of this class.
Link copied to clipboard
Obtains a method that handles the passed class of events.
Link copied to clipboard
public boolean subscribesToStates()
Verifies if this class is subscribed to updates of entity states, either domestic or external.
Link copied to clipboard
public final EntityTypeName typeName()
Obtains the name of this class as an EntityTypeName.
Link copied to clipboard
public Class<E> value()
Obtains the raw class of the entities.
Link copied to clipboard
Obtains the visibility of this entity type as declared in the Protobuf definition.