Class EntityMetadata
- java.lang.Object
-
- net.lecousin.reactive.data.relational.model.metadata.EntityMetadata
-
public class EntityMetadata extends Object
Information about an entity class, with specificities to a database connection.- Author:
- Guillaume Le Cousin
-
-
Constructor Summary
Constructors Constructor Description EntityMetadata(LcReactiveDataRelationalClient client, org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?> entity)
-
Method Summary
-
-
-
Constructor Detail
-
EntityMetadata
public EntityMetadata(@NonNull LcReactiveDataRelationalClient client, @NonNull org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?> entity)
-
-
Method Detail
-
getName
@NonNull public String getName()
-
getClient
@NonNull public LcReactiveDataRelationalClient getClient()
-
getStaticMetadata
@NonNull public EntityStaticMetadata getStaticMetadata()
-
getSpringMetadata
@NonNull public org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?> getSpringMetadata()
-
getType
@NonNull public Class<?> getType()
-
getProperty
@Nullable public PropertyMetadata getProperty(String name)
-
getRequiredProperty
@NonNull public PropertyMetadata getRequiredProperty(String name)
-
getProperties
@NonNull public Collection<PropertyMetadata> getProperties()
-
getPersistentProperties
@NonNull public Iterable<PropertyMetadata> getPersistentProperties()
-
getRequiredPersistentProperty
@NonNull public PropertyMetadata getRequiredPersistentProperty(String name)
-
getForeignKeys
public Iterable<PropertyMetadata> getForeignKeys()
-
getRequiredForeignTableProperty
@NonNull public PropertyMetadata getRequiredForeignTableProperty(String name)
-
getGeneratedValues
public Iterable<PropertyMetadata> getGeneratedValues()
-
hasIdProperty
public boolean hasIdProperty()
-
getIdProperty
@Nullable public PropertyMetadata getIdProperty()
-
getRequiredIdProperty
@NonNull public PropertyMetadata getRequiredIdProperty()
-
hasCompositeId
public boolean hasCompositeId()
-
getCompositeIdAnnotation
@Nullable public CompositeId getCompositeIdAnnotation()
-
getRequiredCompositeId
@NonNull public CompositeId getRequiredCompositeId()
-
getCompositeIdProperties
public List<PropertyMetadata> getCompositeIdProperties()
-
getTableName
@NonNull public org.springframework.data.relational.core.sql.SqlIdentifier getTableName()
-
hasVersionProperty
public boolean hasVersionProperty()
-
getVersionProperty
@Nullable public PropertyMetadata getVersionProperty()
-
getRequiredVersionProperty
@NonNull public PropertyMetadata getRequiredVersionProperty()
-
-