FR [ 1984831 ] Add DB.close(POResultSet) convenient method

This commit is contained in:
teo_sarca 2008-06-05 17:40:40 +00:00
parent 19d2313752
commit 2abbe97cba
1 changed files with 11 additions and 0 deletions

View File

@ -49,6 +49,7 @@ import org.compiere.model.MRole;
import org.compiere.model.MSequence;
import org.compiere.model.MSystem;
import org.compiere.model.PO;
import org.compiere.model.POResultSet;
import org.compiere.process.SequenceCheck;
@ -1990,6 +1991,16 @@ public final class DB
close(st);
}
/**
* convenient method to close a {@link POResultSet}
* @param rs result set
* @see POResultSet#close()
*/
public static void close(POResultSet<?> rs) {
if (rs != null)
rs.close();
}
/** Quote */
private static final char QUOTE = '\'';