Re: [Hibernate] Statistics toString()

2005-03-07 Thread Ryan Lynch
e null but wanted to be careful+  if(th is.cache != null) {+   buf.append(",ElementCountInMemory=").append(this.getElementCountInMemory())+.append(",ElementCountOnDisk=").append(this.getElementCountOnDisk())+.append(",SizeInMemory=").append(this.getSizeInMemory());+  }

[Hibernate] Statistics toString()

2005-03-04 Thread Ryan Lynch
I have managed to get the statistics mbean integrated into JBoss but I was disappointed that the individual statistics (Entity, Query, etc.) objects do not have a meaningful toString() which would allow the user to look at the results in the JBoss JMX HttpAdapter.  If I submit a patch would you guy