public class AtomicType extends Type
Atomic types support inheritance and may be abstract.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AtomicType.AtomicTypeImpl
The persistence layer implementation interface.
|
Type.TypeImplTypeManagerManaged.TypeManagerManagedImplLocalizableItem.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 |
JAVA_CLASS
The java class attribute string constant.
|
static String |
NULL_TOKEN |
static String |
SUBTYPES
The subtypes attribute string constant.
|
static String |
SUPER_TYPE
The supertype attribute string constant.
|
CODE, DEFAULTVALUE, DESCRIPTION, XMLDEFINITIONAUTOCREATE, DEPRECATED, EXTENSION_NAME, GENERATE, NAMELANGUAGE_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 |
|---|
AtomicType() |
| Modifier and Type | Method and Description |
|---|---|
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
The generic creation implementation.
|
static String |
escape(String raw,
char escapedChar)
Escapes all & by placing a \ in front.
|
String |
exportXMLDefinition(XMLOutputter xout) |
protected AtomicType.AtomicTypeImpl |
getAtomicTypeImpl()
Internal access to the persistence layer implementation.
|
static int[] |
getEscapedStringPositions(String escaped,
char escapedChar,
int startFrom) |
Class |
getJavaClass()
Returns the java-class of this type.
|
protected Item.ItemAttributeMap |
getNonInitialAttributes(SessionContext ctx,
Item.ItemAttributeMap allAttributes)
Removes
Type.CODE, SUPER_TYPE and JAVA_CLASS from the attribute value map since these
values are only needed for createItem(SessionContext, ComposedType, Item.ItemAttributeMap). |
Set |
getSubTypes()
Returns all subtypes for this type.
|
AtomicType |
getSuperType()
Returns the super type of this type.
|
String |
getXMLDefinition()
Provides the XML definiton to put inside a
items.xml |
boolean |
isAssignableFrom(Type type)
Test assignability between atomic types.
|
boolean |
isInstance(Object o)
Test whether a object is instance of this atomic type.
|
Object |
parseValue(SessionContext ctx,
String value)
Parses a atomic value which matches the following pattern: '&' + escaped string value + '&'.
|
String |
toString(SessionContext ctx,
Object value)
Writes a atomic value as '&' + escaped string value + '&'.
|
static String |
unescape(String escaped,
char escapeChar) |
compareTo, getAllDescriptions, getAllDescriptions, getCode, getDefaultValue, getDefaultValue, getDescription, getDescription, getTypeImpl, setAllDescriptions, setAllDescriptions, setDefaultValue, setDefaultValue, setDescription, setDescription, toStringgetAllNames, getAllNames, getExtensionName, getImpl, getName, getName, isAutocreate, isDeprecated, isGenerate, setAllNames, setAllNames, setAutocreate, setExtensionName, setGenerate, setName, setNamegetAllLocalizedProperties, 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, ctx, doAfterRemove, doBeforeRemove, equals, getAccessorFor, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributesInternal, getAllLinkedItems, getAndCheckCacheBoundItem, getAttribute, getAttribute, getCacheBoundItem, getComposedType, getComposedTypePK, getCreationTime, getCurrentlyRemovingCount, getDefaultAttributeModes, 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, useTA, writeReplacegetImplementation, setTenantpublic static final String NULL_TOKEN
public static final String SUPER_TYPE
public static final String SUBTYPES
public static final String JAVA_CLASS
protected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
The following required attribute combinations are legal:
JAVA_CLASS and optionally SUPER_TYPE orSUPER_TYPE and Type.CODEcreateItem in class Itemctx - 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 rollbackedprotected Item.ItemAttributeMap getNonInitialAttributes(SessionContext ctx, Item.ItemAttributeMap allAttributes)
Type.CODE, SUPER_TYPE and JAVA_CLASS from the attribute value map since these
values are only needed for createItem(SessionContext, ComposedType, Item.ItemAttributeMap).getNonInitialAttributes in class Itemctx - session context with language = NULLallAttributes - a ItemAttributeMap contaning attribute values.ItemAttributeMap containing all attribute values, which belong to non-initial attributes.public static String escape(String raw, char escapedChar)
public static int[] getEscapedStringPositions(String escaped, char escapedChar, int startFrom)
public String toString(SessionContext ctx, Object value) throws JaloInvalidParameterException
Currently supported value types:
toString in class TypeJaloInvalidParameterExceptionpublic Object parseValue(SessionContext ctx, String value) throws JaloInvalidParameterException
parseValue in class TypeJaloInvalidParameterExceptionescape(String, char)public AtomicType getSuperType()
public Set getSubTypes()
public Class getJavaClass()
public String getXMLDefinition()
items.xml getXMLDefinition in class Typepublic String exportXMLDefinition(XMLOutputter xout)
exportXMLDefinition in class TypeManagerManagedprotected AtomicType.AtomicTypeImpl getAtomicTypeImpl()
public boolean isAssignableFrom(Type type)
isAssignableFrom in class Typetype - the type to be checked.public boolean isInstance(Object o)
isInstance in class Typeo - the object to be checked.Copyright © 2017 SAP SE. All Rights Reserved.