java.lang.Object
org.springframework.data.mapping.context.AbstractMappingContext<org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?>,org.springframework.data.relational.core.mapping.RelationalPersistentProperty>
org.springframework.data.relational.core.mapping.RelationalMappingContext
org.springframework.data.jdbc.core.mapping.JdbcMappingContext
- All Implemented Interfaces:
Aware,InitializingBean,ApplicationContextAware,ApplicationEventPublisherAware,MappingContext<org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?>,org.springframework.data.relational.core.mapping.RelationalPersistentProperty>
public class JdbcMappingContext
extends org.springframework.data.relational.core.mapping.RelationalMappingContext
MappingContext implementation for JDBC.- Author:
- Jens Schauder, Greg Turnquist, Kazuki Shimizu, Oliver Gierke, Mark Paluch
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newJdbcMappingContext.JdbcMappingContext(org.springframework.data.relational.core.mapping.NamingStrategy namingStrategy) Creates a newJdbcMappingContextusing the givenNamingStrategy. -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> org.springframework.data.relational.core.mapping.RelationalPersistentEntity<T>createPersistentEntity(TypeInformation<T> typeInformation) protected org.springframework.data.relational.core.mapping.RelationalPersistentPropertycreatePersistentProperty(Property property, org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder) protected booleanMethods inherited from class org.springframework.data.relational.core.mapping.RelationalMappingContext
applyDefaults, getAggregatePath, getAggregatePath, getNamingStrategy, getPersistentEntity, isForceQuote, isSingleQueryLoadingEnabled, setApplicationContext, setForceQuote, setSingleQueryLoadingEnabled, setSqlIdentifierSanitizerMethods inherited from class org.springframework.data.mapping.context.AbstractMappingContext
addPersistentEntity, addPersistentEntity, afterPropertiesSet, doFindPersistentPropertyPaths, findPersistentPropertyPaths, getManagedTypes, getPersistentEntities, getPersistentEntity, getPersistentEntity, getPersistentPropertyPath, getPersistentPropertyPath, getPersistentPropertyPath, hasPersistentEntityFor, initialize, setApplicationEventPublisher, setInitialEntitySet, setManagedTypes, setSimpleTypeHolder, setStrict, shouldCreatePropertiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.mapping.context.MappingContext
getRequiredPersistentEntity, getRequiredPersistentEntity, getRequiredPersistentEntity
-
Constructor Details
-
JdbcMappingContext
public JdbcMappingContext()Creates a newJdbcMappingContext. -
JdbcMappingContext
public JdbcMappingContext(org.springframework.data.relational.core.mapping.NamingStrategy namingStrategy) Creates a newJdbcMappingContextusing the givenNamingStrategy.- Parameters:
namingStrategy- must not be null.
-
-
Method Details
-
createPersistentEntity
protected <T> org.springframework.data.relational.core.mapping.RelationalPersistentEntity<T> createPersistentEntity(TypeInformation<T> typeInformation) - Overrides:
createPersistentEntityin classorg.springframework.data.relational.core.mapping.RelationalMappingContext
-
createPersistentProperty
protected org.springframework.data.relational.core.mapping.RelationalPersistentProperty createPersistentProperty(Property property, org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder) - Overrides:
createPersistentPropertyin classorg.springframework.data.relational.core.mapping.RelationalMappingContext
-
shouldCreatePersistentEntityFor
- Overrides:
shouldCreatePersistentEntityForin classAbstractMappingContext<org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?>,org.springframework.data.relational.core.mapping.RelationalPersistentProperty>
-