@ SuppressWarnings ( "unchecked" ) public static VmSetting getSetting ( String s ) { PARAMETERS . clear ( ) ; PARAMETERS . put ( "setting" , s ) ; result = namedQuery ( "VmSetting.findBySetting" , PARAMETERS ) ; if ( result . isEmpty ( ) ) { return null ; } else { return ( VmSetting ) result . get ( 0 ) ; } }
Get setting from database