Class EntityMetadata


  • public class EntityMetadata
    extends Object
    Information about an entity class, with specificities to a database connection.
    Author:
    Guillaume Le Cousin
    • Constructor Detail

      • EntityMetadata

        public EntityMetadata​(@NonNull
                              LcReactiveDataRelationalClient client,
                              @NonNull
                              org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?> entity)
    • Method Detail

      • getName

        @NonNull
        public String getName()
      • getSpringMetadata

        @NonNull
        public org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?> getSpringMetadata()
      • getType

        @NonNull
        public Class<?> getType()
      • getRequiredPersistentProperty

        @NonNull
        public PropertyMetadata getRequiredPersistentProperty​(String name)
      • getRequiredForeignTableProperty

        @NonNull
        public PropertyMetadata getRequiredForeignTableProperty​(String name)
      • hasIdProperty

        public boolean hasIdProperty()
      • getRequiredIdProperty

        @NonNull
        public PropertyMetadata getRequiredIdProperty()
      • hasCompositeId

        public boolean hasCompositeId()
      • getCompositeIdAnnotation

        @Nullable
        public CompositeId getCompositeIdAnnotation()
      • getRequiredCompositeId

        @NonNull
        public CompositeId getRequiredCompositeId()
      • getTableName

        @NonNull
        public org.springframework.data.relational.core.sql.SqlIdentifier getTableName()
      • hasVersionProperty

        public boolean hasVersionProperty()
      • getRequiredVersionProperty

        @NonNull
        public PropertyMetadata getRequiredVersionProperty()