code: protected void prepareTypesCondition(
          CmsUUID projectId,
          List<Integer> types,
          int mode,
          StringBuffer conditions,
          List<Object> params) {
  
          if ((mode & CmsDriverManager.READMODE_EXCLUDE_TYPE) > 0) {
              // C_READ_FILE_TYPES: add condition to match against any type, but not given type
              conditions.append(BEGIN_EXCLUDE_CONDITION);
              conditions.append(m_sqlManager.readQuery(projectId, "C_RESOURCES_SELECT_BY_RESOURCE_TYPE"));
              conditions.append(END_CONDITION);
              params.add(new Integer(CmsDriverManager.READ_IGNORE_TYPE));
          } else if (!((types == null) || types.isEmpty())) {
              //otherwise add condition to match against given type if necessary
              conditions.append(BEGIN_INCLUDE_CONDITION);
              Iterator<Integer> typeIt = types.iterator();
              while (typeIt.hasNext()) {
                  conditions.append(m_sqlManager.readQuery(projectId, "C_RESOURCES_SELECT_BY_RESOURCE_TYPE"));
                  params.add(typeIt.next());
                  if (typeIt.hasNext()) {
                      conditions.append(OR_CONDITION);
                  }
              }
              conditions.append(END_CONDITION);
          }
      }
docs: Appends the appropriate selection criteria related with the resource type.<p>
  
  @param projectId the id of the project of the resources
  @param types the resource type id's
  @param mode the selection mode
  @param conditions buffer to append the selection criteria
  @param params list to append the selection parameters