private void endFKColumnName() { _columnNamesList.add(currentText()); }
/** * Parse temporal. */ private void endTemporal() { String temp = currentText(); if (!StringUtils.isEmpty(temp)) _temporal = Enum.valueOf(TemporalType.class, temp); }
private void endFKColumnName() { _columnNamesList.add(currentText()); }
private void endFKColumnName() { _columnNamesList.add(currentText()); }
/** * Parse temporal. */ private void endTemporal() { String temp = currentText(); if (!StringUtils.isEmpty(temp)) _temporal = Enum.valueOf(TemporalType.class, temp); }
/** * Parse temporal. */ private void endTemporal() { String temp = currentText(); if (!StringUtil.isEmpty(temp)) _temporal = Enum.valueOf(TemporalType.class, temp); }
/** * Parse temporal. */ private void endTemporal() { String temp = currentText(); if (!StringUtil.isEmpty(temp)) _temporal = Enum.valueOf(TemporalType.class, temp); }
/** * Parse enumerated. */ private void endEnumerated() { String text = currentText(); if (StringUtils.isEmpty(text)) return; EnumType type = Enum.valueOf(EnumType.class, text); FieldMapping fm = (FieldMapping) currentElement(); String strat = EnumValueHandler.class.getName() + "(StoreOrdinal=" + String.valueOf(type == EnumType.ORDINAL) + ")"; fm.getValueInfo().setStrategy(strat); }
/** * Parse map-key-enumerated. */ private void endMapKeyEnumerated() { String text = currentText(); if (StringUtils.isEmpty(text)) return; EnumType type = Enum.valueOf(EnumType.class, text); FieldMapping fm = (FieldMapping) currentElement(); String strat = EnumValueHandler.class.getName() + "(StoreOrdinal=" + String.valueOf(type == EnumType.ORDINAL) + ")"; fm.getKeyMapping().getValueInfo().setStrategy(strat); }
/** * Parse map-key-enumerated. */ private void endMapKeyEnumerated() { String text = currentText(); if (StringUtil.isEmpty(text)) return; EnumType type = Enum.valueOf(EnumType.class, text); FieldMapping fm = (FieldMapping) currentElement(); String strat = EnumValueHandler.class.getName() + "(StoreOrdinal=" + String.valueOf(type == EnumType.ORDINAL) + ")"; fm.getKeyMapping().getValueInfo().setStrategy(strat); }
/** * Parse map-key-enumerated. */ private void endMapKeyEnumerated() { String text = currentText(); if (StringUtil.isEmpty(text)) return; EnumType type = Enum.valueOf(EnumType.class, text); FieldMapping fm = (FieldMapping) currentElement(); String strat = EnumValueHandler.class.getName() + "(StoreOrdinal=" + String.valueOf(type == EnumType.ORDINAL) + ")"; fm.getKeyMapping().getValueInfo().setStrategy(strat); }
private boolean endName() { String name = this.currentText(); if (StringUtils.isNotEmpty(name)) { Object current = currentElement(); if (current instanceof Unique) { Unique unq = (Unique)current; unq.setIdentifier(DBIdentifier.newConstraint(name, delimit())); } } return true; }
/** * Parse enumerated. */ private void endEnumerated() { String text = currentText(); if (StringUtils.isEmpty(text)) return; EnumType type = Enum.valueOf(EnumType.class, text); FieldMapping fm = (FieldMapping) currentElement(); String strat = EnumValueHandler.class.getName() + "(StoreOrdinal=" + String.valueOf(type == EnumType.ORDINAL) + ")"; if (fm.isElementCollection()) fm.getElementMapping().getValueInfo().setStrategy(strat); else fm.getValueInfo().setStrategy(strat); }
private boolean endName() { String name = this.currentText(); if (StringUtil.isNotEmpty(name)) { Object current = currentElement(); if (current instanceof Unique) { Unique unq = (Unique)current; unq.setIdentifier(DBIdentifier.newConstraint(name, delimit())); } } return true; }
private boolean endName() { String name = this.currentText(); if (StringUtil.isNotEmpty(name)) { Object current = currentElement(); if (current instanceof Unique) { Unique unq = (Unique)current; unq.setIdentifier(DBIdentifier.newConstraint(name, delimit())); } } return true; }
/** * Parse discriminator-value. */ private void endDiscriminatorValue() { String val = currentText(); if (StringUtils.isEmpty(val)) return; ClassMapping cm = (ClassMapping) currentElement(); cm.getDiscriminator().getMappingInfo().setValue(val); if (Modifier.isAbstract(cm.getDescribedType().getModifiers()) && getLog().isInfoEnabled()) { getLog().info( _loc.get("discriminator-on-abstract-class", cm .getDescribedType().getName())); } }
/** * Parse discriminator-value. */ private void endDiscriminatorValue() { String val = currentText(); if (StringUtil.isEmpty(val)) return; ClassMapping cm = (ClassMapping) currentElement(); cm.getDiscriminator().getMappingInfo().setValue(val); if (Modifier.isAbstract(cm.getDescribedType().getModifiers()) && getLog().isInfoEnabled()) { getLog().info( _loc.get("discriminator-on-abstract-class", cm .getDescribedType().getName())); } }
/** * Ends processing <column-name> tag by adding the column name in * the current Unique element that resides in the top of the stack. */ private boolean endColumnName() { Object current = currentElement(); if (current instanceof Unique) { Unique unique = (Unique) current; Column column = new Column(); column.setIdentifier(DBIdentifier.newColumn(this.currentText(), delimit())); unique.addColumn(column); return true; } return false; }
/** * Ends processing <column-name> tag by adding the column name in * the current Unique element that resides in the top of the stack. */ private boolean endColumnName() { Object current = currentElement(); if (current instanceof Unique) { Unique unique = (Unique) current; Column column = new Column(); column.setIdentifier(DBIdentifier.newColumn(this.currentText(), delimit())); unique.addColumn(column); return true; } return false; }
/** * Ends processing <column-name> tag by adding the column name in * the current Unique element that resides in the top of the stack. */ private boolean endColumnName() { Object current = currentElement(); if (current instanceof Unique) { Unique unique = (Unique) current; Column column = new Column(); column.setIdentifier(DBIdentifier.newColumn(this.currentText(), delimit())); unique.addColumn(column); return true; } return false; }