Re: [JIRA] Created: (CAY-964) Enum logging in SQL logs

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Jan 16 2008 - 12:42:01 EST

  • Next message: Andrus Adamchik: "Re: [JIRA] Created: (CAY-964) Enum logging in SQL logs"

    On Jan 16, 2008, at 7:34 PM, Andrus Adamchik wrote:

    > public enum SomeArbitraryType {
    >
    > TYPE1, TYPE2, ...;
    >
    > ..numCode
    > public String getCode() {
    > // this is dumb, but demonstrates the idea
    > return name() + "_CODE";
    > }
    > }

    Or this:

       public enum SomeArbitraryType {

    ..bCode(value="X")
            TYPE1,

    ..bCode(value="Y")
            TYPE2, ...;
       }

    Andrus



    This archive was generated by hypermail 2.0.0 : Wed Jan 16 2008 - 12:42:34 EST