docs: @Override
  	public CPDisplayLayout fetchByC_C(long classNameId, long classPK,
  		boolean retrieveFromCache) {
  		Object[] finderArgs = new Object[] { classNameId, classPK };
  
  		Object result = null;
  
  		if (retrieveFromCache) {
  			result = finderCache.getResult(FINDER_PATH_FETCH_BY_C_C,
  					finderArgs, this);
  		}
  
  		if (result instanceof CPDisplayLayout) {
  			CPDisplayLayout cpDisplayLayout = (CPDisplayLayout)result;
  
  			if ((classNameId != cpDisplayLayout.getClassNameId()) ||
  					(classPK != cpDisplayLayout.getClassPK())) {
  				result = null;
  			}
  		}
  
  		if (result == null) {
  			StringBundler query = new StringBundler(4);
  
  			query.append(_SQL_SELECT_CPDISPLAYLAYOUT_WHERE);
  
  			query.append(_FINDER_COLUMN_C_C_CLASSNAMEID_2);
  
  			query.append(_FINDER_COLUMN_C_C_CLASSPK_2);
  
  			String sql = query.toString();
  
  			Session session = null;
  
  			try {
  				session = openSession();
  
  				Query q = session.createQuery(sql);
  
  				QueryPos qPos = QueryPos.getInstance(q);
  
  				qPos.add(classNameId);
  
  				qPos.add(classPK);
  
  				List<CPDisplayLayout> list = q.list();
  
  				if (list.isEmpty()) {
  					finderCache.putResult(FINDER_PATH_FETCH_BY_C_C, finderArgs,
  						list);
  				}
  				else {
  					CPDisplayLayout cpDisplayLayout = list.get(0);
  
  					result = cpDisplayLayout;
  
  					cacheResult(cpDisplayLayout);
  				}
  			}
  			catch (Exception e) {
  				finderCache.removeResult(FINDER_PATH_FETCH_BY_C_C, finderArgs);
  
  				throw processException(e);
  			}
  			finally {
  				closeSession(session);
  			}
  		}
  
  		if (result instanceof List<?>) {
  			return null;
  		}
  		else {
  			return (CPDisplayLayout)result;
  		}
  	}