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.String
BUYER
Qualifier of theAgreement.buyer
attributestatic java.lang.String
BUYERCONTACT
Qualifier of theAgreement.buyerContact
attributestatic java.lang.String
CATALOG
Qualifier of theAgreement.Catalog
attributestatic java.lang.String
CATALOGVERSION
Qualifier of theAgreement.catalogVersion
attributeprotected static BidirectionalOneToManyHandler<GeneratedAgreement>
CATALOGVERSIONHANDLER
BidirectionalOneToManyHandler
for handling 1:n CATALOGVERSION's relation attributes from 'one' side.static java.lang.String
CURRENCY
Qualifier of theAgreement.currency
attributeprotected static java.util.Map<java.lang.String,Item.AttributeMode>
DEFAULT_INITIAL_ATTRIBUTES
static java.lang.String
ENDDATE
Qualifier of theAgreement.enddate
attributestatic java.lang.String
ID
Qualifier of theAgreement.id
attributestatic java.lang.String
STARTDATE
Qualifier of theAgreement.startdate
attributestatic java.lang.String
SUPPLIER
Qualifier of theAgreement.supplier
attributestatic java.lang.String
SUPPLIERCONTACT
Qualifier of theAgreement.supplierContact
attribute-
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 Item
createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes)
Has to be implemented for each concrete subtype of item.Company
getBuyer()
Generated method - Getter of theAgreement.buyer
attribute.Company
getBuyer(SessionContext ctx)
Generated method - Getter of theAgreement.buyer
attribute.User
getBuyerContact()
Generated method - Getter of theAgreement.buyerContact
attribute.User
getBuyerContact(SessionContext ctx)
Generated method - Getter of theAgreement.buyerContact
attribute.CatalogVersion
getCatalogVersion()
Generated method - Getter of theAgreement.catalogVersion
attribute.CatalogVersion
getCatalogVersion(SessionContext ctx)
Generated method - Getter of theAgreement.catalogVersion
attribute.Currency
getCurrency()
Generated method - Getter of theAgreement.currency
attribute.Currency
getCurrency(SessionContext ctx)
Generated method - Getter of theAgreement.currency
attribute.protected java.util.Map<java.lang.String,Item.AttributeMode>
getDefaultAttributeModes()
java.util.Date
getEnddate()
Generated method - Getter of theAgreement.enddate
attribute.java.util.Date
getEnddate(SessionContext ctx)
Generated method - Getter of theAgreement.enddate
attribute.java.lang.String
getId()
Generated method - Getter of theAgreement.id
attribute.java.lang.String
getId(SessionContext ctx)
Generated method - Getter of theAgreement.id
attribute.java.util.Date
getStartdate()
Generated method - Getter of theAgreement.startdate
attribute.java.util.Date
getStartdate(SessionContext ctx)
Generated method - Getter of theAgreement.startdate
attribute.Company
getSupplier()
Generated method - Getter of theAgreement.supplier
attribute.Company
getSupplier(SessionContext ctx)
Generated method - Getter of theAgreement.supplier
attribute.User
getSupplierContact()
Generated method - Getter of theAgreement.supplierContact
attribute.User
getSupplierContact(SessionContext ctx)
Generated method - Getter of theAgreement.supplierContact
attribute.void
setBuyer(Company value)
Generated method - Setter of theAgreement.buyer
attribute.void
setBuyer(SessionContext ctx, Company value)
Generated method - Setter of theAgreement.buyer
attribute.void
setBuyerContact(SessionContext ctx, User value)
Generated method - Setter of theAgreement.buyerContact
attribute.void
setBuyerContact(User value)
Generated method - Setter of theAgreement.buyerContact
attribute.void
setCatalogVersion(CatalogVersion value)
Generated method - Setter of theAgreement.catalogVersion
attribute.void
setCatalogVersion(SessionContext ctx, CatalogVersion value)
Generated method - Setter of theAgreement.catalogVersion
attribute.void
setCurrency(Currency value)
Generated method - Setter of theAgreement.currency
attribute.void
setCurrency(SessionContext ctx, Currency value)
Generated method - Setter of theAgreement.currency
attribute.void
setEnddate(SessionContext ctx, java.util.Date value)
Generated method - Setter of theAgreement.enddate
attribute.void
setEnddate(java.util.Date value)
Generated method - Setter of theAgreement.enddate
attribute.void
setId(SessionContext ctx, java.lang.String value)
Generated method - Setter of theAgreement.id
attribute.void
setId(java.lang.String value)
Generated method - Setter of theAgreement.id
attribute.void
setStartdate(SessionContext ctx, java.util.Date value)
Generated method - Setter of theAgreement.startdate
attribute.void
setStartdate(java.util.Date value)
Generated method - Setter of theAgreement.startdate
attribute.void
setSupplier(Company value)
Generated method - Setter of theAgreement.supplier
attribute.void
setSupplier(SessionContext ctx, Company value)
Generated method - Setter of theAgreement.supplier
attribute.void
setSupplierContact(SessionContext ctx, User value)
Generated method - Setter of theAgreement.supplierContact
attribute.void
setSupplierContact(User value)
Generated method - Setter of theAgreement.supplierContact
attribute.-
Methods inherited from class de.hybris.platform.jalo.GenericItem
getImplementation, getInitialProperties, getNonInitialAttributes, 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, 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, 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.id
attribute- See Also:
- Constant Field Values
-
STARTDATE
public static final java.lang.String STARTDATE
Qualifier of theAgreement.startdate
attribute- See Also:
- Constant Field Values
-
ENDDATE
public static final java.lang.String ENDDATE
Qualifier of theAgreement.enddate
attribute- See Also:
- Constant Field Values
-
CATALOG
public static final java.lang.String CATALOG
Qualifier of theAgreement.Catalog
attribute- See Also:
- Constant Field Values
-
BUYER
public static final java.lang.String BUYER
Qualifier of theAgreement.buyer
attribute- See Also:
- Constant Field Values
-
SUPPLIER
public static final java.lang.String SUPPLIER
Qualifier of theAgreement.supplier
attribute- See Also:
- Constant Field Values
-
BUYERCONTACT
public static final java.lang.String BUYERCONTACT
Qualifier of theAgreement.buyerContact
attribute- See Also:
- Constant Field Values
-
SUPPLIERCONTACT
public static final java.lang.String SUPPLIERCONTACT
Qualifier of theAgreement.supplierContact
attribute- See Also:
- Constant Field Values
-
CURRENCY
public static final java.lang.String CURRENCY
Qualifier of theAgreement.currency
attribute- See Also:
- Constant Field Values
-
CATALOGVERSION
public static final java.lang.String CATALOGVERSION
Qualifier of theAgreement.catalogVersion
attribute- See Also:
- Constant Field Values
-
CATALOGVERSIONHANDLER
protected static final BidirectionalOneToManyHandler<GeneratedAgreement> CATALOGVERSIONHANDLER
BidirectionalOneToManyHandler
for 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:
getDefaultAttributeModes
in classItem
-
getBuyer
public Company getBuyer(SessionContext ctx)
Generated method - Getter of theAgreement.buyer
attribute.- Returns:
- the buyer - buyer
-
getBuyer
public Company getBuyer()
Generated method - Getter of theAgreement.buyer
attribute.- Returns:
- the buyer - buyer
-
setBuyer
public void setBuyer(SessionContext ctx, Company value)
Generated method - Setter of theAgreement.buyer
attribute.- Parameters:
value
- the buyer - buyer
-
setBuyer
public void setBuyer(Company value)
Generated method - Setter of theAgreement.buyer
attribute.- Parameters:
value
- the buyer - buyer
-
getBuyerContact
public User getBuyerContact(SessionContext ctx)
Generated method - Getter of theAgreement.buyerContact
attribute.- Returns:
- the buyerContact - buyerContact
-
getBuyerContact
public User getBuyerContact()
Generated method - Getter of theAgreement.buyerContact
attribute.- Returns:
- the buyerContact - buyerContact
-
setBuyerContact
public void setBuyerContact(SessionContext ctx, User value)
Generated method - Setter of theAgreement.buyerContact
attribute.- Parameters:
value
- the buyerContact - buyerContact
-
setBuyerContact
public void setBuyerContact(User value)
Generated method - Setter of theAgreement.buyerContact
attribute.- Parameters:
value
- the buyerContact - buyerContact
-
getCatalogVersion
public CatalogVersion getCatalogVersion(SessionContext ctx)
Generated method - Getter of theAgreement.catalogVersion
attribute.- Returns:
- the catalogVersion
-
getCatalogVersion
public CatalogVersion getCatalogVersion()
Generated method - Getter of theAgreement.catalogVersion
attribute.- Returns:
- the catalogVersion
-
setCatalogVersion
public void setCatalogVersion(SessionContext ctx, CatalogVersion value)
Generated method - Setter of theAgreement.catalogVersion
attribute.- Parameters:
value
- the catalogVersion
-
setCatalogVersion
public void setCatalogVersion(CatalogVersion value)
Generated method - Setter of theAgreement.catalogVersion
attribute.- Parameters:
value
- the catalogVersion
-
createItem
protected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
Description copied from class:Item
Has 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:
createItem
in 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.currency
attribute.- Returns:
- the currency - currency
-
getCurrency
public Currency getCurrency()
Generated method - Getter of theAgreement.currency
attribute.- Returns:
- the currency - currency
-
setCurrency
public void setCurrency(SessionContext ctx, Currency value)
Generated method - Setter of theAgreement.currency
attribute.- Parameters:
value
- the currency - currency
-
setCurrency
public void setCurrency(Currency value)
Generated method - Setter of theAgreement.currency
attribute.- Parameters:
value
- the currency - currency
-
getEnddate
public java.util.Date getEnddate(SessionContext ctx)
Generated method - Getter of theAgreement.enddate
attribute.- Returns:
- the enddate - Agreement ID
-
getEnddate
public java.util.Date getEnddate()
Generated method - Getter of theAgreement.enddate
attribute.- Returns:
- the enddate - Agreement ID
-
setEnddate
public void setEnddate(SessionContext ctx, java.util.Date value)
Generated method - Setter of theAgreement.enddate
attribute.- Parameters:
value
- the enddate - Agreement ID
-
setEnddate
public void setEnddate(java.util.Date value)
Generated method - Setter of theAgreement.enddate
attribute.- Parameters:
value
- the enddate - Agreement ID
-
getId
public java.lang.String getId(SessionContext ctx)
Generated method - Getter of theAgreement.id
attribute.- Returns:
- the id - Agreement ID
-
getId
public java.lang.String getId()
Generated method - Getter of theAgreement.id
attribute.- Returns:
- the id - Agreement ID
-
setId
public void setId(SessionContext ctx, java.lang.String value)
Generated method - Setter of theAgreement.id
attribute.- Parameters:
value
- the id - Agreement ID
-
setId
public void setId(java.lang.String value)
Generated method - Setter of theAgreement.id
attribute.- Parameters:
value
- the id - Agreement ID
-
getStartdate
public java.util.Date getStartdate(SessionContext ctx)
Generated method - Getter of theAgreement.startdate
attribute.- Returns:
- the startdate - Start Date
-
getStartdate
public java.util.Date getStartdate()
Generated method - Getter of theAgreement.startdate
attribute.- Returns:
- the startdate - Start Date
-
setStartdate
public void setStartdate(SessionContext ctx, java.util.Date value)
Generated method - Setter of theAgreement.startdate
attribute.- Parameters:
value
- the startdate - Start Date
-
setStartdate
public void setStartdate(java.util.Date value)
Generated method - Setter of theAgreement.startdate
attribute.- Parameters:
value
- the startdate - Start Date
-
getSupplier
public Company getSupplier(SessionContext ctx)
Generated method - Getter of theAgreement.supplier
attribute.- Returns:
- the supplier - supplier
-
getSupplier
public Company getSupplier()
Generated method - Getter of theAgreement.supplier
attribute.- Returns:
- the supplier - supplier
-
setSupplier
public void setSupplier(SessionContext ctx, Company value)
Generated method - Setter of theAgreement.supplier
attribute.- Parameters:
value
- the supplier - supplier
-
setSupplier
public void setSupplier(Company value)
Generated method - Setter of theAgreement.supplier
attribute.- Parameters:
value
- the supplier - supplier
-
getSupplierContact
public User getSupplierContact(SessionContext ctx)
Generated method - Getter of theAgreement.supplierContact
attribute.- Returns:
- the supplierContact - supplierContact
-
getSupplierContact
public User getSupplierContact()
Generated method - Getter of theAgreement.supplierContact
attribute.- Returns:
- the supplierContact - supplierContact
-
setSupplierContact
public void setSupplierContact(SessionContext ctx, User value)
Generated method - Setter of theAgreement.supplierContact
attribute.- Parameters:
value
- the supplierContact - supplierContact
-
setSupplierContact
public void setSupplierContact(User value)
Generated method - Setter of theAgreement.supplierContact
attribute.- Parameters:
value
- the supplierContact - supplierContact
-
-