FR [ 1984831 ] Add DB.close(POResultSet) convenient method
This commit is contained in:
parent
19d2313752
commit
2abbe97cba
|
@ -49,6 +49,7 @@ import org.compiere.model.MRole;
|
||||||
import org.compiere.model.MSequence;
|
import org.compiere.model.MSequence;
|
||||||
import org.compiere.model.MSystem;
|
import org.compiere.model.MSystem;
|
||||||
import org.compiere.model.PO;
|
import org.compiere.model.PO;
|
||||||
|
import org.compiere.model.POResultSet;
|
||||||
import org.compiere.process.SequenceCheck;
|
import org.compiere.process.SequenceCheck;
|
||||||
|
|
||||||
|
|
||||||
|
@ -1990,6 +1991,16 @@ public final class DB
|
||||||
close(st);
|
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 */
|
/** Quote */
|
||||||
private static final char QUOTE = '\'';
|
private static final char QUOTE = '\'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue