public interface EntityQueries
Provides String representations of
EntityConnection.Select instances, for debugging.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<EntityQueries.Factory> factory()Returns the firstEntityQueries.Factoryimplementation found by theServiceLoader.select(EntityConnection.Select select)
-
Method Details
-
select
- Parameters:
select- theEntityConnection.Selectinstance- Returns:
- a String representation of the given
EntityConnection.Selectinstance, for debugging.
-
insert
- Parameters:
entity- the entity- Returns:
- a String representation of the insert query for the given entity, for debugging
-
update
- Parameters:
entity- an existing and modified entity- Returns:
- a String representation of the update query for the given entity, for debugging
- Throws:
IllegalArgumentException- in case the entity is unmodified- See Also:
-
factory
Returns the firstEntityQueries.Factoryimplementation found by theServiceLoader.- Returns:
- a
EntityQueries.Factoryimplementation from theServiceLoaderor an emptyOptionalin case none is available.
-