Class DefaultPropertyTypeInfo
- java.lang.Object
-
- com.broadleafcommerce.data.tracking.core.mapping.DefaultPropertyTypeInfo
-
- All Implemented Interfaces:
PropertyTypeInfo
public final class DefaultPropertyTypeInfo extends Object implements PropertyTypeInfo
- Author:
- Nathan Moore (nathandmoore)
-
-
Constructor Summary
Constructors Constructor Description DefaultPropertyTypeInfo(String persistentDomainType, String serializedJavaType, boolean embeddedCollection)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getPersistentDomainType()
Gets theType.getTypeName()
expressed on the persistent domain API for the field.String
getSerializedJavaType()
Gets theJavaType
of the field serialized as a canonical string.int
hashCode()
boolean
isEmbeddedCollection()
Whether the field is an embedded collection.static DefaultPropertyTypeInfo
of(String persistentDomainType, String serializedJavaType, boolean embeddedCollection)
Takes in the arguments necessary to build an instance ofDefaultPropertyTypeInfo
.String
toString()
-
-
-
Method Detail
-
of
@NonNull public static DefaultPropertyTypeInfo of(@NonNull String persistentDomainType, @NonNull String serializedJavaType, boolean embeddedCollection)
Takes in the arguments necessary to build an instance ofDefaultPropertyTypeInfo
.- Parameters:
persistentDomainType
- TheType.getTypeName()
of the persistent domain field being changed.serializedJavaType
- TheJavaType
of the field serialized as a Base64 encoded string.embeddedCollection
- Whether this is an embedded collection field.- Returns:
- a new
DefaultPropertyTypeInfo
instance.
-
getPersistentDomainType
@NonNull public String getPersistentDomainType()
Description copied from interface:PropertyTypeInfo
Gets theType.getTypeName()
expressed on the persistent domain API for the field.- Specified by:
getPersistentDomainType
in interfacePropertyTypeInfo
- Returns:
- The type expressed on the persistent domain API for the field
-
getSerializedJavaType
@NonNull public String getSerializedJavaType()
Description copied from interface:PropertyTypeInfo
Gets theJavaType
of the field serialized as a canonical string.- Specified by:
getSerializedJavaType
in interfacePropertyTypeInfo
- Returns:
- the
JavaType
of the field serialized as a canonical string
-
isEmbeddedCollection
public boolean isEmbeddedCollection()
Description copied from interface:PropertyTypeInfo
Whether the field is an embedded collection. This is used to speed up the process of building theContextState
forContextStateAware entities
from an entity'sChangeDetails
.- Specified by:
isEmbeddedCollection
in interfacePropertyTypeInfo
- Returns:
- Whether the field is an embedded collection
-
-