log.info( "Cannot update type: " + dynaClass + " as there are no primary keys to update" );
log.info( "Cannot delete type " + dynaClass + " as there are no primary keys" );
    public void delete(DynaBean dynaBean) throws SQLException {        Connection connection = borrowConnection();        PreparedStatement statement = null;        try {            SqlDynaClass dynaClass = getSqlDynaClass(dynaBean);            SqlDynaProperty[] primaryKeys = dynaClass.getPrimaryKeyProperties();            int size = primaryKeys.length;            if (size == 0) {                log.info( "Cannot update type: " + dynaClass + " as there are no primary keys to update" );                return;            }            String sql = createDeleteSql(dynaClass, primaryKeys);            if (log.isDebugEnabled()) {                log.debug( "About to execute SQL: " + sql );            }            statement = connection.prepareStatement( sql );            for ( int i = 0; i < size; i++ ) {                SqlDynaProperty primaryKey = primaryKeys[i];                setObject(statement, 1+i, dynaBean, primaryKey);            }            int count = statement.executeUpdate();            if ( count != 1 ) {                log.warn( "Attempted to delete a single row : " + dynaBean                    + " in table: " + dynaClass.getTableName()                    + " but changed: " + count + " row(s)"                );            }        }        finally {            closeStatement(statement);            returnConnection(connection);        }    }