public abstract class GeneratedCustomerReview extends GenericItem
CustomerReview.GenericItem.GenericItemImplLocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException| Modifier and Type | Field and Description |
|---|---|
static String |
ALIAS
Qualifier of the
CustomerReview.alias attribute |
static String |
APPROVALSTATUS
Qualifier of the
CustomerReview.approvalStatus attribute |
static String |
BLOCKED
Qualifier of the
CustomerReview.blocked attribute |
static String |
COMMENT
Qualifier of the
CustomerReview.comment attribute |
protected static Map<String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static String |
HEADLINE
Qualifier of the
CustomerReview.headline attribute |
static String |
LANGUAGE
Qualifier of the
CustomerReview.language attribute |
static String |
PRODUCT
Qualifier of the
CustomerReview.product attribute |
protected static BidirectionalOneToManyHandler<GeneratedCustomerReview> |
PRODUCTHANDLER
BidirectionalOneToManyHandler for handling 1:n PRODUCT's relation attributes from 'one' side. |
static String |
RATING
Qualifier of the
CustomerReview.rating attribute |
static String |
USER
Qualifier of the
CustomerReview.user attribute |
protected static BidirectionalOneToManyHandler<GeneratedCustomerReview> |
USERHANDLER
BidirectionalOneToManyHandler for handling 1:n USER's relation attributes from 'one' side. |
LANGUAGE_FALLBACK_ENABLED_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPEimpl, tenant| Constructor and Description |
|---|
GeneratedCustomerReview() |
| Modifier and Type | Method and Description |
|---|---|
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
Has to be implemented for each concrete subtype of item.
|
String |
getAlias()
Generated method - Getter of the
CustomerReview.alias attribute. |
String |
getAlias(SessionContext ctx)
Generated method - Getter of the
CustomerReview.alias attribute. |
EnumerationValue |
getApprovalStatus()
Generated method - Getter of the
CustomerReview.approvalStatus attribute. |
EnumerationValue |
getApprovalStatus(SessionContext ctx)
Generated method - Getter of the
CustomerReview.approvalStatus attribute. |
String |
getComment()
Generated method - Getter of the
CustomerReview.comment attribute. |
String |
getComment(SessionContext ctx)
Generated method - Getter of the
CustomerReview.comment attribute. |
protected Map<String,Item.AttributeMode> |
getDefaultAttributeModes() |
String |
getHeadline()
Generated method - Getter of the
CustomerReview.headline attribute. |
String |
getHeadline(SessionContext ctx)
Generated method - Getter of the
CustomerReview.headline attribute. |
Language |
getLanguage()
Generated method - Getter of the
CustomerReview.language attribute. |
Language |
getLanguage(SessionContext ctx)
Generated method - Getter of the
CustomerReview.language attribute. |
Product |
getProduct()
Generated method - Getter of the
CustomerReview.product attribute. |
Product |
getProduct(SessionContext ctx)
Generated method - Getter of the
CustomerReview.product attribute. |
Double |
getRating()
Generated method - Getter of the
CustomerReview.rating attribute. |
Double |
getRating(SessionContext ctx)
Generated method - Getter of the
CustomerReview.rating attribute. |
double |
getRatingAsPrimitive()
Generated method - Getter of the
CustomerReview.rating attribute. |
double |
getRatingAsPrimitive(SessionContext ctx)
Generated method - Getter of the
CustomerReview.rating attribute. |
User |
getUser()
Generated method - Getter of the
CustomerReview.user attribute. |
User |
getUser(SessionContext ctx)
Generated method - Getter of the
CustomerReview.user attribute. |
Boolean |
isBlocked()
Generated method - Getter of the
CustomerReview.blocked attribute. |
Boolean |
isBlocked(SessionContext ctx)
Generated method - Getter of the
CustomerReview.blocked attribute. |
boolean |
isBlockedAsPrimitive()
Generated method - Getter of the
CustomerReview.blocked attribute. |
boolean |
isBlockedAsPrimitive(SessionContext ctx)
Generated method - Getter of the
CustomerReview.blocked attribute. |
void |
setAlias(SessionContext ctx,
String value)
Generated method - Setter of the
CustomerReview.alias attribute. |
void |
setAlias(String value)
Generated method - Setter of the
CustomerReview.alias attribute. |
void |
setApprovalStatus(EnumerationValue value)
Generated method - Setter of the
CustomerReview.approvalStatus attribute. |
void |
setApprovalStatus(SessionContext ctx,
EnumerationValue value)
Generated method - Setter of the
CustomerReview.approvalStatus attribute. |
void |
setBlocked(boolean value)
Generated method - Setter of the
CustomerReview.blocked attribute. |
void |
setBlocked(Boolean value)
Generated method - Setter of the
CustomerReview.blocked attribute. |
void |
setBlocked(SessionContext ctx,
boolean value)
Generated method - Setter of the
CustomerReview.blocked attribute. |
void |
setBlocked(SessionContext ctx,
Boolean value)
Generated method - Setter of the
CustomerReview.blocked attribute. |
void |
setComment(SessionContext ctx,
String value)
Generated method - Setter of the
CustomerReview.comment attribute. |
void |
setComment(String value)
Generated method - Setter of the
CustomerReview.comment attribute. |
void |
setHeadline(SessionContext ctx,
String value)
Generated method - Setter of the
CustomerReview.headline attribute. |
void |
setHeadline(String value)
Generated method - Setter of the
CustomerReview.headline attribute. |
void |
setLanguage(Language value)
Generated method - Setter of the
CustomerReview.language attribute. |
void |
setLanguage(SessionContext ctx,
Language value)
Generated method - Setter of the
CustomerReview.language attribute. |
protected void |
setProduct(Product value)
Generated method - Setter of the
CustomerReview.product attribute. |
protected void |
setProduct(SessionContext ctx,
Product value)
Generated method - Setter of the
CustomerReview.product attribute. |
void |
setRating(double value)
Generated method - Setter of the
CustomerReview.rating attribute. |
void |
setRating(Double value)
Generated method - Setter of the
CustomerReview.rating attribute. |
void |
setRating(SessionContext ctx,
double value)
Generated method - Setter of the
CustomerReview.rating attribute. |
void |
setRating(SessionContext ctx,
Double value)
Generated method - Setter of the
CustomerReview.rating attribute. |
protected void |
setUser(SessionContext ctx,
User value)
Generated method - Setter of the
CustomerReview.user attribute. |
protected void |
setUser(User value)
Generated method - Setter of the
CustomerReview.user attribute. |
getInitialProperties, getNonInitialAttributesgetAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedPropertycreateNonClassAccessor, getAllProperties, getAllProperties, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setPropertyaddLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addNegativePermission, addPermission, addPositivePermission, assureExtensionsLoaded, changeTypeAfterCreation, checkConstraint, checkItemPermission, checkMandatoryAttribute, checkMandatoryAttribute, checkPermission, checkPermission, checkRemovable, clearPermission, compareTo, ctx, doAfterRemove, doBeforeRemove, equals, getAccessorFor, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributesInternal, getAllLinkedItems, getAndCheckCacheBoundItem, getAttribute, getAttribute, getCacheBoundItem, getComposedType, getComposedTypePK, getCreationTime, getCurrentlyRemovingCount, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItemsCount, getLinkedItemsCount, getLinkedItemsCount, getModificationTime, getNegativePermissions, getOwner, getPermissionMap, getPermissions, getPersistenceVersion, getPK, getPositivePermissions, getRestrictedPrincipals, getSession, getSyncObject, getTenant, getTransientObject, getTransientObjectMap, hashCode, hasRegisteredClassAccessorFor, internal_registerClassAccessorFor, internal_registerNonClassAccessorFor, invalidateLocalCaches, isAlive, isCacheBound, isCurrentlyRemoving, isCurrentlyRemoving, isEmptyRelationValue, isInCreate, isInstanceOf, isItemCheckBeforeRemoveableDisabled, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, readResolve, refreshRemote, registerAccessFor, registerAccessFor, registerJaloInvalidationListeners, remove, remove, removeItemCollection, removeItemCollection, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinks, removePartOfItems, removePartOfItems, setAllAttributes, setAllAttributes, setAllAttributesInternal, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAttribute, setAttribute, setAttributeFromString, setAttributeFromString, setCacheBound, setComposedType, setCreationTime, setImplementation, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setModificationTime, setNonInitialAttributes, setOwner, setPermissionsByMap, setTransientObject, setUseTA, toString, useTA, writeReplacegetImplementation, setTenantpublic static final String HEADLINE
CustomerReview.headline attributepublic static final String COMMENT
CustomerReview.comment attributepublic static final String RATING
CustomerReview.rating attributepublic static final String BLOCKED
CustomerReview.blocked attributepublic static final String ALIAS
CustomerReview.alias attributepublic static final String APPROVALSTATUS
CustomerReview.approvalStatus attributepublic static final String LANGUAGE
CustomerReview.language attributepublic static final String USER
CustomerReview.user attributepublic static final String PRODUCT
CustomerReview.product attributeprotected static final BidirectionalOneToManyHandler<GeneratedCustomerReview> USERHANDLER
BidirectionalOneToManyHandler for handling 1:n USER's relation attributes from 'one' side.protected static final BidirectionalOneToManyHandler<GeneratedCustomerReview> PRODUCTHANDLER
BidirectionalOneToManyHandler for handling 1:n PRODUCT's relation attributes from 'one' side.protected static final Map<String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
getDefaultAttributeModes in class Itempublic String getAlias(SessionContext ctx)
CustomerReview.alias attribute.public String getAlias()
CustomerReview.alias attribute.public void setAlias(SessionContext ctx, String value)
CustomerReview.alias attribute.value - the alias - It holds the alias of the customer who wrote the review.public void setAlias(String value)
CustomerReview.alias attribute.value - the alias - It holds the alias of the customer who wrote the review.public EnumerationValue getApprovalStatus(SessionContext ctx)
CustomerReview.approvalStatus attribute.public EnumerationValue getApprovalStatus()
CustomerReview.approvalStatus attribute.public void setApprovalStatus(SessionContext ctx, EnumerationValue value)
CustomerReview.approvalStatus attribute.value - the approvalStatus - Its a review status type - when review is approved it is visible in the frontend.public void setApprovalStatus(EnumerationValue value)
CustomerReview.approvalStatus attribute.value - the approvalStatus - Its a review status type - when review is approved it is visible in the frontend.public Boolean isBlocked(SessionContext ctx)
CustomerReview.blocked attribute.public Boolean isBlocked()
CustomerReview.blocked attribute.public boolean isBlockedAsPrimitive(SessionContext ctx)
CustomerReview.blocked attribute.public boolean isBlockedAsPrimitive()
CustomerReview.blocked attribute.public void setBlocked(SessionContext ctx, Boolean value)
CustomerReview.blocked attribute.value - the blocked - This attribute can be set to true to indicate,
that the review should be blocked, eg when it is
offensive.public void setBlocked(Boolean value)
CustomerReview.blocked attribute.value - the blocked - This attribute can be set to true to indicate,
that the review should be blocked, eg when it is
offensive.public void setBlocked(SessionContext ctx, boolean value)
CustomerReview.blocked attribute.value - the blocked - This attribute can be set to true to indicate,
that the review should be blocked, eg when it is
offensive.public void setBlocked(boolean value)
CustomerReview.blocked attribute.value - the blocked - This attribute can be set to true to indicate,
that the review should be blocked, eg when it is
offensive.public String getComment(SessionContext ctx)
CustomerReview.comment attribute.public String getComment()
CustomerReview.comment attribute.public void setComment(SessionContext ctx, String value)
CustomerReview.comment attribute.value - the comment - Comment for the customer reviewpublic void setComment(String value)
CustomerReview.comment attribute.value - the comment - Comment for the customer reviewprotected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
ItemComposedType.newInstance(Map).
In case this method uses any of the attribute values during creation it is required to override
Item.getNonInitialAttributes(SessionContext, ItemAttributeMap) too.
Sn example:
public static final String MY_ATTRIBUTE = "someAttribute"; ... protected Item createItem(SessionContext
ctx, ComposedType type, Map allAttributes ) throws JaloBusinessException { MyManager man = ... return
man.createMyItem( (String)allAttributes.get(MY_ATTRIBUTE) );
// here MY_ATTRIBUTE is used for creation, so it must not be set again } protected Map getNonInitialAttributes(
SessionContext ctx, Map allAttributes ) { // let superclass remove its own initial attributes Map ret =
super.getNonInitialAttributes( ctx, allAttributes );
// remove MY_ATTRIBUTE from all attributes since if has already been set ret.remove(MY_ATTRIBUTE); return ret; }
createItem in class GenericItemctx - the current session context which this item is created withintype - the actual item type ( since subtypes may not provide a own jalo class this may be different from the
type which this method was implemented for )JaloBusinessException - indicates an error during creation - any changes will be rollbackedpublic String getHeadline(SessionContext ctx)
CustomerReview.headline attribute.public String getHeadline()
CustomerReview.headline attribute.public void setHeadline(SessionContext ctx, String value)
CustomerReview.headline attribute.value - the headline - Headline for the customer reviewpublic void setHeadline(String value)
CustomerReview.headline attribute.value - the headline - Headline for the customer reviewpublic Language getLanguage(SessionContext ctx)
CustomerReview.language attribute.public Language getLanguage()
CustomerReview.language attribute.public void setLanguage(SessionContext ctx, Language value)
CustomerReview.language attribute.value - the language - It holds the information about language that review was written with.public void setLanguage(Language value)
CustomerReview.language attribute.value - the language - It holds the information about language that review was written with.public Product getProduct(SessionContext ctx)
CustomerReview.product attribute.public Product getProduct()
CustomerReview.product attribute.protected void setProduct(SessionContext ctx, Product value)
CustomerReview.product attribute.value - the productprotected void setProduct(Product value)
CustomerReview.product attribute.value - the productpublic Double getRating(SessionContext ctx)
CustomerReview.rating attribute.public Double getRating()
CustomerReview.rating attribute.public double getRatingAsPrimitive(SessionContext ctx)
CustomerReview.rating attribute.public double getRatingAsPrimitive()
CustomerReview.rating attribute.public void setRating(SessionContext ctx, Double value)
CustomerReview.rating attribute.value - the rating - The rating, between customerreview.minimalrating (lowest rating) and
customerreview.maximalrating (highest rating)public void setRating(Double value)
CustomerReview.rating attribute.value - the rating - The rating, between customerreview.minimalrating (lowest rating) and
customerreview.maximalrating (highest rating)public void setRating(SessionContext ctx, double value)
CustomerReview.rating attribute.value - the rating - The rating, between customerreview.minimalrating (lowest rating) and
customerreview.maximalrating (highest rating)public void setRating(double value)
CustomerReview.rating attribute.value - the rating - The rating, between customerreview.minimalrating (lowest rating) and
customerreview.maximalrating (highest rating)public User getUser(SessionContext ctx)
CustomerReview.user attribute.public User getUser()
CustomerReview.user attribute.protected void setUser(SessionContext ctx, User value)
CustomerReview.user attribute.value - the userprotected void setUser(User value)
CustomerReview.user attribute.value - the userCopyright © 2017 SAP SE. All Rights Reserved.