public class EntityHelper extends Object
| Constructor and Description |
|---|
EntityHelper()
create new instance.
|
| Modifier and Type | Method and Description |
|---|---|
static EntityBase |
createEntityFromRow(EntityMetaInfo aMeta,
Row aRow) |
static EntityBase |
createNewEntityInstance(EntityMetaInfo aMeta) |
static Row |
createRowFromEntity(EntityMetaInfo aMeta,
EntityBase aEntity) |
static AttributeMetaInfo |
getAttributeForColumn(EntityMetaInfo aMeta,
String sColumn) |
static Object |
getAttributeValueFromEntity(Object aEntity,
AttributeMetaInfo aMeta) |
static AttributeMetaInfo[] |
getEntityAttributesStableOrdered(EntityMetaInfo aMeta) |
static String[] |
mapAttribute2ColumnNames(EntityMetaInfo aMeta,
String[] lAttributeNames) |
static void |
setAttributeValueOnEntity(Object aEntity,
AttributeMetaInfo aMeta,
Object aValue) |
public static String[] mapAttribute2ColumnNames(EntityMetaInfo aMeta, String[] lAttributeNames) throws Exception
Exceptionpublic static EntityBase createNewEntityInstance(EntityMetaInfo aMeta) throws Exception
Exceptionpublic static AttributeMetaInfo[] getEntityAttributesStableOrdered(EntityMetaInfo aMeta) throws Exception
Exceptionpublic static AttributeMetaInfo getAttributeForColumn(EntityMetaInfo aMeta, String sColumn) throws Exception
Exceptionpublic static void setAttributeValueOnEntity(Object aEntity, AttributeMetaInfo aMeta, Object aValue) throws Exception
Exceptionpublic static Object getAttributeValueFromEntity(Object aEntity, AttributeMetaInfo aMeta) throws Exception
Exceptionpublic static EntityBase createEntityFromRow(EntityMetaInfo aMeta, Row aRow) throws Exception
Exceptionpublic static Row createRowFromEntity(EntityMetaInfo aMeta, EntityBase aEntity) throws Exception
ExceptionCopyright © 2016 as-development.net. All rights reserved.