code: public List<T> query(String query, QueryType type)
      {
          switch (type)
          {
          case JPQL:
              return query(query);
  
          case NATIVE:
              return nativeQuery(query);
  
          default:
              throw new KunderaException("invalid query type");
          }
      }
docs: /*
  (non-Javadoc)
  
  @see com.impetus.core.KunderaEntity#query(java.lang.String,
  com.impetus.core.QueryType)