public abstract class GeneratedB2BDocument extends GenericItem
B2BDocument.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 |
AMOUNT
Qualifier of the
B2BDocument.amount attribute |
static String |
CURRENCY
Qualifier of the
B2BDocument.currency attribute |
static String |
DATE
Qualifier of the
B2BDocument.date attribute |
protected static Map<String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static String |
DOCUMENTMEDIA
Qualifier of the
B2BDocument.documentMedia attribute |
static String |
DOCUMENTNUMBER
Qualifier of the
B2BDocument.documentNumber attribute |
static String |
DOCUMENTPAYMENTINFO
Qualifier of the
B2BDocument.documentPaymentInfo attribute |
protected static OneToManyHandler<B2BDocumentPaymentInfo> |
DOCUMENTPAYMENTINFOHANDLER
OneToManyHandler for handling 1:n DOCUMENTPAYMENTINFO's relation attributes from 'many' side. |
static String |
DOCUMENTTYPE
Qualifier of the
B2BDocument.documentType attribute |
protected static BidirectionalOneToManyHandler<GeneratedB2BDocument> |
DOCUMENTTYPEHANDLER
BidirectionalOneToManyHandler for handling 1:n DOCUMENTTYPE's relation attributes from 'one' side. |
static String |
DUEDATE
Qualifier of the
B2BDocument.dueDate attribute |
static String |
OPENAMOUNT
Qualifier of the
B2BDocument.openAmount attribute |
static String |
ORDER
Qualifier of the
B2BDocument.order attribute |
protected static BidirectionalOneToManyHandler<GeneratedB2BDocument> |
ORDERHANDLER
BidirectionalOneToManyHandler for handling 1:n ORDER's relation attributes from 'one' side. |
static String |
STATUS
Qualifier of the
B2BDocument.status attribute |
static String |
UNIT
Qualifier of the
B2BDocument.unit attribute |
protected static BidirectionalOneToManyHandler<GeneratedB2BDocument> |
UNITHANDLER
BidirectionalOneToManyHandler for handling 1:n UNIT'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 |
|---|
GeneratedB2BDocument() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToDocumentPaymentInfo(B2BDocumentPaymentInfo value)
Generated method - Adds
value to documentPaymentInfo. |
void |
addToDocumentPaymentInfo(SessionContext ctx,
B2BDocumentPaymentInfo value)
Generated method - Adds
value to documentPaymentInfo. |
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
Has to be implemented for each concrete subtype of item.
|
BigDecimal |
getAmount()
Generated method - Getter of the
B2BDocument.amount attribute. |
BigDecimal |
getAmount(SessionContext ctx)
Generated method - Getter of the
B2BDocument.amount attribute. |
Currency |
getCurrency()
Generated method - Getter of the
B2BDocument.currency attribute. |
Currency |
getCurrency(SessionContext ctx)
Generated method - Getter of the
B2BDocument.currency attribute. |
Date |
getDate()
Generated method - Getter of the
B2BDocument.date attribute. |
Date |
getDate(SessionContext ctx)
Generated method - Getter of the
B2BDocument.date attribute. |
protected Map<String,Item.AttributeMode> |
getDefaultAttributeModes() |
DocumentMedia |
getDocumentMedia()
Generated method - Getter of the
B2BDocument.documentMedia attribute. |
DocumentMedia |
getDocumentMedia(SessionContext ctx)
Generated method - Getter of the
B2BDocument.documentMedia attribute. |
String |
getDocumentNumber()
Generated method - Getter of the
B2BDocument.documentNumber attribute. |
String |
getDocumentNumber(SessionContext ctx)
Generated method - Getter of the
B2BDocument.documentNumber attribute. |
Collection<B2BDocumentPaymentInfo> |
getDocumentPaymentInfo()
Generated method - Getter of the
B2BDocument.documentPaymentInfo attribute. |
Collection<B2BDocumentPaymentInfo> |
getDocumentPaymentInfo(SessionContext ctx)
Generated method - Getter of the
B2BDocument.documentPaymentInfo attribute. |
B2BDocumentType |
getDocumentType()
Generated method - Getter of the
B2BDocument.documentType attribute. |
B2BDocumentType |
getDocumentType(SessionContext ctx)
Generated method - Getter of the
B2BDocument.documentType attribute. |
Date |
getDueDate()
Generated method - Getter of the
B2BDocument.dueDate attribute. |
Date |
getDueDate(SessionContext ctx)
Generated method - Getter of the
B2BDocument.dueDate attribute. |
BigDecimal |
getOpenAmount()
Generated method - Getter of the
B2BDocument.openAmount attribute. |
BigDecimal |
getOpenAmount(SessionContext ctx)
Generated method - Getter of the
B2BDocument.openAmount attribute. |
AbstractOrder |
getOrder()
Generated method - Getter of the
B2BDocument.order attribute. |
AbstractOrder |
getOrder(SessionContext ctx)
Generated method - Getter of the
B2BDocument.order attribute. |
EnumerationValue |
getStatus()
Generated method - Getter of the
B2BDocument.status attribute. |
EnumerationValue |
getStatus(SessionContext ctx)
Generated method - Getter of the
B2BDocument.status attribute. |
B2BUnit |
getUnit()
Generated method - Getter of the
B2BDocument.unit attribute. |
B2BUnit |
getUnit(SessionContext ctx)
Generated method - Getter of the
B2BDocument.unit attribute. |
void |
removeFromDocumentPaymentInfo(B2BDocumentPaymentInfo value)
Generated method - Removes
value from documentPaymentInfo. |
void |
removeFromDocumentPaymentInfo(SessionContext ctx,
B2BDocumentPaymentInfo value)
Generated method - Removes
value from documentPaymentInfo. |
void |
setAmount(BigDecimal value)
Generated method - Setter of the
B2BDocument.amount attribute. |
void |
setAmount(SessionContext ctx,
BigDecimal value)
Generated method - Setter of the
B2BDocument.amount attribute. |
void |
setCurrency(Currency value)
Generated method - Setter of the
B2BDocument.currency attribute. |
void |
setCurrency(SessionContext ctx,
Currency value)
Generated method - Setter of the
B2BDocument.currency attribute. |
void |
setDate(Date value)
Generated method - Setter of the
B2BDocument.date attribute. |
void |
setDate(SessionContext ctx,
Date value)
Generated method - Setter of the
B2BDocument.date attribute. |
void |
setDocumentMedia(DocumentMedia value)
Generated method - Setter of the
B2BDocument.documentMedia attribute. |
void |
setDocumentMedia(SessionContext ctx,
DocumentMedia value)
Generated method - Setter of the
B2BDocument.documentMedia attribute. |
void |
setDocumentNumber(SessionContext ctx,
String value)
Generated method - Setter of the
B2BDocument.documentNumber attribute. |
void |
setDocumentNumber(String value)
Generated method - Setter of the
B2BDocument.documentNumber attribute. |
void |
setDocumentPaymentInfo(Collection<B2BDocumentPaymentInfo> value)
Generated method - Setter of the
B2BDocument.documentPaymentInfo attribute. |
void |
setDocumentPaymentInfo(SessionContext ctx,
Collection<B2BDocumentPaymentInfo> value)
Generated method - Setter of the
B2BDocument.documentPaymentInfo attribute. |
void |
setDocumentType(B2BDocumentType value)
Generated method - Setter of the
B2BDocument.documentType attribute. |
void |
setDocumentType(SessionContext ctx,
B2BDocumentType value)
Generated method - Setter of the
B2BDocument.documentType attribute. |
void |
setDueDate(Date value)
Generated method - Setter of the
B2BDocument.dueDate attribute. |
void |
setDueDate(SessionContext ctx,
Date value)
Generated method - Setter of the
B2BDocument.dueDate attribute. |
void |
setOpenAmount(BigDecimal value)
Generated method - Setter of the
B2BDocument.openAmount attribute. |
void |
setOpenAmount(SessionContext ctx,
BigDecimal value)
Generated method - Setter of the
B2BDocument.openAmount attribute. |
void |
setOrder(AbstractOrder value)
Generated method - Setter of the
B2BDocument.order attribute. |
void |
setOrder(SessionContext ctx,
AbstractOrder value)
Generated method - Setter of the
B2BDocument.order attribute. |
void |
setStatus(EnumerationValue value)
Generated method - Setter of the
B2BDocument.status attribute. |
void |
setStatus(SessionContext ctx,
EnumerationValue value)
Generated method - Setter of the
B2BDocument.status attribute. |
void |
setUnit(B2BUnit value)
Generated method - Setter of the
B2BDocument.unit attribute. |
void |
setUnit(SessionContext ctx,
B2BUnit value)
Generated method - Setter of the
B2BDocument.unit 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 DOCUMENTNUMBER
B2BDocument.documentNumber attributepublic static final String STATUS
B2BDocument.status attributepublic static final String DATE
B2BDocument.date attributepublic static final String DUEDATE
B2BDocument.dueDate attributepublic static final String AMOUNT
B2BDocument.amount attributepublic static final String OPENAMOUNT
B2BDocument.openAmount attributepublic static final String CURRENCY
B2BDocument.currency attributepublic static final String DOCUMENTMEDIA
B2BDocument.documentMedia attributepublic static final String DOCUMENTTYPE
B2BDocument.documentType attributepublic static final String UNIT
B2BDocument.unit attributepublic static final String ORDER
B2BDocument.order attributepublic static final String DOCUMENTPAYMENTINFO
B2BDocument.documentPaymentInfo attributeprotected static final BidirectionalOneToManyHandler<GeneratedB2BDocument> DOCUMENTTYPEHANDLER
BidirectionalOneToManyHandler for handling 1:n DOCUMENTTYPE's relation attributes from 'one' side.protected static final BidirectionalOneToManyHandler<GeneratedB2BDocument> UNITHANDLER
BidirectionalOneToManyHandler for handling 1:n UNIT's relation attributes from 'one' side.protected static final BidirectionalOneToManyHandler<GeneratedB2BDocument> ORDERHANDLER
BidirectionalOneToManyHandler for handling 1:n ORDER's relation attributes from 'one' side.protected static final OneToManyHandler<B2BDocumentPaymentInfo> DOCUMENTPAYMENTINFOHANDLER
OneToManyHandler for handling 1:n DOCUMENTPAYMENTINFO's relation attributes from 'many' side.protected static final Map<String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
getDefaultAttributeModes in class Itempublic BigDecimal getAmount(SessionContext ctx)
B2BDocument.amount attribute.public BigDecimal getAmount()
B2BDocument.amount attribute.public void setAmount(SessionContext ctx, BigDecimal value)
B2BDocument.amount attribute.value - the amount - amountpublic void setAmount(BigDecimal value)
B2BDocument.amount attribute.value - the amount - amountprotected 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 Currency getCurrency(SessionContext ctx)
B2BDocument.currency attribute.public Currency getCurrency()
B2BDocument.currency attribute.public void setCurrency(SessionContext ctx, Currency value)
B2BDocument.currency attribute.value - the currencypublic void setCurrency(Currency value)
B2BDocument.currency attribute.value - the currencypublic Date getDate(SessionContext ctx)
B2BDocument.date attribute.public Date getDate()
B2BDocument.date attribute.public void setDate(SessionContext ctx, Date value)
B2BDocument.date attribute.value - the date - datepublic void setDate(Date value)
B2BDocument.date attribute.value - the date - datepublic DocumentMedia getDocumentMedia(SessionContext ctx)
B2BDocument.documentMedia attribute.public DocumentMedia getDocumentMedia()
B2BDocument.documentMedia attribute.public void setDocumentMedia(SessionContext ctx, DocumentMedia value)
B2BDocument.documentMedia attribute.value - the documentMediapublic void setDocumentMedia(DocumentMedia value)
B2BDocument.documentMedia attribute.value - the documentMediapublic String getDocumentNumber(SessionContext ctx)
B2BDocument.documentNumber attribute.public String getDocumentNumber()
B2BDocument.documentNumber attribute.public void setDocumentNumber(SessionContext ctx, String value)
B2BDocument.documentNumber attribute.value - the documentNumberpublic void setDocumentNumber(String value)
B2BDocument.documentNumber attribute.value - the documentNumberpublic Collection<B2BDocumentPaymentInfo> getDocumentPaymentInfo(SessionContext ctx)
B2BDocument.documentPaymentInfo attribute.public Collection<B2BDocumentPaymentInfo> getDocumentPaymentInfo()
B2BDocument.documentPaymentInfo attribute.public void setDocumentPaymentInfo(SessionContext ctx, Collection<B2BDocumentPaymentInfo> value)
B2BDocument.documentPaymentInfo attribute.value - the documentPaymentInfopublic void setDocumentPaymentInfo(Collection<B2BDocumentPaymentInfo> value)
B2BDocument.documentPaymentInfo attribute.value - the documentPaymentInfopublic void addToDocumentPaymentInfo(SessionContext ctx, B2BDocumentPaymentInfo value)
value to documentPaymentInfo.value - the item to add to documentPaymentInfopublic void addToDocumentPaymentInfo(B2BDocumentPaymentInfo value)
value to documentPaymentInfo.value - the item to add to documentPaymentInfopublic void removeFromDocumentPaymentInfo(SessionContext ctx, B2BDocumentPaymentInfo value)
value from documentPaymentInfo.value - the item to remove from documentPaymentInfopublic void removeFromDocumentPaymentInfo(B2BDocumentPaymentInfo value)
value from documentPaymentInfo.value - the item to remove from documentPaymentInfopublic B2BDocumentType getDocumentType(SessionContext ctx)
B2BDocument.documentType attribute.public B2BDocumentType getDocumentType()
B2BDocument.documentType attribute.public void setDocumentType(SessionContext ctx, B2BDocumentType value)
B2BDocument.documentType attribute.value - the documentTypepublic void setDocumentType(B2BDocumentType value)
B2BDocument.documentType attribute.value - the documentTypepublic Date getDueDate(SessionContext ctx)
B2BDocument.dueDate attribute.public Date getDueDate()
B2BDocument.dueDate attribute.public void setDueDate(SessionContext ctx, Date value)
B2BDocument.dueDate attribute.value - the dueDate - dueDatepublic void setDueDate(Date value)
B2BDocument.dueDate attribute.value - the dueDate - dueDatepublic BigDecimal getOpenAmount(SessionContext ctx)
B2BDocument.openAmount attribute.public BigDecimal getOpenAmount()
B2BDocument.openAmount attribute.public void setOpenAmount(SessionContext ctx, BigDecimal value)
B2BDocument.openAmount attribute.value - the openAmount - openAmountpublic void setOpenAmount(BigDecimal value)
B2BDocument.openAmount attribute.value - the openAmount - openAmountpublic AbstractOrder getOrder(SessionContext ctx)
B2BDocument.order attribute.public AbstractOrder getOrder()
B2BDocument.order attribute.public void setOrder(SessionContext ctx, AbstractOrder value)
B2BDocument.order attribute.value - the orderpublic void setOrder(AbstractOrder value)
B2BDocument.order attribute.value - the orderpublic EnumerationValue getStatus(SessionContext ctx)
B2BDocument.status attribute.public EnumerationValue getStatus()
B2BDocument.status attribute.public void setStatus(SessionContext ctx, EnumerationValue value)
B2BDocument.status attribute.value - the statuspublic void setStatus(EnumerationValue value)
B2BDocument.status attribute.value - the statuspublic B2BUnit getUnit(SessionContext ctx)
B2BDocument.unit attribute.public B2BUnit getUnit()
B2BDocument.unit attribute.public void setUnit(SessionContext ctx, B2BUnit value)
B2BDocument.unit attribute.value - the unitpublic void setUnit(B2BUnit value)
B2BDocument.unit attribute.value - the unitCopyright © 2017 SAP SE. All Rights Reserved.