/** * Process a <code>field-result</code> node. */ private boolean startFieldResult(Attributes attrs) throws SAXException { String fieldName = attrs.getValue("name"); String columnName = attrs.getValue("column"); QueryResultMapping.PCResult parent = (QueryResultMapping.PCResult) currentElement(); parent.addMapping(fieldName, columnName); return true; }
/** * Start processing <code>entity-result</code> node. * Pushes the {@link QueryResultMapping.PCResult} * onto the stack as current element. */ private boolean startEntityResult(Attributes attrs) throws SAXException { Class entityClass = classForName(attrs.getValue("entity-class")); String discriminator = attrs.getValue("discriminator-column"); QueryResultMapping parent = (QueryResultMapping) currentElement(); QueryResultMapping.PCResult result = parent.addPCResult(entityClass); if (!StringUtils.isEmpty(discriminator)) result.addMapping(result.DISCRIMINATOR, discriminator); pushElement(result); return true; }
/** * Process a <code>field-result</code> node. */ private boolean startFieldResult(Attributes attrs) throws SAXException { String fieldName = attrs.getValue("name"); String columnName = DBIdentifier.newColumn(attrs.getValue("column"), delimit()).getName(); QueryResultMapping.PCResult parent = (QueryResultMapping.PCResult) currentElement(); parent.addMapping(fieldName, columnName); return true; }
(entity.entityClass()); if (!StringUtil.isEmpty(entity.discriminatorColumn())) entityResult.addMapping(entityResult.DISCRIMINATOR, entity.discriminatorColumn()); entityResult.addMapping(field.name(), sColName.getName());
(entity.entityClass()); if (!StringUtil.isEmpty(entity.discriminatorColumn())) entityResult.addMapping(entityResult.DISCRIMINATOR, entity.discriminatorColumn()); entityResult.addMapping(field.name(), sColName.getName());
(entity.entityClass()); if (!StringUtils.isEmpty(entity.discriminatorColumn())) entityResult.addMapping(entityResult.DISCRIMINATOR, entity.discriminatorColumn()); entityResult.addMapping(field.name(), sColName.getName());
(entity.entityClass()); if (!StringUtils.isEmpty(entity.discriminatorColumn())) entityResult.addMapping(entityResult.DISCRIMINATOR, entity.discriminatorColumn()); entityResult.addMapping(field.name(), field.column());
/** * Start processing <code>entity-result</code> node. * Pushes the {@link QueryResultMapping.PCResult} * onto the stack as current element. */ private boolean startEntityResult(Attributes attrs) throws SAXException { Class<?> entityClass = classForName(attrs.getValue("entity-class")); String discriminator = DBIdentifier.newColumn(attrs.getValue("discriminator-column"), delimit()).getName(); QueryResultMapping parent = (QueryResultMapping) currentElement(); QueryResultMapping.PCResult result = parent.addPCResult(entityClass); if (!StringUtils.isEmpty(discriminator)) result.addMapping(PCResult.DISCRIMINATOR, discriminator); pushElement(result); return true; }
/** * Start processing <code>entity-result</code> node. * Pushes the {@link QueryResultMapping.PCResult} * onto the stack as current element. */ private boolean startEntityResult(Attributes attrs) throws SAXException { Class<?> entityClass = classForName(attrs.getValue("entity-class")); String discriminator = DBIdentifier.newColumn(attrs.getValue("discriminator-column"), delimit()).getName(); QueryResultMapping parent = (QueryResultMapping) currentElement(); QueryResultMapping.PCResult result = parent.addPCResult(entityClass); if (!StringUtil.isEmpty(discriminator)) result.addMapping(PCResult.DISCRIMINATOR, discriminator); pushElement(result); return true; }
/** * Start processing <code>entity-result</code> node. * Pushes the {@link QueryResultMapping.PCResult} * onto the stack as current element. */ private boolean startEntityResult(Attributes attrs) throws SAXException { Class<?> entityClass = classForName(attrs.getValue("entity-class")); String discriminator = DBIdentifier.newColumn(attrs.getValue("discriminator-column"), delimit()).getName(); QueryResultMapping parent = (QueryResultMapping) currentElement(); QueryResultMapping.PCResult result = parent.addPCResult(entityClass); if (!StringUtil.isEmpty(discriminator)) result.addMapping(PCResult.DISCRIMINATOR, discriminator); pushElement(result); return true; }
/** * Process a <code>field-result</code> node. */ private boolean startFieldResult(Attributes attrs) throws SAXException { String fieldName = attrs.getValue("name"); String columnName = DBIdentifier.newColumn(attrs.getValue("column"), delimit()).getName(); QueryResultMapping.PCResult parent = (QueryResultMapping.PCResult) currentElement(); parent.addMapping(fieldName, columnName); return true; }
/** * Process a <code>field-result</code> node. */ private boolean startFieldResult(Attributes attrs) throws SAXException { String fieldName = attrs.getValue("name"); String columnName = DBIdentifier.newColumn(attrs.getValue("column"), delimit()).getName(); QueryResultMapping.PCResult parent = (QueryResultMapping.PCResult) currentElement(); parent.addMapping(fieldName, columnName); return true; }