private int getLineNum() { int lineNum = 0; Locator loc = getLocation().getLocator(); if(loc != null ) { lineNum = loc.getLineNumber(); } return lineNum; }
private int getLineNum() { int lineNum = 0; Locator loc = getLocation().getLocator(); if(loc != null ) { lineNum = loc.getLineNumber(); } return lineNum; }
private int getLineNum() { int lineNum = 0; Locator loc = getLocation().getLocator(); if(loc != null ) { lineNum = loc.getLineNumber(); } return lineNum; }
private int getLineNum() { int lineNum = 0; Locator loc = getLocation().getLocator(); if(loc != null ) { lineNum = loc.getLineNumber(); } return lineNum; }
private void startTable(Attributes attrs) { _table = _schema.addTable(attrs.getValue("name")); _table.setSource(getSourceFile(), SourceTracker.SRC_XML); Locator locator = getLocation().getLocator(); if (locator != null) { _table.setLineNumber(locator.getLineNumber()); _table.setColNumber(locator.getColumnNumber()); } }
private void startTable(Attributes attrs) { _table = _schema.addTable(attrs.getValue("name")); _table.setSource(getSourceFile(), SourceTracker.SRC_XML); Locator locator = getLocation().getLocator(); if (locator != null) { _table.setLineNumber(locator.getLineNumber()); _table.setColNumber(locator.getColumnNumber()); } }
private void startTable(Attributes attrs) { _table = _schema.addTable(attrs.getValue("name")); _table.setSource(getSourceFile(), SourceTracker.SRC_XML); Locator locator = getLocation().getLocator(); if (locator != null) { _table.setLineNumber(locator.getLineNumber()); _table.setColNumber(locator.getColumnNumber()); } }
private void startTable(Attributes attrs) { _table = _schema.addTable(attrs.getValue("name")); _table.setSource(getSourceFile(), SourceTracker.SRC_XML); Locator locator = getLocation().getLocator(); if (locator != null) { _table.setLineNumber(locator.getLineNumber()); _table.setColNumber(locator.getColumnNumber()); } }
private void startSequence(Attributes attrs) { Sequence seq = _schema.addSequence(attrs.getValue("name")); Locator locator = getLocation().getLocator(); if (locator != null) { seq.setLineNumber(locator.getLineNumber()); seq.setColNumber(locator.getColumnNumber()); } seq.setSource(getSourceFile(), SourceTracker.SRC_XML); try { String val = attrs.getValue("initial-value"); if (val != null) seq.setInitialValue(Integer.parseInt(val)); val = attrs.getValue("increment"); if (val != null) seq.setIncrement(Integer.parseInt(val)); val = attrs.getValue("allocate"); if (val != null) seq.setAllocate(Integer.parseInt(val)); } catch (NumberFormatException nfe) { throwUserException(_loc.get("bad-seq-num", seq.getFullName())); } }
private void startSequence(Attributes attrs) { Sequence seq = _schema.addSequence(attrs.getValue("name")); Locator locator = getLocation().getLocator(); if (locator != null) { seq.setLineNumber(locator.getLineNumber()); seq.setColNumber(locator.getColumnNumber()); } seq.setSource(getSourceFile(), SourceTracker.SRC_XML); try { String val = attrs.getValue("initial-value"); if (val != null) seq.setInitialValue(Integer.parseInt(val)); val = attrs.getValue("increment"); if (val != null) seq.setIncrement(Integer.parseInt(val)); val = attrs.getValue("allocate"); if (val != null) seq.setAllocate(Integer.parseInt(val)); } catch (NumberFormatException nfe) { throwUserException(_loc.get("bad-seq-num", seq.getFullName())); } }
private void startSequence(Attributes attrs) { Sequence seq = _schema.addSequence(attrs.getValue("name")); Locator locator = getLocation().getLocator(); if (locator != null) { seq.setLineNumber(locator.getLineNumber()); seq.setColNumber(locator.getColumnNumber()); } seq.setSource(getSourceFile(), SourceTracker.SRC_XML); try { String val = attrs.getValue("initial-value"); if (val != null) seq.setInitialValue(Integer.parseInt(val)); val = attrs.getValue("increment"); if (val != null) seq.setIncrement(Integer.parseInt(val)); val = attrs.getValue("allocate"); if (val != null) seq.setAllocate(Integer.parseInt(val)); } catch (NumberFormatException nfe) { throwUserException(_loc.get("bad-seq-num", seq.getFullName())); } }
private void startSequence(Attributes attrs) { Sequence seq = _schema.addSequence(attrs.getValue("name")); Locator locator = getLocation().getLocator(); if (locator != null) { seq.setLineNumber(locator.getLineNumber()); seq.setColNumber(locator.getColumnNumber()); } seq.setSource(getSourceFile(), SourceTracker.SRC_XML); try { String val = attrs.getValue("initial-value"); if (val != null) seq.setInitialValue(Integer.parseInt(val)); val = attrs.getValue("increment"); if (val != null) seq.setIncrement(Integer.parseInt(val)); val = attrs.getValue("allocate"); if (val != null) seq.setAllocate(Integer.parseInt(val)); } catch (NumberFormatException nfe) { throwUserException(_loc.get("bad-seq-num", seq.getFullName())); } }
? ((ClassMetaData) cur).getDescribedType() : null; seq.setSource(getSourceFile(), scope, SourceTracker.SRC_XML); Locator locator = getLocation().getLocator(); if (locator != null) { seq.setLineNumber(locator.getLineNumber());
? ((ClassMetaData) cur).getDescribedType() : null; seq.setSource(getSourceFile(), scope, SourceTracker.SRC_XML); Locator locator = getLocation().getLocator(); if (locator != null) { seq.setLineNumber(locator.getLineNumber());
/** * 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; }
Locator locator = getLocation().getLocator(); meta.setSource(getSourceFile(), scope, SourceTracker.SRC_XML, locator == null ? "" : locator.getSystemId()); if (locator != null) {
meta.addHint("openjpa.FetchPlan.ReadLockMode", lmt); Locator locator = getLocation().getLocator(); if (locator != null) { meta.setLineNumber(locator.getLineNumber());
meta.addHint("openjpa.FetchPlan.ReadLockMode", lmt); Locator locator = getLocation().getLocator(); if (locator != null) { meta.setLineNumber(locator.getLineNumber());