Class DinoJdbcPersistentEntity<T>

java.lang.Object
org.springframework.data.mapping.model.BasicPersistentEntity<T,org.springframework.data.relational.core.mapping.RelationalPersistentProperty>
cn.dinodev.spring.data.jdbc.mapping.DinoJdbcPersistentEntity<T>
All Implemented Interfaces:
Iterable<org.springframework.data.relational.core.mapping.RelationalPersistentProperty>, org.springframework.beans.factory.Aware, org.springframework.context.EnvironmentAware, org.springframework.data.mapping.model.MutablePersistentEntity<T,org.springframework.data.relational.core.mapping.RelationalPersistentProperty>, org.springframework.data.mapping.PersistentEntity<T,org.springframework.data.relational.core.mapping.RelationalPersistentProperty>, org.springframework.data.relational.core.mapping.RelationalPersistentEntity<T>

public class DinoJdbcPersistentEntity<T> extends org.springframework.data.mapping.model.BasicPersistentEntity<T,org.springframework.data.relational.core.mapping.RelationalPersistentProperty> implements org.springframework.data.relational.core.mapping.RelationalPersistentEntity<T>
Default implementation of RelationalPersistentEntity. support jakarta persistence annotation, such as @Table
Author:
Cody Lu
  • Constructor Summary

    Constructors
    Constructor
    Description
    DinoJdbcPersistentEntity(org.springframework.data.util.TypeInformation<T> information, org.springframework.data.relational.core.mapping.NamingStrategy namingStrategy)
    Creates a new DinoJdbcPersistentEntity for the given TypeInformation.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.data.relational.core.sql.SqlIdentifier
     
    org.springframework.data.relational.core.sql.SqlIdentifier
     
    boolean
     
    void
    setForceQuote(boolean forceQuote)
     
     

    Methods inherited from class org.springframework.data.mapping.model.BasicPersistentEntity

    addAssociation, addPersistentProperty, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getEvaluationContext, getEvaluationContext, getFallbackIsNewStrategy, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getType, getTypeAlias, getTypeInformation, getValueEvaluationContext, getValueEvaluationContext, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, iterator, requiresPropertyPopulation, returnPropertyIfBetterIdPropertyCandidateOrNull, setEnvironment, setEvaluationContextProvider, setPersistentPropertyAccessorFactory, verify

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.springframework.context.EnvironmentAware

    setEnvironment

    Methods inherited from interface java.lang.Iterable

    forEach, iterator, spliterator

    Methods inherited from interface org.springframework.data.mapping.model.MutablePersistentEntity

    addAssociation, addPersistentProperty, setEvaluationContextProvider, setPersistentPropertyAccessorFactory, verify

    Methods inherited from interface org.springframework.data.mapping.PersistentEntity

    doWithAll, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, requiresPropertyPopulation

    Methods inherited from interface org.springframework.data.relational.core.mapping.RelationalPersistentEntity

    getQualifiedTableName
  • Constructor Details

    • DinoJdbcPersistentEntity

      public DinoJdbcPersistentEntity(org.springframework.data.util.TypeInformation<T> information, org.springframework.data.relational.core.mapping.NamingStrategy namingStrategy)
      Creates a new DinoJdbcPersistentEntity for the given TypeInformation.
      Parameters:
      information - must not be null.
  • Method Details

    • isForceQuote

      public boolean isForceQuote()
    • setForceQuote

      public void setForceQuote(boolean forceQuote)
    • getTableName

      public org.springframework.data.relational.core.sql.SqlIdentifier getTableName()
      Specified by:
      getTableName in interface org.springframework.data.relational.core.mapping.RelationalPersistentEntity<T>
    • getIdColumn

      public org.springframework.data.relational.core.sql.SqlIdentifier getIdColumn()
      Specified by:
      getIdColumn in interface org.springframework.data.relational.core.mapping.RelationalPersistentEntity<T>
    • toString

      public String toString()
      Overrides:
      toString in class Object