public QTrack(BeanPath<? extends Track> entity) { super(entity.getType(), entity.getMetadata()); }
/** * Create a new Comparable typed path * * @param <A> * @param property * @param type * @return */ @SuppressWarnings("unchecked") protected <A extends Comparable> ComparablePath<A> createComparable(String property, Class<? super A> type) { return add(new ComparablePath<A>((Class) type, forProperty(property))); }
/** * Compares the two relational paths using primary key columns * * @param right rhs of the comparison * @return */ @Override public BooleanExpression eq(T right) { if (right instanceof RelationalPath) { return primaryKeyOperation(Ops.EQ, primaryKey, ((RelationalPath) right).getPrimaryKey()); } else { return super.eq(right); } }
/** * Compares the two relational paths using primary key columns * * @param right rhs of the comparison * @return */ @Override public BooleanExpression ne(T right) { if (right instanceof RelationalPath) { return primaryKeyOperation(Ops.NE, primaryKey, ((RelationalPath) right).getPrimaryKey()); } else { return super.ne(right); } }
@SuppressWarnings({ "unchecked", "rawtypes" }) public BooleanExpression instanceOfAny(Class... types) { BooleanExpression[] exprs = new BooleanExpression[types.length]; for (int i = 0; i < types.length; i++) { exprs[i] = this.instanceOf(types[i]); } return BooleanExpression.anyOf(exprs); }
/** * Compares the two relational paths using primary key columns * * @param right rhs of the comparison * @return */ @Override public BooleanExpression eq(Expression<? super T> right) { if (right instanceof RelationalPath) { return primaryKeyOperation(Ops.EQ, primaryKey, ((RelationalPath) right).getPrimaryKey()); } else { return super.eq(right); } }
/** * Compares the two relational paths using primary key columns * * @param right rhs of the comparison * @return */ @Override public BooleanExpression ne(Expression<? super T> right) { if (right instanceof RelationalPath) { return primaryKeyOperation(Ops.NE, primaryKey, ((RelationalPath) right).getPrimaryKey()); } else { return super.ne(right); } }
public QObjectId(BeanPath<? extends ObjectId> entity) { super(entity.getType(), entity.getMetadata()); }
/** * Create a new Date path * * @param <A> * @param property * @param type * @return */ @SuppressWarnings("unchecked") protected <A extends Comparable> DatePath<A> createDate(String property, Class<? super A> type) { return add(new DatePath<A>((Class) type, forProperty(property))); }
public QPlace(BeanPath<? extends Place> entity) { super(entity.getType(), entity.getMetadata()); }
/** * Create a new Number path * * @param <A> * @param property * @param type * @return */ @SuppressWarnings("unchecked") protected <A extends Number & Comparable<?>> NumberPath<A> createNumber(String property, Class<? super A> type) { return add(new NumberPath<A>((Class) type, forProperty(property))); }
public QPerson(BeanPath<? extends Person> entity) { super(entity.getType(), entity.getMetadata()); }
/** * Create a new array path * * @param <A> * @param property * @param type * @return */ protected <A, E> ArrayPath<A, E> createArray(String property, Class<? super A> type) { return add(new ArrayPath<A, E>(type, forProperty(property))); }
public QStuff(BeanPath<? extends Stuff> entity) { super(entity.getType(), entity.getMetadata()); }
/** * Create a new String path * * @param property * @return */ protected StringPath createString(String property) { return add(new StringPath(forProperty(property))); }
/** * Create a new Collection typed path * * @param <A> * @param property * @param type * @return */ @SuppressWarnings("unchecked") protected <A, Q extends SimpleExpression<? super A>> CollectionPath<A, Q> createCollection(String property, Class<? super A> type, Class<? super Q> queryType, PathInits inits) { return add(new CollectionPath<A, Q>(type, (Class) queryType, forProperty(property), inits)); }
/** * Create a new DateTime path * * @param <A> * @param property * @param type * @return */ @SuppressWarnings("unchecked") protected <A extends Comparable> DateTimePath<A> createDateTime(String property, Class<? super A> type) { return add(new DateTimePath<A>((Class) type, forProperty(property))); }
/** * @param <A> * @param property * @param type * @return */ protected <A extends Enum<A>> EnumPath<A> createEnum(String property, Class<A> type) { return add(new EnumPath<A>(type, forProperty(property))); }
/** * Create a new Set typed path * * @param <A> * @param property * @param type * @return */ @SuppressWarnings("unchecked") protected <A, E extends SimpleExpression<? super A>> SetPath<A, E> createSet(String property, Class<? super A> type, Class<? super E> queryType, PathInits inits) { return add(new SetPath<A, E>(type, (Class) queryType, forProperty(property), inits)); }
/** * Create a new Time path * * @param <A> * @param property * @param type * @return */ @SuppressWarnings("unchecked") protected <A extends Comparable> TimePath<A> createTime(String property, Class<? super A> type) { return add(new TimePath<A>((Class) type, forProperty(property))); }