for (QueryHint hint : query.hints()) { prepareQueryHints(constantPool, queryHints, hint);
QueryHintDefinition hints = new QueryHintDefinition( queryAnn.hints() ); String queryName = queryAnn.query();
QueryHint[] hints = queryAnn.hints(); String queryName = queryAnn.query(); if ( !BinderHelper.isDefault( resultSetMapping ) ) {
private NamedQueryInfo(NamedNativeQuery theQuery) { mName = theQuery.name(); mQuery = theQuery.query(); mResultMapping = theQuery.resultSetMapping(); mResultClass = theQuery.resultClass(); mHints = Arrays.asList(theQuery.hints()); }
/** * @param locator * the locator * @param annotation * the annotation * * @since 2.0.0 */ public NamedNativeQueryMetadataImpl(AbstractLocator locator, NamedNativeQuery annotation) { super(); this.locator = locator; this.name = annotation.name(); this.query = annotation.query(); this.resultClass = annotation.resultClass().getName(); this.resultSetMapping = annotation.resultSetMapping(); for (final QueryHint hint : annotation.hints()) { this.hints.put(hint.name(), hint.value()); } }
/** * @param locator * the locator * @param annotation * the annotation * * @since 2.0.0 */ public NamedNativeQueryMetadataImpl(AbstractLocator locator, NamedNativeQuery annotation) { super(); this.locator = locator; this.name = annotation.name(); this.query = annotation.query(); this.resultClass = annotation.resultClass().getName(); this.resultSetMapping = annotation.resultSetMapping(); for (final QueryHint hint : annotation.hints()) { this.hints.put(hint.name(), hint.value()); } }
/** * @param locator * the locator * @param annotation * the annotation * * @since 2.0.0 */ public NamedNativeQueryMetadataImpl(AbstractLocator locator, NamedNativeQuery annotation) { super(); this.locator = locator; this.name = annotation.name(); this.query = annotation.query(); this.resultClass = annotation.resultClass().getName(); this.resultSetMapping = annotation.resultSetMapping(); for (final QueryHint hint : annotation.hints()) { this.hints.put(hint.name(), hint.value()); } }
/** * INTERNAL: */ public MetadataNamedNativeQuery(NamedNativeQuery namedNativeQuery, Class javaClass) { // Set the location where we found this query. setLocation(javaClass.getName()); // Process the name setName(namedNativeQuery.name()); // Process the query string. setEJBQLString(namedNativeQuery.query()); // Process the query hints. for (QueryHint hint : namedNativeQuery.hints()) { addHint(new MetadataQueryHint(hint.name(), hint.value())); } // Process the result class. setResultClass(namedNativeQuery.resultClass()); // Process the result set mapping. setResultSetMapping(namedNativeQuery.resultSetMapping()); }
QueryHint[] hints = queryAnn.hints(); String queryName = queryAnn.query(); if ( ! BinderHelper.isDefault( resultSetMapping ) ) {
QueryHint[] hints = queryAnn.hints(); String queryName = queryAnn.query(); if ( !BinderHelper.isEmptyAnnotationValue( resultSetMapping ) ) {
QueryHint[] hints = queryAnn.hints(); String queryName = queryAnn.query(); if ( !BinderHelper.isEmptyAnnotationValue( resultSetMapping ) ) {
for (QueryHint hint : query.hints()) meta.addHint(hint.name(), hint.value());
for (QueryHint hint : query.hints()) meta.addHint(hint.name(), hint.value());
for (QueryHint hint : query.hints()) meta.addHint(hint.name(), hint.value());
for (QueryHint hint : query.hints()) meta.addHint(hint.name(), hint.value());
final String sqlString = queryAnn.query(); QueryHintDefinition hints = new QueryHintDefinition( queryAnn.hints() ); if ( hints.getBoolean( sqlString, QueryHints.CALLABLE ) ) { LOG.warnNativeQueryAsCallable();