}
}
private ConfiguredObjectRecord loadConfiguredObject(final UUID id) throws AMQStoreException
{
ConfiguredObjectRecord result = null;
try
{
Connection conn = newAutoCommitConnection();
try
{
PreparedStatement stmt = conn.prepareStatement(FIND_CONFIGURED_OBJECT);
try
{
stmt.setString(1, id.toString());
ResultSet rs = stmt.executeQuery();
try
{
if (rs.next())
{
String type = rs.getString(1);
Blob blob = rs.getBlob(2);
String attributes = null;
if (blob != null)
{
attributes = blobToString(blob);
}
result = new ConfiguredObjectRecord(id, type, attributes);
}
}
finally
{
rs.close();