public abstract class GeneratedGridElement extends GenericItem
GridElement.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 |
|---|---|
protected static Map<String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static String |
DEFAULTLAYOUTTEMPLATE
Qualifier of the
GridElement.defaultLayoutTemplate attribute |
static String |
GRID
Qualifier of the
GridElement.grid attribute |
protected static BidirectionalOneToManyHandler<GeneratedGridElement> |
GRIDHANDLER
BidirectionalOneToManyHandler for handling 1:n GRID's relation attributes from 'one' side. |
static String |
ID
Qualifier of the
GridElement.id attribute |
static String |
NAME
Qualifier of the
GridElement.name attribute |
static String |
XPOS
Qualifier of the
GridElement.xpos attribute |
static String |
XSIZE
Qualifier of the
GridElement.xsize attribute |
static String |
YPOS
Qualifier of the
GridElement.ypos attribute |
static String |
YSIZE
Qualifier of the
GridElement.ysize attribute |
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 |
|---|
GeneratedGridElement() |
| 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.
|
protected Map<String,Item.AttributeMode> |
getDefaultAttributeModes() |
LayoutTemplate |
getDefaultLayoutTemplate()
Generated method - Getter of the
GridElement.defaultLayoutTemplate attribute. |
LayoutTemplate |
getDefaultLayoutTemplate(SessionContext ctx)
Generated method - Getter of the
GridElement.defaultLayoutTemplate attribute. |
Grid |
getGrid()
Generated method - Getter of the
GridElement.grid attribute. |
Grid |
getGrid(SessionContext ctx)
Generated method - Getter of the
GridElement.grid attribute. |
Integer |
getId()
Generated method - Getter of the
GridElement.id attribute. |
Integer |
getId(SessionContext ctx)
Generated method - Getter of the
GridElement.id attribute. |
int |
getIdAsPrimitive()
Generated method - Getter of the
GridElement.id attribute. |
int |
getIdAsPrimitive(SessionContext ctx)
Generated method - Getter of the
GridElement.id attribute. |
String |
getName()
Generated method - Getter of the
GridElement.name attribute. |
String |
getName(SessionContext ctx)
Generated method - Getter of the
GridElement.name attribute. |
Double |
getXpos()
Generated method - Getter of the
GridElement.xpos attribute. |
Double |
getXpos(SessionContext ctx)
Generated method - Getter of the
GridElement.xpos attribute. |
double |
getXposAsPrimitive()
Generated method - Getter of the
GridElement.xpos attribute. |
double |
getXposAsPrimitive(SessionContext ctx)
Generated method - Getter of the
GridElement.xpos attribute. |
Double |
getXsize()
Generated method - Getter of the
GridElement.xsize attribute. |
Double |
getXsize(SessionContext ctx)
Generated method - Getter of the
GridElement.xsize attribute. |
double |
getXsizeAsPrimitive()
Generated method - Getter of the
GridElement.xsize attribute. |
double |
getXsizeAsPrimitive(SessionContext ctx)
Generated method - Getter of the
GridElement.xsize attribute. |
Double |
getYpos()
Generated method - Getter of the
GridElement.ypos attribute. |
Double |
getYpos(SessionContext ctx)
Generated method - Getter of the
GridElement.ypos attribute. |
double |
getYposAsPrimitive()
Generated method - Getter of the
GridElement.ypos attribute. |
double |
getYposAsPrimitive(SessionContext ctx)
Generated method - Getter of the
GridElement.ypos attribute. |
Double |
getYsize()
Generated method - Getter of the
GridElement.ysize attribute. |
Double |
getYsize(SessionContext ctx)
Generated method - Getter of the
GridElement.ysize attribute. |
double |
getYsizeAsPrimitive()
Generated method - Getter of the
GridElement.ysize attribute. |
double |
getYsizeAsPrimitive(SessionContext ctx)
Generated method - Getter of the
GridElement.ysize attribute. |
void |
setDefaultLayoutTemplate(LayoutTemplate value)
Generated method - Setter of the
GridElement.defaultLayoutTemplate attribute. |
void |
setDefaultLayoutTemplate(SessionContext ctx,
LayoutTemplate value)
Generated method - Setter of the
GridElement.defaultLayoutTemplate attribute. |
void |
setGrid(Grid value)
Generated method - Setter of the
GridElement.grid attribute. |
void |
setGrid(SessionContext ctx,
Grid value)
Generated method - Setter of the
GridElement.grid attribute. |
void |
setId(int value)
Generated method - Setter of the
GridElement.id attribute. |
void |
setId(Integer value)
Generated method - Setter of the
GridElement.id attribute. |
void |
setId(SessionContext ctx,
int value)
Generated method - Setter of the
GridElement.id attribute. |
void |
setId(SessionContext ctx,
Integer value)
Generated method - Setter of the
GridElement.id attribute. |
void |
setName(SessionContext ctx,
String value)
Generated method - Setter of the
GridElement.name attribute. |
void |
setName(String value)
Generated method - Setter of the
GridElement.name attribute. |
void |
setXpos(double value)
Generated method - Setter of the
GridElement.xpos attribute. |
void |
setXpos(Double value)
Generated method - Setter of the
GridElement.xpos attribute. |
void |
setXpos(SessionContext ctx,
double value)
Generated method - Setter of the
GridElement.xpos attribute. |
void |
setXpos(SessionContext ctx,
Double value)
Generated method - Setter of the
GridElement.xpos attribute. |
void |
setXsize(double value)
Generated method - Setter of the
GridElement.xsize attribute. |
void |
setXsize(Double value)
Generated method - Setter of the
GridElement.xsize attribute. |
void |
setXsize(SessionContext ctx,
double value)
Generated method - Setter of the
GridElement.xsize attribute. |
void |
setXsize(SessionContext ctx,
Double value)
Generated method - Setter of the
GridElement.xsize attribute. |
void |
setYpos(double value)
Generated method - Setter of the
GridElement.ypos attribute. |
void |
setYpos(Double value)
Generated method - Setter of the
GridElement.ypos attribute. |
void |
setYpos(SessionContext ctx,
double value)
Generated method - Setter of the
GridElement.ypos attribute. |
void |
setYpos(SessionContext ctx,
Double value)
Generated method - Setter of the
GridElement.ypos attribute. |
void |
setYsize(double value)
Generated method - Setter of the
GridElement.ysize attribute. |
void |
setYsize(Double value)
Generated method - Setter of the
GridElement.ysize attribute. |
void |
setYsize(SessionContext ctx,
double value)
Generated method - Setter of the
GridElement.ysize attribute. |
void |
setYsize(SessionContext ctx,
Double value)
Generated method - Setter of the
GridElement.ysize 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 ID
GridElement.id attributepublic static final String NAME
GridElement.name attributepublic static final String XPOS
GridElement.xpos attributepublic static final String YPOS
GridElement.ypos attributepublic static final String XSIZE
GridElement.xsize attributepublic static final String YSIZE
GridElement.ysize attributepublic static final String DEFAULTLAYOUTTEMPLATE
GridElement.defaultLayoutTemplate attributepublic static final String GRID
GridElement.grid attributeprotected static final BidirectionalOneToManyHandler<GeneratedGridElement> GRIDHANDLER
BidirectionalOneToManyHandler for handling 1:n GRID'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 Itemprotected 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 LayoutTemplate getDefaultLayoutTemplate(SessionContext ctx)
GridElement.defaultLayoutTemplate attribute.public LayoutTemplate getDefaultLayoutTemplate()
GridElement.defaultLayoutTemplate attribute.public void setDefaultLayoutTemplate(SessionContext ctx, LayoutTemplate value)
GridElement.defaultLayoutTemplate attribute.value - the defaultLayoutTemplatepublic void setDefaultLayoutTemplate(LayoutTemplate value)
GridElement.defaultLayoutTemplate attribute.value - the defaultLayoutTemplatepublic Grid getGrid(SessionContext ctx)
GridElement.grid attribute.public Grid getGrid()
GridElement.grid attribute.public void setGrid(SessionContext ctx, Grid value)
GridElement.grid attribute.value - the gridpublic void setGrid(Grid value)
GridElement.grid attribute.value - the gridpublic Integer getId(SessionContext ctx)
GridElement.id attribute.public Integer getId()
GridElement.id attribute.public int getIdAsPrimitive(SessionContext ctx)
GridElement.id attribute.public int getIdAsPrimitive()
GridElement.id attribute.public void setId(SessionContext ctx, Integer value)
GridElement.id attribute.value - the idpublic void setId(Integer value)
GridElement.id attribute.value - the idpublic void setId(SessionContext ctx, int value)
GridElement.id attribute.value - the idpublic void setId(int value)
GridElement.id attribute.value - the idpublic String getName(SessionContext ctx)
GridElement.name attribute.public String getName()
GridElement.name attribute.public void setName(SessionContext ctx, String value)
GridElement.name attribute.value - the namepublic void setName(String value)
GridElement.name attribute.value - the namepublic Double getXpos(SessionContext ctx)
GridElement.xpos attribute.public Double getXpos()
GridElement.xpos attribute.public double getXposAsPrimitive(SessionContext ctx)
GridElement.xpos attribute.public double getXposAsPrimitive()
GridElement.xpos attribute.public void setXpos(SessionContext ctx, Double value)
GridElement.xpos attribute.value - the xpospublic void setXpos(Double value)
GridElement.xpos attribute.value - the xpospublic void setXpos(SessionContext ctx, double value)
GridElement.xpos attribute.value - the xpospublic void setXpos(double value)
GridElement.xpos attribute.value - the xpospublic Double getXsize(SessionContext ctx)
GridElement.xsize attribute.public Double getXsize()
GridElement.xsize attribute.public double getXsizeAsPrimitive(SessionContext ctx)
GridElement.xsize attribute.public double getXsizeAsPrimitive()
GridElement.xsize attribute.public void setXsize(SessionContext ctx, Double value)
GridElement.xsize attribute.value - the xsizepublic void setXsize(Double value)
GridElement.xsize attribute.value - the xsizepublic void setXsize(SessionContext ctx, double value)
GridElement.xsize attribute.value - the xsizepublic void setXsize(double value)
GridElement.xsize attribute.value - the xsizepublic Double getYpos(SessionContext ctx)
GridElement.ypos attribute.public Double getYpos()
GridElement.ypos attribute.public double getYposAsPrimitive(SessionContext ctx)
GridElement.ypos attribute.public double getYposAsPrimitive()
GridElement.ypos attribute.public void setYpos(SessionContext ctx, Double value)
GridElement.ypos attribute.value - the ypospublic void setYpos(Double value)
GridElement.ypos attribute.value - the ypospublic void setYpos(SessionContext ctx, double value)
GridElement.ypos attribute.value - the ypospublic void setYpos(double value)
GridElement.ypos attribute.value - the ypospublic Double getYsize(SessionContext ctx)
GridElement.ysize attribute.public Double getYsize()
GridElement.ysize attribute.public double getYsizeAsPrimitive(SessionContext ctx)
GridElement.ysize attribute.public double getYsizeAsPrimitive()
GridElement.ysize attribute.public void setYsize(SessionContext ctx, Double value)
GridElement.ysize attribute.value - the ysizepublic void setYsize(Double value)
GridElement.ysize attribute.value - the ysizepublic void setYsize(SessionContext ctx, double value)
GridElement.ysize attribute.value - the ysizepublic void setYsize(double value)
GridElement.ysize attribute.value - the ysizeCopyright © 2017 SAP SE. All Rights Reserved.