br.com.anteros.spring.resource.messages.AnterosSpringMessages Maven / Gradle / Ivy
package br.com.anteros.spring.resource.messages;
import java.text.MessageFormat;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
import java.util.Vector;
import br.com.anteros.core.resource.messages.AnterosBundle;
public class AnterosSpringMessages implements AnterosBundle {
private final Map messages = new HashMap();
public AnterosSpringMessages() {
messages.put("ToStringVisitor.operation_unknown", "Opera\u00e7\u00e3o desconhecida com estes argumentos {0}");
messages.put("NamedParameterParserResult.toString", "SQL-> {0} Par\u00e2metros: {1}");
messages.put("LoggerProvider.not_configured",
"N\u00e3o foi poss\u00edvel encontrar a propriedade para o LoggerProvider no XML de configura\u00e7\u00e3o\u002e Erro: {0}");
messages.put("EntityCache.entity", "Entidade {0}");
messages.put("CommandSQL.toString", "sql= {0} , par\u00e2metros={1} , nomeTabelaAlvo={2}");
messages.put("MySQLDialect.sequenceException", "{0} n\u00e3o suporta sequences.");
messages.put("H2Dialect.showSql", "Sql-> {0} ## {1}");
messages.put("H2Dialect.showSql1", " Input parameters-> ## {0}");
messages.put("H2Dialect.showSql2", " Output parameters-> ## {0}");
messages.put("EventSetDescriptor.IntrospectionException", "M\u00e9todo {0} deve ter argumento {1}");
messages.put("EventSetDescriptor.IntrospectionException2", "M\u00e9todo {0} n\u00e3o encontrado na classe {1}");
messages.put("IndexedPropertyDescriptor.IntrospectionException", "M\u00e9todo {0} n\u00e3o encontrado");
messages.put("SQLSessionFactoryUtils.NoSessionBoundToThread", "No Anteros SQLSession bound to thread, and configuration does not allow creation of non-transactional one here.");
}
@Override
public String getMessage(String key) {
return messages.get(key);
}
@Override
public String getMessage(String key, Object... parameters) {
return MessageFormat.format(getMessage(key), parameters);
}
@Override
public Enumeration getKeys() {
return new Vector(messages.keySet()).elements();
}
}