org.grails.datastore.mapping.query.Query.getEntity()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(363)

本文整理了Java中org.grails.datastore.mapping.query.Query.getEntity方法的一些代码示例,展示了Query.getEntity的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getEntity方法的具体详情如下:
包路径:org.grails.datastore.mapping.query.Query
类名称:Query
方法名:getEntity

Query.getEntity介绍

暂无

代码示例

代码示例来源:origin: org.grails/grails-datastore-gorm-hibernate-core

  1. @Override
  2. public PersistentEntity getEntity() {
  3. if (!entityStack.isEmpty()) {
  4. return entityStack.getLast();
  5. }
  6. return super.getEntity();
  7. }

代码示例来源:origin: org.grails/grails-hibernate

  1. @Override
  2. public PersistentEntity getEntity() {
  3. if(!entityStack.isEmpty()) {
  4. return entityStack.getLast();
  5. }
  6. return super.getEntity();
  7. }

代码示例来源:origin: org.grails/grails-datastore-gorm

  1. protected void applyAdditionalCriteria(Query query, Closure additionalCriteria) {
  2. if (additionalCriteria == null) {
  3. return;
  4. }
  5. CriteriaBuilder builder = new CriteriaBuilder(query.getEntity().getJavaClass(), query.getSession(), query);
  6. builder.build(additionalCriteria);
  7. }
  8. }

代码示例来源:origin: org.grails/grails-datastore-gorm

  1. final ConversionService conversionService = query.getEntity().getMappingContext().getConversionService();
  2. if (argMap.containsKey(ARGUMENT_MAX)) {
  3. maxParam = conversionService.convert(argMap.get(ARGUMENT_MAX), Integer.class);

代码示例来源:origin: org.grails/grails-datastore-gorm

  1. Query query = preQueryEvent.getQuery();
  2. PersistentEntity entity = query.getEntity();
  3. if(entity.isMultiTenant()) {
  4. if(datastore == null) {

代码示例来源:origin: org.grails/grails-datastore-gorm-hibernate-core

  1. Query query = preQueryEvent.getQuery();
  2. PersistentEntity entity = query.getEntity();
  3. if(entity.isMultiTenant()) {
  4. if(hibernateDatastore == null) {

相关文章