private static boolean loadMsgPhrase(final Object _criteria)
        throws EFapsException
    {
        final boolean ret = false;
        final QueryBuilder queryBldr = new QueryBuilder(CIAdminCommon.MsgPhrase);
        if (_criteria instanceof Long) {
            queryBldr.addWhereAttrEqValue(CIAdminCommon.MsgPhrase.ID, _criteria);
        } else if (_criteria instanceof UUID) {
            queryBldr.addWhereAttrEqValue(CIAdminCommon.MsgPhrase.UUID, _criteria.toString());
        } else {
            queryBldr.addWhereAttrEqValue(CIAdminCommon.MsgPhrase.Name, _criteria);
        }
        final MultiPrintQuery multi = queryBldr.getPrint();
        multi.addAttribute(CIAdminCommon.MsgPhrase.ID, CIAdminCommon.MsgPhrase.UUID, CIAdminCommon.MsgPhrase.Name,
                        CIAdminCommon.MsgPhrase.ParentLink);
        multi.executeWithoutAccessCheck();
        if (multi.next()) {
            final MsgPhrase phrase = new MsgPhrase(multi.<Long>getAttribute(CIAdminCommon.MsgPhrase.ID),
                            multi.<String>getAttribute(CIAdminCommon.MsgPhrase.Name),
                            multi.<String>getAttribute(CIAdminCommon.MsgPhrase.UUID),
                            multi.<Long>getAttribute(CIAdminCommon.MsgPhrase.ParentLink));
            phrase.load();
            cacheMsgPhrase(phrase);
        }
        if (multi.next()) {
            LOG.error("MsgPhrase is not unique for criteria: {}", _criteria);
        }
        return ret;
    }
private static boolean loadMsgPhrase ( final Object _criteria ) throws EFapsException { final boolean ret = false ; final QueryBuilder queryBldr = new QueryBuilder ( CIAdminCommon . MsgPhrase ) ; if ( _criteria instanceof Long ) { queryBldr . addWhereAttrEqValue ( CIAdminCommon . MsgPhrase . ID , _criteria ) ; } else if ( _criteria instanceof UUID ) { queryBldr . addWhereAttrEqValue ( CIAdminCommon . MsgPhrase . UUID , _criteria . toString ( ) ) ; } else { queryBldr . addWhereAttrEqValue ( CIAdminCommon . MsgPhrase . Name , _criteria ) ; } final MultiPrintQuery multi = queryBldr . getPrint ( ) ; multi . addAttribute ( CIAdminCommon . MsgPhrase . ID , CIAdminCommon . MsgPhrase . UUID , CIAdminCommon . MsgPhrase . Name , CIAdminCommon . MsgPhrase . ParentLink ) ; multi . executeWithoutAccessCheck ( ) ; if ( multi . next ( ) ) { final MsgPhrase phrase = new MsgPhrase ( multi . < Long > getAttribute ( CIAdminCommon . MsgPhrase . ID ) , multi . < String > getAttribute ( CIAdminCommon . MsgPhrase . Name ) , multi . < String > getAttribute ( CIAdminCommon . MsgPhrase . UUID ) , multi . < Long > getAttribute ( CIAdminCommon . MsgPhrase . ParentLink ) ) ; phrase . load ( ) ; cacheMsgPhrase ( phrase ) ; } if ( multi . next ( ) ) { LOG . error ( "MsgPhrase is not unique for criteria: {}" , _criteria ) ; } return ret ; }
@param _criteria criteria to use
@return true
@throws EFapsException on error