Interface NameEntityService<T extends io.github.astrapi69.data.nameable.Nameable>
public interface NameEntityService<T extends io.github.astrapi69.data.nameable.Nameable>
-
Method Summary
Modifier and TypeMethodDescriptionfindEntities
(String nameValue) Find the entities objects from the given name value.default T
Find the entity object from the given name value.default T
getOrCreateNewNameEntity
(String value) Gets the or creates a new entity objectMerges the given object.newNameEntity
(String value) Factory method for create a new name entity.
-
Method Details
-
findEntities
Find the entities objects from the given name value.- Parameters:
nameValue
- the name value- Returns:
- the list with the entities
-
findFirst
Find the entity object from the given name value.- Parameters:
nameValue
- the name value- Returns:
- the found entity object or null if not.
-
getOrCreateNewNameEntity
Gets the or creates a new entity object- Parameters:
value
- the value- Returns:
- the entity object
-
merge
Merges the given object. @see Hibernate documentation.- Parameters:
object
- the object- Returns:
- the object
-
newNameEntity
Factory method for create a new name entity.- Parameters:
value
- the value- Returns:
- the new name entity
-