private static boolean getStoreFromDB(final CIAttribute _uUID,
                                          final Object _criteria)
        throws CacheReloadException
    {
        final boolean ret = false;
        try {
            final QueryBuilder queryBldr = new QueryBuilder(CIDB.Store);
            queryBldr.addWhereAttrEqValue(CIDB.Store.ID, _criteria);
            final MultiPrintQuery multi = queryBldr.getPrint();
            multi.addAttribute(CIDB.Store.Name, CIDB.Store.ID, CIDB.Store.UUID);
            multi.executeWithoutAccessCheck();
            if (multi.next()) {
                final long id = multi.<Long>getAttribute(CIDB.Store.ID);
                final String name = multi.<String>getAttribute(CIDB.Store.Name);
                final String uuid = multi.<String>getAttribute(CIDB.Store.UUID);
                final Store store = new Store(id, uuid, name);
                store.readFromDB4Properties();
                store.readFromDB4Links();
                Store.cacheStore(store);
            }
        } catch (final EFapsException e) {
            throw new CacheReloadException("Could not read Store.", e);
        }
        return ret;
    }
private static boolean getStoreFromDB ( final CIAttribute _uUID , final Object _criteria ) throws CacheReloadException { final boolean ret = false ; try { final QueryBuilder queryBldr = new QueryBuilder ( CIDB . Store ) ; queryBldr . addWhereAttrEqValue ( CIDB . Store . ID , _criteria ) ; final MultiPrintQuery multi = queryBldr . getPrint ( ) ; multi . addAttribute ( CIDB . Store . Name , CIDB . Store . ID , CIDB . Store . UUID ) ; multi . executeWithoutAccessCheck ( ) ; if ( multi . next ( ) ) { final long id = multi . < Long > getAttribute ( CIDB . Store . ID ) ; final String name = multi . < String > getAttribute ( CIDB . Store . Name ) ; final String uuid = multi . < String > getAttribute ( CIDB . Store . UUID ) ; final Store store = new Store ( id , uuid , name ) ; store . readFromDB4Properties ( ) ; store . readFromDB4Links ( ) ; Store . cacheStore ( store ) ; } } catch ( final EFapsException e ) { throw new CacheReloadException ( "Could not read Store." , e ) ; } return ret ; }
@param _uUID      CIAttribute
@param _criteria filter criteria
@return true if successful
@throws CacheReloadException on error