public interface EntityId
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(String propName) |
String |
entityName() |
Set<Map.Entry<String,Object>> |
entrySet() |
static EntityId |
from(Map<String,Object> nameValues) |
static EntityId |
from(Object entity) |
static EntityId |
from(Object entity,
Collection<String> idPropNames) |
static EntityId |
from(String entityName,
Map<String,Object> nameValues) |
<T> T |
get(String propName) |
<T> T |
get(String propName,
Class<T> targetType)
Node: To follow one of general design rules in Abacus, if there is a conversion behind when the source value is not assignable to the target type, put the targetType to last parameter of the method. |
int |
getInt(String propName) |
long |
getLong(String propName) |
boolean |
isEmpty() |
Set<String> |
keySet() |
static EntityId |
of(String propName,
Object propValue) |
static EntityId |
of(String propName1,
Object propValue1,
String propName2,
Object propValue2) |
static EntityId |
of(String propName1,
Object propValue1,
String propName2,
Object propValue2,
String propName3,
Object propValue3) |
static EntityId |
of(String entityName,
String propName,
Object propValue) |
static EntityId |
of(String entityName,
String propName1,
Object propValue1,
String propName2,
Object propValue2) |
static EntityId |
of(String entityName,
String propName1,
Object propValue1,
String propName2,
Object propValue2,
String propName3,
Object propValue3) |
int |
size() |
static EntityId of(String propName, Object propValue)
propName - property name with entity name, for example Account.idpropValue - static EntityId of(String entityName, String propName, Object propValue)
entityName - propName - propValue - static EntityId of(String propName1, Object propValue1, String propName2, Object propValue2)
propName1 - property name with entity name, for example Account.idpropValue1 - propName2 - propValue2 - static EntityId of(String entityName, String propName1, Object propValue1, String propName2, Object propValue2)
entityName - propName1 - propValue1 - propName2 - propValue2 - static EntityId of(String propName1, Object propValue1, String propName2, Object propValue2, String propName3, Object propValue3)
propName1 - property name with entity name, for example Account.idpropValue1 - propName2 - propValue2 - propName3 - propValue3 - static EntityId of(String entityName, String propName1, Object propValue1, String propName2, Object propValue2, String propName3, Object propValue3)
entityName - propName1 - propValue1 - propName2 - propValue2 - propName3 - propValue3 - static EntityId from(String entityName, Map<String,Object> nameValues)
entityName - nameValues - static EntityId from(Object entity, Collection<String> idPropNames)
entity - idPropNames - String entityName()
<T> T get(String propName)
T - propName - int getInt(String propName)
propName - long getLong(String propName)
propName - <T> T get(String propName, Class<T> targetType)
Abacus, if there is a conversion behind when the source value is not assignable to the target type, put the targetType to last parameter of the method.
Otherwise, put the targetTpye to the first parameter of the method.T - propName - targetType - boolean containsKey(String propName)
propName - int size()
boolean isEmpty()
Copyright © 2021. All rights reserved.