Codota Logo
DetachableMixin
Code IndexAdd Codota to your IDE (free)

How to use
DetachableMixin
in
com.mysema.query.support

Best Java code snippets using com.mysema.query.support.DetachableMixin (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: com.mysema.querydsl/querydsl-core

public DetachableQuery(QueryMixin<Q> queryMixin) {
  super(queryMixin);
  this.detachableMixin = new DetachableMixin(queryMixin);
}
origin: com.mysema.querydsl/querydsl-core

@Override
public ListSubQuery<Tuple> list(Object... args) {
  return list(convert(args));
}
origin: com.mysema.querydsl/querydsl-core

@Override
public NumberSubQuery<Long> count() {
  return detachableMixin.count();
}
origin: com.mysema.querydsl/querydsl-core

@Override
public SimpleSubQuery<Tuple> unique(Object... args) {
  return unique(convert(args));
}
origin: com.mysema.querydsl/querydsl-core

@Override
public <RT extends Comparable<?>> ComparableSubQuery<RT> unique(ComparableExpression<RT> projection) {
  return detachableMixin.unique(projection);
}
origin: com.mysema.querydsl/querydsl-core

@Override
public StringSubQuery unique(StringExpression projection) {
  return new StringSubQuery(uniqueProjection(projection));
}
origin: com.mysema.querydsl/querydsl-core

@Override
public ListSubQuery<Tuple> list(Expression<?>... args) {
  return new ListSubQuery<Tuple>(Tuple.class, projection(args));
}
origin: com.mysema.querydsl/querydsl-core

@Override
public ListSubQuery<Tuple> list(Object... args) {
  return detachableMixin.list(args);
}
origin: com.mysema.querydsl/querydsl-core

@Override
public BooleanExpression exists() {
  return detachableMixin.exists();
}
origin: com.mysema.querydsl/querydsl-core

private Expression<?>[] convert(Object... args) {
  final Expression<?>[] exprs = new Expression[args.length];
  for (int i = 0; i < exprs.length; i++) {
    exprs[i] = convert(args[i]);
  }
  return exprs;
}
origin: com.mysema.querydsl/querydsl-core

@Override
public BooleanExpression notExists() {
  return detachableMixin.notExists();
}
origin: com.mysema.querydsl/querydsl-core

private QueryMetadata projection(Expression<?>... projection) {
  QueryMetadata metadata = queryMixin.getMetadata().clone();
  for (Expression<?> expr : projection) {
    expr = queryMixin.convert(expr, false);
    metadata.addProjection(nullAsTemplate(expr));
  }
  return metadata;
}
origin: com.mysema.querydsl/querydsl-core

@Override
public StringSubQuery unique(StringExpression projection) {
  return detachableMixin.unique(projection);
}
origin: com.mysema.querydsl/querydsl-core

@Override
public SimpleSubQuery<Tuple> unique(Expression<?>... args) {
  return new SimpleSubQuery<Tuple>(Tuple.class, uniqueProjection(args));
}
origin: com.mysema.querydsl/querydsl-core

private QueryMetadata uniqueProjection(Expression<?>... projection) {
  QueryMetadata metadata = projection(projection);
  metadata.setUnique(true);
  return metadata;
}
origin: com.mysema.querydsl/querydsl-core

public ListSubQuery<Tuple> list(Object arg) {
  return detachableMixin.list(arg);
}

origin: com.mysema.querydsl/querydsl-core

@Override
public BooleanExpression notExists() {
  return exists().not();
}
origin: com.mysema.querydsl/querydsl-core

@Override
public <RT extends Number & Comparable<?>> NumberSubQuery<RT> unique(NumberExpression<RT> projection) {
  return detachableMixin.unique(projection);
}
origin: com.mysema.querydsl/querydsl-core

@Override
public BooleanSubQuery unique(Predicate projection) {
  return new BooleanSubQuery(uniqueProjection(projection));
}
origin: com.mysema.querydsl/querydsl-core

public ListSubQuery<Tuple> list(Object arg) {
  return list((Expression)convert(arg));
}
com.mysema.query.supportDetachableMixin

Javadoc

Mixin style implementation of the Detachable interface

Most used methods

  • <init>
  • convert
  • count
  • exists
  • list
  • notExists
  • nullAsTemplate
  • projection
  • unique
  • uniqueProjection

Popular in Java

  • Creating JSON documents from java classes using gson
  • requestLocationUpdates (LocationManager)
  • onCreateOptionsMenu (Activity)
  • onRequestPermissionsResult (Fragment)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now