Line 1... |
Line 1... |
1 |
/*
|
1 |
/*
|
2 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
2 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
3 |
*
|
3 |
*
|
4 |
* Copyright 2011 OpenConcerto, by ILM Informatique. All rights reserved.
|
4 |
* Copyright 2011-2019 OpenConcerto, by ILM Informatique. All rights reserved.
|
5 |
*
|
5 |
*
|
6 |
* The contents of this file are subject to the terms of the GNU General Public License Version 3
|
6 |
* The contents of this file are subject to the terms of the GNU General Public License Version 3
|
7 |
* only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
|
7 |
* only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
|
8 |
* copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
|
8 |
* copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
|
9 |
* language governing permissions and limitations under the License.
|
9 |
* language governing permissions and limitations under the License.
|
Line 21... |
Line 21... |
21 |
import org.openconcerto.utils.SleepingQueue.RunningState;
|
21 |
import org.openconcerto.utils.SleepingQueue.RunningState;
|
22 |
import org.openconcerto.utils.Value;
|
22 |
import org.openconcerto.utils.Value;
|
23 |
|
23 |
|
24 |
import java.sql.SQLException;
|
24 |
import java.sql.SQLException;
|
25 |
import java.util.ArrayList;
|
25 |
import java.util.ArrayList;
|
- |
|
26 |
import java.util.Collection;
|
26 |
import java.util.List;
|
27 |
import java.util.List;
|
27 |
import java.util.concurrent.Future;
|
28 |
import java.util.concurrent.Future;
|
28 |
import java.util.concurrent.TimeUnit;
|
29 |
import java.util.concurrent.TimeUnit;
|
29 |
|
30 |
|
30 |
import javax.swing.SwingUtilities;
|
31 |
import javax.swing.SwingUtilities;
|
Line 73... |
Line 74... |
73 |
public final SQLTableModelSourceOnline getParent() {
|
74 |
public final SQLTableModelSourceOnline getParent() {
|
74 |
return this.parent;
|
75 |
return this.parent;
|
75 |
}
|
76 |
}
|
76 |
|
77 |
|
77 |
@Override
|
78 |
@Override
|
78 |
public List<ListSQLLine> getAll() {
|
79 |
public List<ListSQLLine> get(Collection<? extends Number> ids) {
|
79 |
final List<SQLRowValues> values = this.getUpdateQueueReq().getValues();
|
80 |
final List<SQLRowValues> values = this.getUpdateQueueReq().getValuesFromIDs(ids);
|
80 |
final List<ListSQLLine> res = new ArrayList<ListSQLLine>(values.size());
|
81 |
final List<ListSQLLine> res = new ArrayList<ListSQLLine>(values.size());
|
81 |
for (final SQLRowValues v : values) {
|
82 |
for (final SQLRowValues v : values) {
|
82 |
final ListSQLLine newLine = createLine(v);
|
83 |
final ListSQLLine newLine = createLine(v);
|
83 |
if (newLine != null)
|
84 |
if (newLine != null)
|
84 |
res.add(newLine);
|
85 |
res.add(newLine);
|