Class StructuredContentFieldImpl
java.lang.Object
org.broadleafcommerce.cms.structure.domain.StructuredContentFieldImpl
- All Implemented Interfaces:
Serializable,Cloneable,StructuredContentField,org.broadleafcommerce.common.copy.MultiTenantCloneable<StructuredContentField>,org.broadleafcommerce.common.extensibility.jpa.copy.ProfileEntity
@Entity
public class StructuredContentFieldImpl
extends Object
implements StructuredContentField, org.broadleafcommerce.common.extensibility.jpa.copy.ProfileEntity
Created by bpolster.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()<G extends StructuredContentField>
org.broadleafcommerce.common.copy.CreateResponse<G>createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) Returns the fieldKey associated with this field.getId()Gets the primary key.getValue()Sets the value of this custom field.voidsetFieldKey(String fieldKey) Sets the fieldKey.voidSets the primary key.voidReturns the value for this custom field.
-
Field Details
-
id
-
fieldKey
-
stringValue
-
lobValue
-
-
Constructor Details
-
StructuredContentFieldImpl
public StructuredContentFieldImpl()
-
-
Method Details
-
getId
Description copied from interface:StructuredContentFieldGets the primary key.- Specified by:
getIdin interfaceStructuredContentField- Returns:
- the primary key
-
setId
Description copied from interface:StructuredContentFieldSets the primary key.- Specified by:
setIdin interfaceStructuredContentField- Parameters:
id- the new primary key
-
getFieldKey
Description copied from interface:StructuredContentFieldReturns the fieldKey associated with this field. The key used for aStructuredContentFieldis determined by the associatedFieldDefinitionthat was used by the Content Management System to create this instance.As an example, a
StructuredContentTypemight be configured to contain a field definition with a key of "targetUrl".- Specified by:
getFieldKeyin interfaceStructuredContentField- Returns:
- the key associated with this item
- See Also:
-
setFieldKey
Description copied from interface:StructuredContentFieldSets the fieldKey.- Specified by:
setFieldKeyin interfaceStructuredContentField- See Also:
-
getValue
Description copied from interface:StructuredContentFieldSets the value of this custom field.- Specified by:
getValuein interfaceStructuredContentField- Returns:
-
setValue
Description copied from interface:StructuredContentFieldReturns the value for this custom field.- Specified by:
setValuein interfaceStructuredContentField
-
clone
- Specified by:
clonein interfaceStructuredContentField- Overrides:
clonein classObject- Returns:
- a deep copy of this object. By default, clones the fieldKey and value fields and ignores the auditable and id fields.
-
createOrRetrieveCopyInstance
public <G extends StructuredContentField> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) throws CloneNotSupportedException - Specified by:
createOrRetrieveCopyInstancein interfaceorg.broadleafcommerce.common.copy.MultiTenantCloneable<StructuredContentField>- Throws:
CloneNotSupportedException
-