Class BasicMarkLogicPersistentProperty
- java.lang.Object
-
- org.springframework.data.mapping.model.AbstractPersistentProperty<P>
-
- org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<MarkLogicPersistentProperty>
-
- io.github.malteseduck.springframework.data.marklogic.core.mapping.BasicMarkLogicPersistentProperty
-
- All Implemented Interfaces:
MarkLogicPersistentProperty
,org.springframework.data.mapping.PersistentProperty<MarkLogicPersistentProperty>
public class BasicMarkLogicPersistentProperty extends org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<MarkLogicPersistentProperty> implements MarkLogicPersistentProperty
-
-
Constructor Summary
Constructors Constructor Description BasicMarkLogicPersistentProperty(org.springframework.data.mapping.model.Property property, org.springframework.data.mapping.PersistentEntity<?,MarkLogicPersistentProperty> owner, org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.data.mapping.Association<MarkLogicPersistentProperty>
createAssociation()
String
getFieldName()
Returns the name of the field a property is persisted to.IndexType
getIndexType()
String
getPath()
boolean
isExplicitIdProperty()
Returns whether the property is explicitly marked as an identifier property of the owningPersistentEntity
.-
Methods inherited from class org.springframework.data.mapping.model.AnnotationBasedPersistentProperty
findAnnotation, findPropertyOrOwnerAnnotation, getAssociationTargetType, getSpelExpression, isAnnotationPresent, isAssociation, isIdProperty, isTransient, isVersionProperty, isWritable, toString, usePropertyAccess
-
Methods inherited from class org.springframework.data.mapping.model.AbstractPersistentProperty
equals, getActualType, getAssociation, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityTypes, getProperty, getRawType, getSetter, getType, getTypeInformation, getWither, hashCode, isArray, isCollectionLike, isEntity, isImmutable, isMap
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.springframework.data.mapping.PersistentProperty
findAnnotation, findPropertyOrOwnerAnnotation, getActualType, getAssociation, getAssociationTargetType, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityTypes, getRawType, getRequiredAnnotation, getRequiredAssociation, getRequiredField, getRequiredGetter, getRequiredSetter, getRequiredWither, getSetter, getSpelExpression, getType, getTypeInformation, getWither, hasActualTypeAnnotation, isAnnotationPresent, isArray, isAssociation, isCollectionLike, isEntity, isIdProperty, isImmutable, isMap, isTransient, isVersionProperty, isWritable, usePropertyAccess
-
-
-
-
Constructor Detail
-
BasicMarkLogicPersistentProperty
public BasicMarkLogicPersistentProperty(org.springframework.data.mapping.model.Property property, org.springframework.data.mapping.PersistentEntity<?,MarkLogicPersistentProperty> owner, org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder)
-
-
Method Detail
-
createAssociation
protected org.springframework.data.mapping.Association<MarkLogicPersistentProperty> createAssociation()
- Specified by:
createAssociation
in classorg.springframework.data.mapping.model.AbstractPersistentProperty<MarkLogicPersistentProperty>
-
getFieldName
public String getFieldName()
Description copied from interface:MarkLogicPersistentProperty
Returns the name of the field a property is persisted to.- Specified by:
getFieldName
in interfaceMarkLogicPersistentProperty
- Returns:
-
isExplicitIdProperty
public boolean isExplicitIdProperty()
Description copied from interface:MarkLogicPersistentProperty
Returns whether the property is explicitly marked as an identifier property of the owningPersistentEntity
. A property is an explicit id property if it is annotated options @seeId
.- Specified by:
isExplicitIdProperty
in interfaceMarkLogicPersistentProperty
- Returns:
-
getPath
public String getPath()
- Specified by:
getPath
in interfaceMarkLogicPersistentProperty
-
getIndexType
public IndexType getIndexType()
- Specified by:
getIndexType
in interfaceMarkLogicPersistentProperty
-
-