ParseUtils.requireNoContent(reader);
}
private void parseMixedKeyedJdbcStore(XMLExtendedStreamReader reader, PersistenceConfigurationBuilder loadersBuilder)
throws XMLStreamException {
JdbcMixedStoreConfigurationBuilder builder = new JdbcMixedStoreConfigurationBuilder(loadersBuilder);
for (int i = 0; i < reader.getAttributeCount(); i++) {
String value = replaceProperties(reader.getAttributeValue(i));
AttributeJdbc attribute = AttributeJdbc.forName(reader.getAttributeLocalName(i));
switch (attribute) {
case KEY_TO_STRING_MAPPER:
builder.key2StringMapper(value);
break;
default:
Parser52.parseCommonStoreAttributes(reader, i, builder);
break;
}
}
while (reader.hasNext() && (reader.nextTag() != XMLStreamConstants.END_ELEMENT)) {
ElementJdbc element = ElementJdbc.forName(reader.getLocalName());
switch (element) {
case STRING_KEYED_TABLE: {
parseTable(reader, builder.stringTable());
break;
}
case BINARY_KEYED_TABLE: {
parseTable(reader, builder.binaryTable());
break;
}
default: {
parseCommonJdbcStoreElements(reader, element, builder);
break;