Class SimpleRelationalEntityMetadata<T>
java.lang.Object
org.springframework.data.relational.repository.query.SimpleRelationalEntityMetadata<T>
- All Implemented Interfaces:
RelationalEntityMetadata<T>
,org.springframework.data.repository.core.EntityMetadata<T>
public class SimpleRelationalEntityMetadata<T>
extends Object
implements RelationalEntityMetadata<T>
Default implementation of
RelationalEntityMetadata
.- Author:
- Mark Paluch
-
Constructor Summary
ConstructorDescriptionSimpleRelationalEntityMetadata
(Class<T> type, RelationalPersistentEntity<?> tableEntity) Creates a newSimpleRelationalEntityMetadata
using the given type andRelationalPersistentEntity
to use for table lookups. -
Method Summary
Modifier and TypeMethodDescriptionReturns theRelationalPersistentEntity
that supposed to determine the table to be queried.Returns the name of the table the entity shall be persisted to.
-
Constructor Details
-
SimpleRelationalEntityMetadata
Creates a newSimpleRelationalEntityMetadata
using the given type andRelationalPersistentEntity
to use for table lookups.- Parameters:
type
- must not be null.tableEntity
- must not be null.
-
-
Method Details
-
getJavaType
- Specified by:
getJavaType
in interfaceorg.springframework.data.repository.core.EntityMetadata<T>
-
getTableName
Description copied from interface:RelationalEntityMetadata
Returns the name of the table the entity shall be persisted to.- Specified by:
getTableName
in interfaceRelationalEntityMetadata<T>
- Returns:
-
getTableEntity
Description copied from interface:RelationalEntityMetadata
Returns theRelationalPersistentEntity
that supposed to determine the table to be queried.- Specified by:
getTableEntity
in interfaceRelationalEntityMetadata<T>
- Returns:
-