else
{
if (org.jboss.jca.common.api.metadata.ds.v10.DataSource.Tag.forName(reader.getLocalName()) ==
org.jboss.jca.common.api.metadata.ds.v10.DataSource.Tag.UNKNOWN)
{
throw new ParserException(bundle.unexpectedEndTag(reader.getLocalName()));
}
}
break;
}
case START_ELEMENT : {
switch (org.jboss.jca.common.api.metadata.ds.v10.DataSource.Tag.forName(reader.getLocalName()))
{
case CONNECTION_PROPERTY : {
parseConfigProperty(connectionProperties, reader);
break;
}
case CONNECTION_URL : {
connectionUrl = elementAsString(reader);
break;
}
case DRIVER_CLASS : {
driverClass = elementAsString(reader);
break;
}
case DATASOURCE_CLASS : {
dataSourceClass = elementAsString(reader);
break;
}
case DRIVER : {
driver = elementAsString(reader);
break;
}
case POOL : {
pool = parsePool(reader);
break;
}
case NEW_CONNECTION_SQL : {
newConnectionSql = elementAsString(reader);
break;
}
case URL_DELIMITER : {
urlDelimiter = elementAsString(reader);
break;
}
case URL_SELECTOR_STRATEGY_CLASS_NAME : {
urlSelectorStrategyClassName = elementAsString(reader);
break;
}
case TRANSACTION_ISOLATION : {
String str = elementAsString(reader);
transactionIsolation = TransactionIsolation.forName(str);
if (transactionIsolation == null)
{
transactionIsolation = TransactionIsolation.customLevel(str);
}
break;
}
case SECURITY : {
securitySettings = parseDsSecurity(reader);
break;
}
case STATEMENT : {
statementSettings = parseStatementSettings(reader);
break;
}
case TIMEOUT : {
timeOutSettings = parseTimeOutSettings(reader);
break;
}
case VALIDATION : {
validationSettings = parseValidationSetting(reader);
break;
}
default :
throw new ParserException(bundle.unexpectedElement(reader.getLocalName()));
}
break;
}
}
}
throw new ParserException(bundle.unexpectedEndOfDocument());
}