/* (non-Javadoc)
  * @see net.ymate.platform.persistence.jdbc.support.IEntityRepository#delete(java.lang.Class, java.lang.Object)
  */
 public <T, PK> boolean delete(Class<T> t, PK pk) throws OperatorException, ConnectionException {
   ISession _session = JDBC.openSession(getDataSourceName());
   try {
     return (_session.delete(t, pk) > 0);
   } finally {
     _session.close();
   }
 }
 /* (non-Javadoc)
  * @see net.ymate.platform.persistence.jdbc.support.IEntityRepository#delete(java.lang.Object)
  */
 public <T> T delete(T entity) throws OperatorException, ConnectionException {
   ISession _session = JDBC.openSession(getDataSourceName());
   try {
     return _session.delete(entity);
   } finally {
     _session.close();
   }
 }