code
stringlengths
23
201k
docstring
stringlengths
17
96.2k
func_name
stringlengths
0
235
language
stringclasses
1 value
repo
stringlengths
8
72
path
stringlengths
11
317
url
stringlengths
57
377
license
stringclasses
7 values
public void addFrom(String entityName, String alias, boolean select) { CrossJoinParameter joinParameter = new CrossJoinParameter( entityName, alias, select ); froms.add( joinParameter ); }
Add an entity from which to select. @param entityName Name of the entity from which to select. @param alias Alias of the entity. Should be different than all other aliases. @param select whether the entity should be selected
addFrom
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
Apache-2.0
public Parameters addJoin(JoinType joinType, String entityName, String alias, boolean select) { Parameters joinConditionParameters = new Parameters( alias, Parameters.AND, paramCounter ); InnerOuterJoinParameter joinParameter = new InnerOuterJoinParameter( joinType, entityName, alias, select, jo...
Add an entity from which to select. @param entityName Name of the entity from which to select. @param alias Alias of the entity. Should be different than all other aliases. @param select whether the entity should be selected
addJoin
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
Apache-2.0
public String generateAlias() { return "_e" + aliasCounter.getAndIncrease(); }
Add an entity from which to select. @param entityName Name of the entity from which to select. @param alias Alias of the entity. Should be different than all other aliases. @param select whether the entity should be selected
generateAlias
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
Apache-2.0
public QueryBuilder newSubQueryBuilder(String entityName, String alias) { return new QueryBuilder( entityName, alias, aliasCounter, paramCounter, sessionFactory ); }
@param entityName Entity name, which will be the main entity for the sub-query. @param alias Alias of the entity, which can later be used in parameters. @return A sub-query builder for the given entity, with the given alias. The sub-query can be later used as a value of a parameter.
newSubQueryBuilder
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
Apache-2.0
public Parameters getRootParameters() { return parameters.get( 0 ); }
@param entityName Entity name, which will be the main entity for the sub-query. @param alias Alias of the entity, which can later be used in parameters. @return A sub-query builder for the given entity, with the given alias. The sub-query can be later used as a value of a parameter.
getRootParameters
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
Apache-2.0
public Parameters addParameters(final String alias) { final Parameters result = new Parameters( alias, Parameters.AND, paramCounter); parameters.add( result ); return result; }
@param entityName Entity name, which will be the main entity for the sub-query. @param alias Alias of the entity, which can later be used in parameters. @return A sub-query builder for the given entity, with the given alias. The sub-query can be later used as a value of a parameter.
addParameters
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
Apache-2.0
public void addOrder(String alias, String propertyName, boolean ascending, NullPrecedence nullPrecedence) { orders.add( new OrderByClause( alias, propertyName, ascending, nullPrecedence ) ); }
@param entityName Entity name, which will be the main entity for the sub-query. @param alias Alias of the entity, which can later be used in parameters. @return A sub-query builder for the given entity, with the given alias. The sub-query can be later used as a value of a parameter.
addOrder
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
Apache-2.0
public void addOrderFragment(String alias, String orderByCollectionRole) { orderFragments.add( Pair.make( alias, orderByCollectionRole ) ); }
@param entityName Entity name, which will be the main entity for the sub-query. @param alias Alias of the entity, which can later be used in parameters. @return A sub-query builder for the given entity, with the given alias. The sub-query can be later used as a value of a parameter.
addOrderFragment
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
Apache-2.0
public void addProjection(String function, String alias, String propertyName, boolean distinct) { final String effectivePropertyName = propertyName == null ? "" : ".".concat( propertyName ); if ( function == null ) { projections.add( (distinct ? "distinct " : "") + alias + effectivePropertyName ); } else { ...
@param entityName Entity name, which will be the main entity for the sub-query. @param alias Alias of the entity, which can later be used in parameters. @return A sub-query builder for the given entity, with the given alias. The sub-query can be later used as a value of a parameter.
addProjection
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
Apache-2.0
public void addProjection( Configuration configuration, Map<String, String> aliasToEntityNameMap, Map<String, String> aliasToComponentPropertyNameMap, AuditFunction function) { final StringBuilder expression = new StringBuilder(); appendFunctionArgument( configuration, aliasToEntityNameMap, ...
@param entityName Entity name, which will be the main entity for the sub-query. @param alias Alias of the entity, which can later be used in parameters. @return A sub-query builder for the given entity, with the given alias. The sub-query can be later used as a value of a parameter.
addProjection
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
Apache-2.0
protected static void appendFunctionArgument( Configuration configuration, Map<String, String> aliasToEntityNameMap, Map<String, String> aliasToComponentPropertyNameMap, MutableInteger paramCounter, Map<String, Object> queryParamValues, String alias, StringBuilder expression, Object argument) { ...
@param entityName Entity name, which will be the main entity for the sub-query. @param alias Alias of the entity, which can later be used in parameters. @return A sub-query builder for the given entity, with the given alias. The sub-query can be later used as a value of a parameter.
appendFunctionArgument
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
Apache-2.0
public void build(StringBuilder sb, Map<String, Object> queryParamValues) { sb.append( "select " ); if ( projections.size() > 0 ) { // all projections separated with commas StringTools.append( sb, projections.iterator(), ", " ); } else { // all aliases separated with commas StringTools.append( sb, g...
Builds the given query, appending results to the given string buffer, and adding all query parameter values that are used to the map provided. @param sb String builder to which the query will be appended. @param queryParamValues Map to which name and values of parameters used in the query should be added.
build
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
Apache-2.0
private List<String> getSelectAliasList() { final List<String> aliasList = new ArrayList<>(); for ( JoinParameter from : froms ) { if ( from.isSelect() ) { aliasList.add( from.getAlias() ); } } return aliasList; }
Builds the given query, appending results to the given string buffer, and adding all query parameter values that are used to the map provided. @param sb String builder to which the query will be appended. @param queryParamValues Map to which name and values of parameters used in the query should be added.
getSelectAliasList
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
Apache-2.0
public String getRootAlias() { return alias; }
Builds the given query, appending results to the given string buffer, and adding all query parameter values that are used to the map provided. @param sb String builder to which the query will be appended. @param queryParamValues Map to which name and values of parameters used in the query should be added.
getRootAlias
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
Apache-2.0
private List<String> getOrderList() { final List<String> orderList = new ArrayList<>(); for ( OrderByClause orderByClause : orders ) { orderList.add( orderByClause.renderToHql() ); } return orderList; }
Builds the given query, appending results to the given string buffer, and adding all query parameter values that are used to the map provided. @param sb String builder to which the query will be appended. @param queryParamValues Map to which name and values of parameters used in the query should be added.
getOrderList
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
Apache-2.0
public Query toQuery(Session session) { final StringBuilder querySb = new StringBuilder(); final Map<String, Object> queryParamValues = new HashMap<>(); build( querySb, queryParamValues ); final Query query = session.createQuery( querySb.toString() ); for ( Map.Entry<String, Object> paramValue : queryParamV...
Builds the given query, appending results to the given string buffer, and adding all query parameter values that are used to the map provided. @param sb String builder to which the query will be appended. @param queryParamValues Map to which name and values of parameters used in the query should be added.
toQuery
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
Apache-2.0
public String getAlias() { return alias; }
Builds the given query, appending results to the given string buffer, and adding all query parameter values that are used to the map provided. @param sb String builder to which the query will be appended. @param queryParamValues Map to which name and values of parameters used in the query should be added.
getAlias
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
Apache-2.0
public boolean isSelect() { return select; }
Builds the given query, appending results to the given string buffer, and adding all query parameter values that are used to the map provided. @param sb String builder to which the query will be appended. @param queryParamValues Map to which name and values of parameters used in the query should be added.
isSelect
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
Apache-2.0
@Override public void appendJoin(boolean firstFromElement, StringBuilder builder, Map<String, Object> queryParamValues) { if ( !firstFromElement ) { builder.append( ", " ); } builder.append( entityName ).append( ' ' ).append( getAlias() ); }
Builds the given query, appending results to the given string buffer, and adding all query parameter values that are used to the map provided. @param sb String builder to which the query will be appended. @param queryParamValues Map to which name and values of parameters used in the query should be added.
appendJoin
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
Apache-2.0
@Override public void appendJoin(boolean firstFromElement, StringBuilder builder, Map<String, Object> queryParamValues) { if (firstFromElement) { throw new IllegalArgumentException( "An inner/outer join cannot come as first 'from element'" ); } builder.append( ' ' ).append( joinType.name() .toLowerC...
Builds the given query, appending results to the given string buffer, and adding all query parameter values that are used to the map provided. @param sb String builder to which the query will be appended. @param queryParamValues Map to which name and values of parameters used in the query should be added.
appendJoin
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
Apache-2.0
public String renderToHql() { StringBuilder hql = new StringBuilder(); hql.append( alias ).append( "." ).append( propertyName ).append( " " ); hql.append( ascending ? "asc" : "desc" ); if ( nullPrecedence != null ) { if ( NullPrecedence.FIRST.equals( nullPrecedence ) ) { hql.append( " nulls first" ...
Builds the given query, appending results to the given string buffer, and adding all query parameter values that are used to the map provided. @param sb String builder to which the query will be appended. @param queryParamValues Map to which name and values of parameters used in the query should be added.
renderToHql
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
Apache-2.0
public Parameters getRootParameters() { return rootParameters; }
@author Lukasz Antoniak (lukasz dot antoniak at gmail dot com)
getRootParameters
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/UpdateBuilder.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/UpdateBuilder.java
Apache-2.0
public void updateValue(String propertyName, Object value) { updates.put( propertyName, value ); }
@author Lukasz Antoniak (lukasz dot antoniak at gmail dot com)
updateValue
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/UpdateBuilder.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/UpdateBuilder.java
Apache-2.0
public void build(StringBuilder sb, Map<String, Object> updateParamValues) { sb.append( "update " ).append( entityName ).append( " " ).append( alias ); sb.append( " set " ); int i = 1; for ( Map.Entry<String, Object> entry : updates.entrySet() ) { final String property = entry.getKey(); final String param...
@author Lukasz Antoniak (lukasz dot antoniak at gmail dot com)
build
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/UpdateBuilder.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/UpdateBuilder.java
Apache-2.0
private String generateParameterName() { return "_u" + paramCounter.getAndIncrease(); }
@author Lukasz Antoniak (lukasz dot antoniak at gmail dot com)
generateParameterName
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/UpdateBuilder.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/UpdateBuilder.java
Apache-2.0
public Query toQuery(Session session) { final StringBuilder querySb = new StringBuilder(); final Map<String, Object> queryParamValues = new HashMap<>(); build( querySb, queryParamValues ); final Query query = session.createQuery( querySb.toString() ); for ( Map.Entry<String, Object> paramValue : queryParamV...
@author Lukasz Antoniak (lukasz dot antoniak at gmail dot com)
toQuery
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/UpdateBuilder.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/UpdateBuilder.java
Apache-2.0
public static AuditId id() { return id( null ); }
@author Adam Warski (adam at warski dot org)
id
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
Apache-2.0
public static AuditId id(String alias) { return new AuditId( alias ); }
@author Adam Warski (adam at warski dot org)
id
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
Apache-2.0
public static AuditProperty<Object> property(String propertyName) { return property( null, propertyName ); }
Create restrictions, projections and specify order for a property of an audited entity. @param propertyName Name of the property.
property
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
Apache-2.0
public static AuditProperty<Object> property(String alias, String propertyName) { return new AuditProperty<>( alias, new EntityPropertyName( propertyName ) ); }
Create restrictions, projections and specify order for a property of an audited entity. @param alias the alias of the entity which owns the property. @param propertyName Name of the property.
property
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
Apache-2.0
public static AuditProperty<Number> revisionNumber() { return revisionNumber( null ); }
Create restrictions, projections and specify order for the revision number, corresponding to an audited entity.
revisionNumber
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
Apache-2.0
public static AuditProperty<Number> revisionNumber(String alias) { return new AuditProperty<>( alias, new RevisionNumberPropertyName() ); }
Create restrictions, projections and specify order for the revision number, corresponding to an audited entity. @param alias the alias of the entity which owns the revision number.
revisionNumber
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
Apache-2.0
public static AuditProperty<Object> revisionProperty(String propertyName) { return revisionProperty( null, propertyName ); }
Create restrictions, projections and specify order for a property of the revision entity, corresponding to an audited entity. @param propertyName Name of the property.
revisionProperty
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
Apache-2.0
public static AuditProperty<Object> revisionProperty(String alias, String propertyName) { return new AuditProperty<>( alias, new RevisionPropertyPropertyName( propertyName ) ); }
Create restrictions, projections and specify order for a property of the revision entity, corresponding to an audited entity. @param alias the alias of the entity which owns the revision property. @param propertyName Name of the property.
revisionProperty
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
Apache-2.0
public static AuditProperty<RevisionType> revisionType() { return revisionType( null ); }
Create restrictions, projections and specify order for the revision type, corresponding to an audited entity.
revisionType
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
Apache-2.0
public static AuditProperty<RevisionType> revisionType(String alias) { return new AuditProperty<>( alias, new RevisionTypePropertyName() ); }
Create restrictions, projections and specify order for the revision type, corresponding to an audited entity. @param alias the alias of the entity which owns the revision type.
revisionType
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
Apache-2.0
public static AuditRelatedId relatedId(String propertyName) { return relatedId( null, propertyName ); }
Create restrictions on an id of a related entity. @param propertyName Name of the property, which is the relation.
relatedId
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
Apache-2.0
public static AuditRelatedId relatedId(String alias, String propertyName) { return new AuditRelatedId( alias, new EntityPropertyName( propertyName ) ); }
Create restrictions on an id of a related entity. @param alias the alias of the entity which owns the relation property. @param propertyName Name of the property, which is the relation.
relatedId
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
Apache-2.0
public static AuditCriterion and(AuditCriterion lhs, AuditCriterion rhs) { return new LogicalAuditExpression( lhs, rhs, "and" ); }
Return the conjuction of two criterions.
and
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
Apache-2.0
public static AuditCriterion or(AuditCriterion lhs, AuditCriterion rhs) { return new LogicalAuditExpression( lhs, rhs, "or" ); }
Return the disjuction of two criterions.
or
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
Apache-2.0
public static AuditConjunction conjunction() { return new AuditConjunction(); }
Group criterions together in a single conjunction (A and B and C...).
conjunction
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
Apache-2.0
public static AuditDisjunction disjunction() { return new AuditDisjunction(); }
Group criterions together in a single disjunction (A or B or C...).
disjunction
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
Apache-2.0
public static AuditProjection selectEntity(boolean distinct) { return new EntityAuditProjection( null, distinct ); }
Adds a projection to the current entity itself. Useful for selecting entities which are reached through associations within the query. @param distinct whether to distinct select the entity
selectEntity
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
Apache-2.0
public static AuditCriterion entityType(final Class<?> type) { return entityType( null, type ); }
Adds a restriction for the type of the current entity. @param type the entity type to restrict the current alias to
entityType
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
Apache-2.0
public static AuditCriterion entityType(final String entityName) { return entityType( null, entityName ); }
Adds a restriction for the type of the current entity. @param entityName the entity name to restrict the current alias to
entityType
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
Apache-2.0
public static AuditCriterion entityType(final String alias, final Class<?> type) { Class<?> unproxiedType = EntityTools.getTargetClassIfProxied( type ); return entityType( alias, unproxiedType.getName() ); }
Adds a restriction for the type of the entity of the specified alias. @param alias the alias to restrict. If null is specified, the current alias is used @param type the entity type to restrict the alias to
entityType
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
Apache-2.0
public static AuditCriterion entityType(final String alias, final String entityName) { return new EntityTypeAuditExpression( alias, entityName ); }
Adds a restriction for the type of the entity of the specified alias. @param alias the alias to restrict. If null is specified, the current alias is used @param entityName the entity name to restrict the alias to @return
entityType
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
Apache-2.0
public AuditQuery forEntitiesAtRevision(Class<?> c, Number revision) { checkNotNull( revision, "Entity revision" ); checkPositive( revision, "Entity revision" ); c = getTargetClassIfProxied( c ); checkEntityAudited( c.getName() ); return new EntitiesAtRevisionQuery( enversService, auditReaderImplementor, c, r...
Creates a query, which will return entities satisfying some conditions (specified later), at a given revision. Deleted entities are not included. @param c Class of the entities for which to query. @param revision Revision number at which to execute the query. @return A query for entities at a given revision, to which...
forEntitiesAtRevision
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditQueryCreator.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditQueryCreator.java
Apache-2.0
public AuditQuery forEntitiesAtRevision(Class<?> c, String entityName, Number revision) { return forEntitiesAtRevision( c, entityName, revision, false ); }
Creates a query, which will return entities satisfying some conditions (specified later), at a given revision and a given entityName. Deleted entities are not included. @param c Class of the entities for which to query. @param entityName Name of the entity (if it can't be guessed basing on the {@code c}). @param revis...
forEntitiesAtRevision
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditQueryCreator.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditQueryCreator.java
Apache-2.0
public AuditQuery forEntitiesAtRevision(Class<?> c, String entityName, Number revision, boolean includeDeletions) { checkNotNull( revision, "Entity revision" ); checkPositive( revision, "Entity revision" ); c = getTargetClassIfProxied( c ); checkEntityAudited( entityName ); return new EntitiesAtRevisionQuery(...
Creates a query, which will return entities satisfying some conditions (specified later), at a given revision and a given entityName. Deleted entities may be optionally included. @param c Class of the entities for which to query. @param entityName Name of the entity (if it can't be guessed basing on the {@code c}). @p...
forEntitiesAtRevision
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditQueryCreator.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditQueryCreator.java
Apache-2.0
public AuditQuery forEntitiesModifiedAtRevision(Class<?> c, String entityName, Number revision) { checkNotNull( revision, "Entity revision" ); checkPositive( revision, "Entity revision" ); c = getTargetClassIfProxied( c ); checkEntityAudited( entityName ); return new EntitiesModifiedAtRevisionQuery( enversSer...
Creates a query, which will return entities modified at the specified revision. <p> In comparison, the {@link #forEntitiesAtRevision(Class, String, Number)} query takes into all entities which were present at a given revision, even if they were not modified. @param c Class of the entities for which to query. @param en...
forEntitiesModifiedAtRevision
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditQueryCreator.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditQueryCreator.java
Apache-2.0
public AuditQuery forEntitiesModifiedAtRevision(Class<?> c, Number revision) { checkNotNull( revision, "Entity revision" ); checkPositive( revision, "Entity revision" ); c = getTargetClassIfProxied( c ); checkEntityAudited( c.getName() ); return new EntitiesModifiedAtRevisionQuery( enversService, auditReaderI...
Creates a query, which will return entities modified at the specified revision. <p> In comparison, the {@link #forEntitiesAtRevision(Class, String, Number)} query takes into all entities which were present at a given revision, even if they were not modified. @param c Class of the entities for which to query. @param re...
forEntitiesModifiedAtRevision
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditQueryCreator.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditQueryCreator.java
Apache-2.0
public AuditQuery forRevisionsOfEntity(Class<?> c, boolean selectEntitiesOnly, boolean selectDeletedEntities) { c = getTargetClassIfProxied( c ); checkEntityAudited( c.getName() ); return new RevisionsOfEntityQuery( enversService, auditReaderImplementor, c, selectEntitiesOnly, selectDeletedEnt...
Creates a query, which selects the revisions, at which the given entity was modified. Unless an explicit projection is set, the result will be a list of three-element arrays, containing: <ol> <li>the entity instance</li> <li>revision entity, corresponding to the revision at which the entity was modified. If no custom r...
forRevisionsOfEntity
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditQueryCreator.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditQueryCreator.java
Apache-2.0
public AuditQuery forRevisionsOfEntity( Class<?> c, String entityName, boolean selectEntitiesOnly, boolean selectDeletedEntities) { c = getTargetClassIfProxied( c ); checkEntityAudited( entityName ); return new RevisionsOfEntityQuery( enversService, auditReaderImplementor, c, entityNam...
Creates a query, which selects the revisions, at which the given entity was modified and with a given entityName. Unless an explicit projection is set, the result will be a list of three-element arrays, containing: <ol> <li>the entity instance</li> <li>revision entity, corresponding to the revision at which the entity ...
forRevisionsOfEntity
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditQueryCreator.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditQueryCreator.java
Apache-2.0
@Incubating public AuditQuery forRevisionsOfEntity(Class<?> clazz, boolean selectDeletedEntities) { clazz = getTargetClassIfProxied( clazz ); return new RevisionsOfEntityQuery( enversService, auditReaderImplementor, clazz, false, selectDeletedEntities, true, false ); }
Creates a query that selects the revision entities associated with the specified entity. You may also specify whether the revision entities list should include those for deletions of the entity class. @param clazz Class of the entities for which to query. @param selectDeletedEntities If true, the result will include ...
forRevisionsOfEntity
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditQueryCreator.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditQueryCreator.java
Apache-2.0
@Incubating public AuditQuery forRevisionsOfEntity(Class<?> clazz, String entityName, boolean selectDeletedEntities) { clazz = getTargetClassIfProxied( clazz ); return new RevisionsOfEntityQuery( enversService, auditReaderImplementor, clazz, entityName, false, selectDeletedEntities, tru...
Creates a query that selects the revision entities associated with the specified entity. You may also specify whether the revision entities list should include those for deletions of the entity class. @param clazz Class of the entities for which to query. @param entityName Name of the entity (for cases where it canno...
forRevisionsOfEntity
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditQueryCreator.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditQueryCreator.java
Apache-2.0
@Incubating public AuditQuery forRevisionsOfEntityWithChanges(Class<?> clazz, boolean selectDeletedEntities) { clazz = getTargetClassIfProxied( clazz ); return new RevisionsOfEntityQuery( enversService, auditReaderImplementor, clazz, false, selectDeletedEntities, false, true ); }
Creates a query that selects the revisions at which the given entity was modified. Unless a projection is set, the result will be a list of 4-element arrays, containing the following: <ol> <li>The entity instance</li> <li>Revision entity, corresponding to the revision where the entity was modified. If no cust...
forRevisionsOfEntityWithChanges
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditQueryCreator.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditQueryCreator.java
Apache-2.0
@Incubating public AuditQuery forRevisionsOfEntityWithChanges(Class<?> clazz, String entityName, boolean selectDeletedEntities) { clazz = getTargetClassIfProxied( clazz ); return new RevisionsOfEntityQuery( enversService, auditReaderImplementor, clazz, entityName, false, selectDeletedEntiti...
Creates a query that selects the revisions at which the given entity was modified. Unless a projection is set, the result will be a list of 4-element arrays, containing the following: <ol> <li>The entity instance</li> <li>Revision entity, corresponding to the revision where the entity was modified. If no cust...
forRevisionsOfEntityWithChanges
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditQueryCreator.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditQueryCreator.java
Apache-2.0
private void checkEntityAudited(String entityName) { if ( !auditReaderImplementor.isEntityNameAudited( entityName ) ) { throw new NotAuditedException( entityName, "Cannot query audit history on a non-audited entity [" + entityName + "]." ); } }
Creates a query that selects the revisions at which the given entity was modified. Unless a projection is set, the result will be a list of 4-element arrays, containing the following: <ol> <li>The entity instance</li> <li>Revision entity, corresponding to the revision where the entity was modified. If no cust...
checkEntityAudited
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditQueryCreator.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditQueryCreator.java
Apache-2.0
@Override public AggregatedAuditExpression add(AuditCriterion criterion) { criterions.add( criterion ); return this; }
@author Adam Warski (adam at warski dot org) @author Lukasz Antoniak (lukasz dot antoniak at gmail dot com) @author Chris Cranford
add
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AggregatedAuditExpression.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AggregatedAuditExpression.java
Apache-2.0
@Override public void addToQuery( EnversService enversService, AuditReaderImplementor versionsReader, Map<String, String> aliasToEntityNameMap, Map<String, String> aliasToComponentPropertyNameMap, String baseAlias, QueryBuilder qb, Parameters parameters) { String effectiveAlias = this.alias == n...
@author Adam Warski (adam at warski dot org) @author Lukasz Antoniak (lukasz dot antoniak at gmail dot com) @author Chris Cranford
addToQuery
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AggregatedAuditExpression.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AggregatedAuditExpression.java
Apache-2.0
public AggregatedAuditExpression computeAggregationInInstanceContext() { correlate = true; return this; }
Compute aggregated expression in the context of each entity instance separately. Useful for retrieving latest revisions of all entities of a particular type.<br/> Implementation note: Correlates subquery with the outer query by entity id. @return this (for method chaining).
computeAggregationInInstanceContext
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AggregatedAuditExpression.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AggregatedAuditExpression.java
Apache-2.0
@Override public AuditConjunction add(AuditCriterion criterion) { criterions.add( criterion ); return this; }
@author Adam Warski (adam at warski dot org)
add
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditConjunction.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditConjunction.java
Apache-2.0
@Override public void addToQuery( EnversService enversService, AuditReaderImplementor versionsReader, Map<String, String> aliasToEntityNameMap, Map<String, String> aliasToComponentPropertyNameMap, String alias, QueryBuilder qb, Parameters parameters) { Parameters andParameters = parameters.addSu...
@author Adam Warski (adam at warski dot org)
addToQuery
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditConjunction.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditConjunction.java
Apache-2.0
@Override public AuditDisjunction add(AuditCriterion criterion) { criterions.add( criterion ); return this; }
@author Adam Warski (adam at warski dot org)
add
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditDisjunction.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditDisjunction.java
Apache-2.0
@Override public void addToQuery( EnversService enversService, AuditReaderImplementor versionsReader, Map<String, String> aliasToEntityNameMap, Map<String, String> aliasToComponentPropertyNameMap, String alias, QueryBuilder qb, Parameters parameters) { Parameters orParameters = parameters.addSub...
@author Adam Warski (adam at warski dot org)
addToQuery
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditDisjunction.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditDisjunction.java
Apache-2.0
public String getFunction() { return function; }
Create restrictions or projections using a function. @author Felix Feisst (feisst dot felix at gmail dot com)
getFunction
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
Apache-2.0
public List<Object> getArguments() { return arguments; }
Create restrictions or projections using a function. @author Felix Feisst (feisst dot felix at gmail dot com)
getArguments
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
Apache-2.0
public AuditCriterion le(Object value) { return new SimpleFunctionAuditExpression( this, value, "<=" ); }
Apply a "less than or equal" constraint
le
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
Apache-2.0
public AuditCriterion ge(Object value) { return new SimpleFunctionAuditExpression( this, value, ">=" ); }
Apply a "greater than or equal" constraint
ge
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
Apache-2.0
public AuditCriterion eqProperty(String propertyName) { return eqProperty( null, propertyName ); }
Apply an "equal" constraint to a property
eqProperty
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
Apache-2.0
public AuditCriterion eqProperty(String alias, String propertyName) { return new PropertyFunctionAuditExpression( this, alias, propertyName, "=" ); }
Apply an "equal" constraint to a property @param alias the alias of the entity which owns the property.
eqProperty
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
Apache-2.0
public AuditCriterion neProperty(String propertyName) { return neProperty( null, propertyName ); }
Apply a "not equal" constraint to a property
neProperty
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
Apache-2.0
public AuditCriterion neProperty(String alias, String propertyName) { return new PropertyFunctionAuditExpression( this, alias, propertyName, "<>" ); }
Apply a "not equal" constraint to a property @param alias the alias of the entity which owns the property.
neProperty
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
Apache-2.0
public AuditCriterion ltProperty(String propertyName) { return ltProperty( null, propertyName ); }
Apply a "less than" constraint to a property
ltProperty
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
Apache-2.0
public AuditCriterion ltProperty(String alias, String propertyName) { return new PropertyFunctionAuditExpression( this, alias, propertyName, "<" ); }
Apply a "less than" constraint to a property @param alias the alias of the entity which owns the property.
ltProperty
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
Apache-2.0
public AuditCriterion leProperty(String propertyName) { return leProperty( null, propertyName ); }
Apply a "less than or equal" constraint to a property
leProperty
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
Apache-2.0
public AuditCriterion leProperty(String alias, String propertyName) { return new PropertyFunctionAuditExpression( this, alias, propertyName, "<=" ); }
Apply a "less than or equal" constraint to a property @param alias the alias of the entity which owns the property.
leProperty
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
Apache-2.0
public AuditCriterion gtProperty(String propertyName) { return gtProperty( null, propertyName ); }
Apply a "greater than" constraint to a property
gtProperty
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
Apache-2.0
public AuditCriterion gtProperty(String alias, String propertyName) { return new PropertyFunctionAuditExpression( this, alias, propertyName, ">" ); }
Apply a "greater than" constraint to a property @param alias the alias of the entity which owns the property.
gtProperty
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
Apache-2.0
public AuditCriterion geProperty(String propertyName) { return geProperty( null, propertyName ); }
Apply a "greater than or equal" constraint to a property
geProperty
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
Apache-2.0
public AuditCriterion geProperty(String alias, String propertyName) { return new PropertyFunctionAuditExpression( this, alias, propertyName, ">=" ); }
Apply a "greater than or equal" constraint to a property @param alias the alias of the entity which owns the property.
geProperty
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
Apache-2.0
public AuditCriterion eqFunction(AuditFunction otherFunction) { return new FunctionFunctionAuditExpression( this, otherFunction, "=" ); }
Apply an "equal" constraint to another function
eqFunction
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
Apache-2.0
public AuditCriterion neFunction(AuditFunction otherFunction) { return new FunctionFunctionAuditExpression( this, otherFunction, "<>" ); }
Apply a "not equal" constraint to another function
neFunction
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
Apache-2.0
public AuditCriterion ltFunction(AuditFunction otherFunction) { return new FunctionFunctionAuditExpression( this, otherFunction, "<" ); }
Apply a "less than" constraint to another function
ltFunction
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
Apache-2.0
public AuditCriterion leFunction(AuditFunction otherFunction) { return new FunctionFunctionAuditExpression( this, otherFunction, "<=" ); }
Apply a "less than or equal" constraint to another function
leFunction
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
Apache-2.0
public AuditCriterion gtFunction(AuditFunction otherFunction) { return new FunctionFunctionAuditExpression( this, otherFunction, ">" ); }
Apply a "greater than" constraint to another function
gtFunction
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
Apache-2.0
public AuditCriterion geFunction(AuditFunction otherFunction) { return new FunctionFunctionAuditExpression( this, otherFunction, ">=" ); }
Apply a "greater than or equal" constraint to another function
geFunction
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
Apache-2.0
@Override public void addProjectionToQuery( EnversService enversService, AuditReaderImplementor auditReader, Map<String, String> aliasToEntityNameMap, Map<String, String> aliasToComponentPropertyNameMap, String baseAlias, QueryBuilder queryBuilder) { queryBuilder.addProjection( enversService.ge...
Apply a "greater than or equal" constraint to another function
addProjectionToQuery
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
Apache-2.0
@Override public Object convertQueryResult(EnversService enversService, EntityInstantiator entityInstantiator, String entityName, Number revision, Object value) { return value; }
Apply a "greater than or equal" constraint to another function
convertQueryResult
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
Apache-2.0
@Override public String getAlias(String baseAlias) { return baseAlias; }
Apply a "greater than or equal" constraint to another function
getAlias
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
Apache-2.0
@Override public String getAlias(String baseAlias) { return alias == null ? baseAlias : alias; }
Create restrictions, projections and specify order for a property of an audited entity. @author Adam Warski (adam at warski dot org) @author Michal Skowronek (mskowr at o2 dot pl) @author Chris Cranford
getAlias
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditProperty.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditProperty.java
Apache-2.0
public PropertyNameGetter getPropertyNameGetter() { return propertyNameGetter; }
Create restrictions, projections and specify order for a property of an audited entity. @author Adam Warski (adam at warski dot org) @author Michal Skowronek (mskowr at o2 dot pl) @author Chris Cranford
getPropertyNameGetter
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditProperty.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditProperty.java
Apache-2.0
public AuditCriterion hasChanged() { return new SimpleAuditExpression( alias, new ModifiedFlagPropertyName( propertyNameGetter ), true, "=" ); }
Create restrictions, projections and specify order for a property of an audited entity. @author Adam Warski (adam at warski dot org) @author Michal Skowronek (mskowr at o2 dot pl) @author Chris Cranford
hasChanged
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditProperty.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditProperty.java
Apache-2.0
public AuditCriterion hasNotChanged() { return new SimpleAuditExpression( alias, new ModifiedFlagPropertyName( propertyNameGetter ), false, "=" ); }
Create restrictions, projections and specify order for a property of an audited entity. @author Adam Warski (adam at warski dot org) @author Michal Skowronek (mskowr at o2 dot pl) @author Chris Cranford
hasNotChanged
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditProperty.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditProperty.java
Apache-2.0
public AuditCriterion le(T value) { return new SimpleAuditExpression( alias, propertyNameGetter, value, "<=" ); }
Apply a "less than or equal" constraint
le
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditProperty.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditProperty.java
Apache-2.0
public AuditCriterion ge(T value) { return new SimpleAuditExpression( alias, propertyNameGetter, value, ">=" ); }
Apply a "greater than or equal" constraint
ge
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditProperty.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditProperty.java
Apache-2.0
public AuditCriterion eqProperty(String otherPropertyName) { /* * We provide alias as otherAlias rather than null, because this seems the intuitive use case. * E.g. if the user calls AuditEntity.property( "alias", "prop" ).eqProperty( "otherProp" ) * it is assumed that the otherProp is on the same entity as ...
Apply an "equal" constraint to another property
eqProperty
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditProperty.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditProperty.java
Apache-2.0
public AuditCriterion eqProperty(String otherAlias, String otherPropertyName) { return new PropertyAuditExpression( alias, propertyNameGetter, otherAlias, otherPropertyName, "=" ); }
Apply an "equal" constraint to another property @param otherAlias the alias of the entity which owns the other property.
eqProperty
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditProperty.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditProperty.java
Apache-2.0
public AuditCriterion neProperty(String otherPropertyName) { /* * We provide alias as otherAlias rather than null, because this seems the intuitive use case. * E.g. if the user calls AuditEntity.property( "alias", "prop" ).neProperty( "otherProp" ) * it is assumed that the otherProp is on the same entity as ...
Apply a "not equal" constraint to another property
neProperty
java
hibernate/hibernate-orm
hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditProperty.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditProperty.java
Apache-2.0