/** * Start processing <code>sql-result-set-mapping</code> node. * Pushes the {@link QueryResultMapping} onto the stack as current element. */ private boolean startSQLResultSetMapping(Attributes attrs) { String name = attrs.getValue("name"); Log log = getLog(); if (log.isTraceEnabled()) log.trace(_loc.get("parse-sqlrsmapping", name)); MappingRepository repos = (MappingRepository) getRepository(); QueryResultMapping result = repos.getCachedQueryResultMapping (null, name); if (result != null && log.isWarnEnabled()) log.warn(_loc.get("override-sqlrsmapping", name, currentLocation())); result = repos.addQueryResultMapping(null, name); result.setListingIndex(_resultIdx++); addComments(result); Object cur = currentElement(); Object scope = (cur instanceof ClassMetaData) ? ((ClassMetaData) cur).getDescribedType() : null; result.setSource(getSourceFile(), scope, SourceTracker.SRC_XML); Locator locator = getLocation().getLocator(); if (locator != null) { result.setLineNumber(locator.getLineNumber()); result.setColNumber(locator.getColumnNumber()); } pushElement(result); return true; }
/** * Start processing <code>sql-result-set-mapping</code> node. * Pushes the {@link QueryResultMapping} onto the stack as current element. */ private boolean startSQLResultSetMapping(Attributes attrs) { String name = attrs.getValue("name"); Log log = getLog(); if (log.isTraceEnabled()) log.trace(_loc.get("parse-sqlrsmapping", name)); MappingRepository repos = (MappingRepository) getRepository(); QueryResultMapping result = repos.getCachedQueryResultMapping (null, name); if (result != null && log.isWarnEnabled()) log.warn(_loc.get("override-sqlrsmapping", name, currentLocation())); result = repos.addQueryResultMapping(null, name); result.setListingIndex(_resultIdx++); addComments(result); Object cur = currentElement(); Object scope = (cur instanceof ClassMetaData) ? ((ClassMetaData) cur).getDescribedType() : null; result.setSource(getSourceFile(), scope, SourceTracker.SRC_XML); Locator locator = getLocation().getLocator(); if (locator != null) { result.setLineNumber(locator.getLineNumber()); result.setColNumber(locator.getColumnNumber()); } pushElement(result); return true; }
/** * Start processing <code>sql-result-set-mapping</code> node. * Pushes the {@link QueryResultMapping} onto the stack as current element. */ private boolean startSQLResultSetMapping(Attributes attrs) { String name = attrs.getValue("name"); Log log = getLog(); if (log.isTraceEnabled()) log.trace(_loc.get("parse-sqlrsmapping", name)); MappingRepository repos = (MappingRepository) getRepository(); QueryResultMapping result = repos.getCachedQueryResultMapping (null, name); if (result != null && log.isWarnEnabled()) log.warn(_loc.get("override-sqlrsmapping", name, currentLocation())); result = repos.addQueryResultMapping(null, name); result.setListingIndex(_resultIdx++); addComments(result); Object cur = currentElement(); Object scope = (cur instanceof ClassMetaData) ? ((ClassMetaData) cur).getDescribedType() : null; result.setSource(getSourceFile(), scope, SourceTracker.SRC_XML); Locator locator = getLocation().getLocator(); if (locator != null) { result.setLineNumber(locator.getLineNumber()); result.setColNumber(locator.getColumnNumber()); } pushElement(result); return true; }
/** * Start processing <code>sql-result-set-mapping</code> node. * Pushes the {@link QueryResultMapping} onto the stack as current element. */ private boolean startSQLResultSetMapping(Attributes attrs) { String name = attrs.getValue("name"); Log log = getLog(); if (log.isTraceEnabled()) log.trace(_loc.get("parse-sqlrsmapping", name)); MappingRepository repos = (MappingRepository) getRepository(); QueryResultMapping result = repos.getCachedQueryResultMapping (null, name); if (result != null && log.isWarnEnabled()) log.warn(_loc.get("override-sqlrsmapping", name, currentLocation())); result = repos.addQueryResultMapping(null, name); result.setListingIndex(_resultIdx++); addComments(result); Object cur = currentElement(); Object scope = (cur instanceof ClassMetaData) ? ((ClassMetaData) cur).getDescribedType() : null; result.setSource(getSourceFile(), scope, result.SRC_XML); pushElement(result); return true; }
result.setSource(getSourceFile(), cm.getDescribedType(), result.SRC_ANNOTATIONS);
result.setSource(getSourceFile(), cm.getDescribedType(), result.SRC_ANNOTATIONS);
result.setSource(getSourceFile(), cm.getDescribedType(), result.SRC_ANNOTATIONS);
result.setSource(getSourceFile(), cm.getDescribedType(), result.SRC_ANNOTATIONS);