public abstract class AbstractItemModel extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static interface |
AbstractItemModel.NewModelContextFactory |
| Modifier and Type | Field and Description |
|---|---|
static String |
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER |
static String |
MODEL_CONTEXT_FACTORY |
| Modifier | Constructor and Description |
|---|---|
|
AbstractItemModel() |
protected |
AbstractItemModel(ItemModelContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Equals implementation based on pk.
|
ItemModelContext |
getItemModelContext() |
String |
getItemtype() |
protected ItemModelInternalContext |
getPersistenceContext() |
PK |
getPk() |
<T> T |
getProperty(String name) |
<T> T |
getProperty(String name,
Locale locale) |
String |
getTenantId() |
int |
hashCode()
Hash code based on PK.
|
Object |
readResolve() |
void |
setProperty(String name,
Locale locale,
Object value) |
void |
setProperty(String name,
Object value) |
protected static Boolean |
toObject(boolean value) |
protected static Byte |
toObject(byte value) |
protected static Character |
toObject(char value) |
protected static Double |
toObject(double value) |
protected static Float |
toObject(float value) |
protected static Integer |
toObject(int value) |
protected static Long |
toObject(long value) |
protected static Short |
toObject(short value) |
protected static boolean |
toPrimitive(Boolean value) |
protected static byte |
toPrimitive(Byte value) |
protected static char |
toPrimitive(Character value) |
protected static double |
toPrimitive(Double value) |
protected static float |
toPrimitive(Float value) |
protected static int |
toPrimitive(Integer value) |
protected static long |
toPrimitive(Long value) |
protected static short |
toPrimitive(Short value) |
String |
toString() |
Object |
writeReplace() |
public static final String MODEL_CONTEXT_FACTORY
public static final String LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER
public AbstractItemModel()
protected AbstractItemModel(ItemModelContext ctx)
public ItemModelContext getItemModelContext()
protected ItemModelInternalContext getPersistenceContext()
public String getTenantId()
public PK getPk()
public String getItemtype()
public <T> T getProperty(String name)
public boolean equals(Object obj)
null the super equals is used.public int hashCode()
null the object hash code is used.public Object writeReplace() throws ObjectStreamException
ObjectStreamExceptionpublic Object readResolve() throws ObjectStreamException
ObjectStreamExceptionprotected static boolean toPrimitive(Boolean value)
protected static int toPrimitive(Integer value)
protected static double toPrimitive(Double value)
protected static float toPrimitive(Float value)
protected static byte toPrimitive(Byte value)
protected static long toPrimitive(Long value)
protected static short toPrimitive(Short value)
protected static char toPrimitive(Character value)
protected static Boolean toObject(boolean value)
protected static Integer toObject(int value)
protected static Double toObject(double value)
protected static Float toObject(float value)
protected static Byte toObject(byte value)
protected static Long toObject(long value)
protected static Short toObject(short value)
protected static Character toObject(char value)
Copyright © 2017 SAP SE. All Rights Reserved.