de.esprit.appsuite.type

## Interface PersistentCode

- All Known Subinterfaces:
    UserPermission
  All Known Implementing Classes:
    ABOPermission, BatchTaskManagerPermission, CommandLineOptionDataType, Country, DatabaseManagerPermission, DefaultUserPermission, JavaTechnology, JavaVmType, Language, SessionManagerPermission, UserAllPermission, UserManagerPermission

      public interface PersistentCode

  This interface should be implemented by enums which store a String value for database persistence. Once defined this String value should NEVER CHANGE even if new enum constants are added or modified.
  Author:
    Rainer Buesch

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getPersistentCode()` Returns the String value to be stored in the database.

- - ### Method Detail

    - #### getPersistentCode

          java.lang.String getPersistentCode()

      Returns the String value to be stored in the database. Note that the implementing Enum must also have a static method named fromPersistentCode(String). This ensures that the Enum can be instantiated from the String stored in the database.

Copyright © 2013 EsprIT-Systems. All Rights Reserved.