Package de.hybris.platform.catalog.jalo
Class GeneratedAgreement
- java.lang.Object
-
- de.hybris.platform.util.BridgeAbstraction
-
- de.hybris.platform.jalo.Item
-
- de.hybris.platform.jalo.ExtensibleItem
-
- de.hybris.platform.jalo.c2l.LocalizableItem
-
- de.hybris.platform.jalo.GenericItem
-
- de.hybris.platform.catalog.jalo.GeneratedAgreement
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable
- Direct Known Subclasses:
Agreement
public abstract class GeneratedAgreement extends GenericItem
Generated class for typeAgreement.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.GenericItem
GenericItem.GenericItemImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LocalizableItem.LocalizableItemImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.ExtensibleItem
ExtensibleItem.ExtensibleItemImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.Item
Item.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBUYERQualifier of theAgreement.buyerattributestatic java.lang.StringBUYERCONTACTQualifier of theAgreement.buyerContactattributestatic java.lang.StringCATALOGQualifier of theAgreement.Catalogattributestatic java.lang.StringCATALOGVERSIONQualifier of theAgreement.catalogVersionattributeprotected static BidirectionalOneToManyHandler<GeneratedAgreement>CATALOGVERSIONHANDLERBidirectionalOneToManyHandlerfor handling 1:n CATALOGVERSION's relation attributes from 'one' side.static java.lang.StringCURRENCYQualifier of theAgreement.currencyattributeprotected static java.util.Map<java.lang.String,Item.AttributeMode>DEFAULT_INITIAL_ATTRIBUTESstatic java.lang.StringENDDATEQualifier of theAgreement.enddateattributestatic java.lang.StringIDQualifier of theAgreement.idattributestatic java.lang.StringSTARTDATEQualifier of theAgreement.startdateattributestatic java.lang.StringSUPPLIERQualifier of theAgreement.supplierattributestatic java.lang.StringSUPPLIERCONTACTQualifier of theAgreement.supplierContactattribute-
Fields inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LANGUAGE_FALLBACK_ENABLED
-
Fields inherited from class de.hybris.platform.jalo.Item
_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, HJMPTS, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPE
-
Fields inherited from class de.hybris.platform.util.BridgeAbstraction
impl, tenant
-
-
Constructor Summary
Constructors Constructor Description GeneratedAgreement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ItemcreateItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes)Has to be implemented for each concrete subtype of item.CompanygetBuyer()Generated method - Getter of theAgreement.buyerattribute.CompanygetBuyer(SessionContext ctx)Generated method - Getter of theAgreement.buyerattribute.UsergetBuyerContact()Generated method - Getter of theAgreement.buyerContactattribute.UsergetBuyerContact(SessionContext ctx)Generated method - Getter of theAgreement.buyerContactattribute.CatalogVersiongetCatalogVersion()Generated method - Getter of theAgreement.catalogVersionattribute.CatalogVersiongetCatalogVersion(SessionContext ctx)Generated method - Getter of theAgreement.catalogVersionattribute.CurrencygetCurrency()Generated method - Getter of theAgreement.currencyattribute.CurrencygetCurrency(SessionContext ctx)Generated method - Getter of theAgreement.currencyattribute.protected java.util.Map<java.lang.String,Item.AttributeMode>getDefaultAttributeModes()java.util.DategetEnddate()Generated method - Getter of theAgreement.enddateattribute.java.util.DategetEnddate(SessionContext ctx)Generated method - Getter of theAgreement.enddateattribute.java.lang.StringgetId()Generated method - Getter of theAgreement.idattribute.java.lang.StringgetId(SessionContext ctx)Generated method - Getter of theAgreement.idattribute.java.util.DategetStartdate()Generated method - Getter of theAgreement.startdateattribute.java.util.DategetStartdate(SessionContext ctx)Generated method - Getter of theAgreement.startdateattribute.CompanygetSupplier()Generated method - Getter of theAgreement.supplierattribute.CompanygetSupplier(SessionContext ctx)Generated method - Getter of theAgreement.supplierattribute.UsergetSupplierContact()Generated method - Getter of theAgreement.supplierContactattribute.UsergetSupplierContact(SessionContext ctx)Generated method - Getter of theAgreement.supplierContactattribute.voidsetBuyer(Company value)Generated method - Setter of theAgreement.buyerattribute.voidsetBuyer(SessionContext ctx, Company value)Generated method - Setter of theAgreement.buyerattribute.voidsetBuyerContact(SessionContext ctx, User value)Generated method - Setter of theAgreement.buyerContactattribute.voidsetBuyerContact(User value)Generated method - Setter of theAgreement.buyerContactattribute.voidsetCatalogVersion(CatalogVersion value)Generated method - Setter of theAgreement.catalogVersionattribute.voidsetCatalogVersion(SessionContext ctx, CatalogVersion value)Generated method - Setter of theAgreement.catalogVersionattribute.voidsetCurrency(Currency value)Generated method - Setter of theAgreement.currencyattribute.voidsetCurrency(SessionContext ctx, Currency value)Generated method - Setter of theAgreement.currencyattribute.voidsetEnddate(SessionContext ctx, java.util.Date value)Generated method - Setter of theAgreement.enddateattribute.voidsetEnddate(java.util.Date value)Generated method - Setter of theAgreement.enddateattribute.voidsetId(SessionContext ctx, java.lang.String value)Generated method - Setter of theAgreement.idattribute.voidsetId(java.lang.String value)Generated method - Setter of theAgreement.idattribute.voidsetStartdate(SessionContext ctx, java.util.Date value)Generated method - Setter of theAgreement.startdateattribute.voidsetStartdate(java.util.Date value)Generated method - Setter of theAgreement.startdateattribute.voidsetSupplier(Company value)Generated method - Setter of theAgreement.supplierattribute.voidsetSupplier(SessionContext ctx, Company value)Generated method - Setter of theAgreement.supplierattribute.voidsetSupplierContact(SessionContext ctx, User value)Generated method - Setter of theAgreement.supplierContactattribute.voidsetSupplierContact(User value)Generated method - Setter of theAgreement.supplierContactattribute.-
Methods inherited from class de.hybris.platform.jalo.GenericItem
getImplementation, getInitialProperties, getNonInitialAttributes, getRelatedItems, getRelatedItems, setRelatedItems
-
Methods inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedProperty
-
Methods inherited from class de.hybris.platform.jalo.ExtensibleItem
createNonClassAccessor, getAllProperties, getAllProperties, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setProperty
-
Methods inherited from class de.hybris.platform.jalo.Item
addLinkedItems, 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, getPartOfRemovedSessionMarker, 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, isMarkModifiedDisabled, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, notifyManagerAboutItemRemoval, readResolve, 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, suppressRelation, toString, useTA, writeReplace
-
Methods inherited from class de.hybris.platform.util.BridgeAbstraction
setTenant
-
-
-
-
Field Detail
-
ID
public static final java.lang.String ID
Qualifier of theAgreement.idattribute- See Also:
- Constant Field Values
-
STARTDATE
public static final java.lang.String STARTDATE
Qualifier of theAgreement.startdateattribute- See Also:
- Constant Field Values
-
ENDDATE
public static final java.lang.String ENDDATE
Qualifier of theAgreement.enddateattribute- See Also:
- Constant Field Values
-
CATALOG
public static final java.lang.String CATALOG
Qualifier of theAgreement.Catalogattribute- See Also:
- Constant Field Values
-
BUYER
public static final java.lang.String BUYER
Qualifier of theAgreement.buyerattribute- See Also:
- Constant Field Values
-
SUPPLIER
public static final java.lang.String SUPPLIER
Qualifier of theAgreement.supplierattribute- See Also:
- Constant Field Values
-
BUYERCONTACT
public static final java.lang.String BUYERCONTACT
Qualifier of theAgreement.buyerContactattribute- See Also:
- Constant Field Values
-
SUPPLIERCONTACT
public static final java.lang.String SUPPLIERCONTACT
Qualifier of theAgreement.supplierContactattribute- See Also:
- Constant Field Values
-
CURRENCY
public static final java.lang.String CURRENCY
Qualifier of theAgreement.currencyattribute- See Also:
- Constant Field Values
-
CATALOGVERSION
public static final java.lang.String CATALOGVERSION
Qualifier of theAgreement.catalogVersionattribute- See Also:
- Constant Field Values
-
CATALOGVERSIONHANDLER
protected static final BidirectionalOneToManyHandler<GeneratedAgreement> CATALOGVERSIONHANDLER
BidirectionalOneToManyHandlerfor handling 1:n CATALOGVERSION's relation attributes from 'one' side.
-
DEFAULT_INITIAL_ATTRIBUTES
protected static final java.util.Map<java.lang.String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
-
-
Method Detail
-
getDefaultAttributeModes
protected java.util.Map<java.lang.String,Item.AttributeMode> getDefaultAttributeModes()
- Overrides:
getDefaultAttributeModesin classItem
-
getBuyer
public Company getBuyer(SessionContext ctx)
Generated method - Getter of theAgreement.buyerattribute.- Returns:
- the buyer - buyer
-
getBuyer
public Company getBuyer()
Generated method - Getter of theAgreement.buyerattribute.- Returns:
- the buyer - buyer
-
setBuyer
public void setBuyer(SessionContext ctx, Company value)
Generated method - Setter of theAgreement.buyerattribute.- Parameters:
value- the buyer - buyer
-
setBuyer
public void setBuyer(Company value)
Generated method - Setter of theAgreement.buyerattribute.- Parameters:
value- the buyer - buyer
-
getBuyerContact
public User getBuyerContact(SessionContext ctx)
Generated method - Getter of theAgreement.buyerContactattribute.- Returns:
- the buyerContact - buyerContact
-
getBuyerContact
public User getBuyerContact()
Generated method - Getter of theAgreement.buyerContactattribute.- Returns:
- the buyerContact - buyerContact
-
setBuyerContact
public void setBuyerContact(SessionContext ctx, User value)
Generated method - Setter of theAgreement.buyerContactattribute.- Parameters:
value- the buyerContact - buyerContact
-
setBuyerContact
public void setBuyerContact(User value)
Generated method - Setter of theAgreement.buyerContactattribute.- Parameters:
value- the buyerContact - buyerContact
-
getCatalogVersion
public CatalogVersion getCatalogVersion(SessionContext ctx)
Generated method - Getter of theAgreement.catalogVersionattribute.- Returns:
- the catalogVersion
-
getCatalogVersion
public CatalogVersion getCatalogVersion()
Generated method - Getter of theAgreement.catalogVersionattribute.- Returns:
- the catalogVersion
-
setCatalogVersion
public void setCatalogVersion(SessionContext ctx, CatalogVersion value)
Generated method - Setter of theAgreement.catalogVersionattribute.- Parameters:
value- the catalogVersion
-
setCatalogVersion
public void setCatalogVersion(CatalogVersion value)
Generated method - Setter of theAgreement.catalogVersionattribute.- Parameters:
value- the catalogVersion
-
createItem
protected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
Description copied from class:ItemHas to be implemented for each concrete subtype of item. This method is responsible for creating a new item instance ( by calling managers, ejb homes, etc. ) duringComposedType.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; }- Overrides:
createItemin classGenericItem- Parameters:
ctx- 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 )- Returns:
- the new item instance
- Throws:
JaloBusinessException- indicates an error during creation - any changes will be rollbacked
-
getCurrency
public Currency getCurrency(SessionContext ctx)
Generated method - Getter of theAgreement.currencyattribute.- Returns:
- the currency - currency
-
getCurrency
public Currency getCurrency()
Generated method - Getter of theAgreement.currencyattribute.- Returns:
- the currency - currency
-
setCurrency
public void setCurrency(SessionContext ctx, Currency value)
Generated method - Setter of theAgreement.currencyattribute.- Parameters:
value- the currency - currency
-
setCurrency
public void setCurrency(Currency value)
Generated method - Setter of theAgreement.currencyattribute.- Parameters:
value- the currency - currency
-
getEnddate
public java.util.Date getEnddate(SessionContext ctx)
Generated method - Getter of theAgreement.enddateattribute.- Returns:
- the enddate - Agreement ID
-
getEnddate
public java.util.Date getEnddate()
Generated method - Getter of theAgreement.enddateattribute.- Returns:
- the enddate - Agreement ID
-
setEnddate
public void setEnddate(SessionContext ctx, java.util.Date value)
Generated method - Setter of theAgreement.enddateattribute.- Parameters:
value- the enddate - Agreement ID
-
setEnddate
public void setEnddate(java.util.Date value)
Generated method - Setter of theAgreement.enddateattribute.- Parameters:
value- the enddate - Agreement ID
-
getId
public java.lang.String getId(SessionContext ctx)
Generated method - Getter of theAgreement.idattribute.- Returns:
- the id - Agreement ID
-
getId
public java.lang.String getId()
Generated method - Getter of theAgreement.idattribute.- Returns:
- the id - Agreement ID
-
setId
public void setId(SessionContext ctx, java.lang.String value)
Generated method - Setter of theAgreement.idattribute.- Parameters:
value- the id - Agreement ID
-
setId
public void setId(java.lang.String value)
Generated method - Setter of theAgreement.idattribute.- Parameters:
value- the id - Agreement ID
-
getStartdate
public java.util.Date getStartdate(SessionContext ctx)
Generated method - Getter of theAgreement.startdateattribute.- Returns:
- the startdate - Start Date
-
getStartdate
public java.util.Date getStartdate()
Generated method - Getter of theAgreement.startdateattribute.- Returns:
- the startdate - Start Date
-
setStartdate
public void setStartdate(SessionContext ctx, java.util.Date value)
Generated method - Setter of theAgreement.startdateattribute.- Parameters:
value- the startdate - Start Date
-
setStartdate
public void setStartdate(java.util.Date value)
Generated method - Setter of theAgreement.startdateattribute.- Parameters:
value- the startdate - Start Date
-
getSupplier
public Company getSupplier(SessionContext ctx)
Generated method - Getter of theAgreement.supplierattribute.- Returns:
- the supplier - supplier
-
getSupplier
public Company getSupplier()
Generated method - Getter of theAgreement.supplierattribute.- Returns:
- the supplier - supplier
-
setSupplier
public void setSupplier(SessionContext ctx, Company value)
Generated method - Setter of theAgreement.supplierattribute.- Parameters:
value- the supplier - supplier
-
setSupplier
public void setSupplier(Company value)
Generated method - Setter of theAgreement.supplierattribute.- Parameters:
value- the supplier - supplier
-
getSupplierContact
public User getSupplierContact(SessionContext ctx)
Generated method - Getter of theAgreement.supplierContactattribute.- Returns:
- the supplierContact - supplierContact
-
getSupplierContact
public User getSupplierContact()
Generated method - Getter of theAgreement.supplierContactattribute.- Returns:
- the supplierContact - supplierContact
-
setSupplierContact
public void setSupplierContact(SessionContext ctx, User value)
Generated method - Setter of theAgreement.supplierContactattribute.- Parameters:
value- the supplierContact - supplierContact
-
setSupplierContact
public void setSupplierContact(User value)
Generated method - Setter of theAgreement.supplierContactattribute.- Parameters:
value- the supplierContact - supplierContact
-
-