You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@empire-db.apache.org by "Rainer Döbele (JIRA)" <em...@incubator.apache.org> on 2018/10/04 15:42:00 UTC
[jira] [Resolved] (EMPIREDB-278) Provide new accessors for Enum
values on records
[ https://issues.apache.org/jira/browse/EMPIREDB-278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rainer Döbele resolved EMPIREDB-278.
------------------------------------
Resolution: Fixed
Fix Version/s: empire-db-2.4.7
added getEnum() to DBRecordData
> Provide new accessors for Enum values on records
> ------------------------------------------------
>
> Key: EMPIREDB-278
> URL: https://issues.apache.org/jira/browse/EMPIREDB-278
> Project: Empire-DB
> Issue Type: Improvement
> Components: Core
> Reporter: Rainer Döbele
> Assignee: Rainer Döbele
> Priority: Major
> Fix For: empire-db-2.4.7
>
>
> empire-db provides different accessors for record data such as getString(), getInt(), getDecimal() etc. but none so far for enums. A new accessor for enum types should also check if the attribute "enumType" has been set for the column and return the corresponding enum constant for a particular record value. For numeric columns the value should be interpreted as the ordinal of the enumeration item and for non numeric columns it should be {color:#333333}interpreted as the n{color}ame of the {color:#333333}enumeration item.{color}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)