svn-gvsig-desktop / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / layers / FLyrAnnotation.java @ 6532
History | View | Annotate | Download (15.7 KB)
1 |
package com.iver.cit.gvsig.fmap.layers; |
---|---|
2 |
|
3 |
import java.awt.Color; |
4 |
import java.awt.Font; |
5 |
import java.awt.Graphics2D; |
6 |
import java.awt.geom.Point2D; |
7 |
import java.awt.geom.Rectangle2D; |
8 |
import java.awt.image.BufferedImage; |
9 |
import java.io.File; |
10 |
import java.io.IOException; |
11 |
import java.util.ArrayList; |
12 |
|
13 |
import org.cresques.cts.ICoordTrans; |
14 |
import org.cresques.cts.IProjection; |
15 |
|
16 |
import com.hardcode.driverManager.Driver; |
17 |
import com.hardcode.driverManager.DriverLoadException; |
18 |
import com.hardcode.gdbms.engine.instruction.FieldNotFoundException; |
19 |
import com.hardcode.gdbms.engine.values.DoubleValue; |
20 |
import com.hardcode.gdbms.engine.values.IntValue; |
21 |
import com.hardcode.gdbms.engine.values.NullValue; |
22 |
import com.hardcode.gdbms.engine.values.NumericValue; |
23 |
import com.hardcode.gdbms.engine.values.StringValue; |
24 |
import com.hardcode.gdbms.engine.values.Value; |
25 |
import com.hardcode.gdbms.engine.values.ValueFactory; |
26 |
import com.iver.cit.gvsig.fmap.DriverException; |
27 |
import com.iver.cit.gvsig.fmap.ViewPort; |
28 |
import com.iver.cit.gvsig.fmap.core.IGeometry; |
29 |
import com.iver.cit.gvsig.fmap.core.v02.FConstant; |
30 |
import com.iver.cit.gvsig.fmap.core.v02.FLabel; |
31 |
import com.iver.cit.gvsig.fmap.core.v02.FSymbol; |
32 |
import com.iver.cit.gvsig.fmap.crs.CRSFactory; |
33 |
import com.iver.cit.gvsig.fmap.drivers.BoundedShapes; |
34 |
import com.iver.cit.gvsig.fmap.drivers.DriverAttributes; |
35 |
import com.iver.cit.gvsig.fmap.drivers.DriverIOException; |
36 |
import com.iver.cit.gvsig.fmap.drivers.VectorialDriver; |
37 |
import com.iver.cit.gvsig.fmap.edition.AnnotationEditableAdapter; |
38 |
import com.iver.cit.gvsig.fmap.operations.strategies.AnnotationStrategy; |
39 |
import com.iver.cit.gvsig.fmap.operations.strategies.Strategy; |
40 |
import com.iver.cit.gvsig.fmap.operations.strategies.StrategyManager; |
41 |
import com.iver.cit.gvsig.fmap.operations.strategies.VisitException; |
42 |
import com.iver.cit.gvsig.fmap.rendering.VectorialUniqueValueLegend; |
43 |
import com.iver.cit.gvsig.fmap.spatialindex.QuadtreeJts; |
44 |
import com.iver.utiles.XMLEntity; |
45 |
import com.iver.utiles.swing.threads.Cancellable; |
46 |
|
47 |
/**
|
48 |
* DOCUMENT ME!
|
49 |
*
|
50 |
* @author Vicente Caballero Navarro
|
51 |
*/
|
52 |
public class FLyrAnnotation extends FLyrVect { |
53 |
private MappingAnnotation mapping = null; |
54 |
|
55 |
private ArrayList m_labels; |
56 |
|
57 |
private int indexEditing = -1; |
58 |
|
59 |
private boolean inPixels; |
60 |
private VectorialUniqueValueLegend vuvl=new VectorialUniqueValueLegend(); |
61 |
private Strategy strategy=null; |
62 |
/**
|
63 |
* Crea un nuevo FLyrAnnotation.
|
64 |
*/
|
65 |
public FLyrAnnotation() {
|
66 |
super();
|
67 |
} |
68 |
|
69 |
/**
|
70 |
* DOCUMENT ME!
|
71 |
*
|
72 |
* @param mapping
|
73 |
* DOCUMENT ME!
|
74 |
*/
|
75 |
public void setMapping(MappingAnnotation mapping) { |
76 |
this.mapping = mapping;
|
77 |
try {
|
78 |
setLegend(); |
79 |
createLabels(); |
80 |
} catch (DriverException e) {
|
81 |
e.printStackTrace(); |
82 |
} |
83 |
} |
84 |
|
85 |
/**
|
86 |
* DOCUMENT ME!
|
87 |
*
|
88 |
* @return DOCUMENT ME!
|
89 |
*/
|
90 |
public MappingAnnotation getMapping() {
|
91 |
return mapping;
|
92 |
} |
93 |
|
94 |
/**
|
95 |
* @see com.iver.cit.gvsig.fmap.layers.LayerOperations#draw(java.awt.image.BufferedImage,
|
96 |
* java.awt.Graphics2D, com.iver.cit.gvsig.fmap.ViewPort)
|
97 |
*/
|
98 |
public void draw(BufferedImage image, Graphics2D g, ViewPort viewPort, |
99 |
Cancellable cancel, double scale) throws DriverException { |
100 |
if (isWithinScale(scale)) {
|
101 |
// Las que solo tienen etiquetado sin pintar el shape,
|
102 |
// no pasamos por ellas
|
103 |
boolean bDrawShapes = true; |
104 |
|
105 |
if (bDrawShapes) {
|
106 |
if (strategy == null){ |
107 |
strategy = (AnnotationStrategy) StrategyManager |
108 |
.getStrategy(this);
|
109 |
} |
110 |
try {
|
111 |
g.setColor(Color.black);
|
112 |
strategy.draw(image, g, viewPort, cancel); |
113 |
if (getISpatialIndex()==null) { |
114 |
createSpatialIndex(); |
115 |
} |
116 |
} catch (DriverException e) {
|
117 |
this.setVisible(false); |
118 |
this.setActive(false); |
119 |
throw e;
|
120 |
} |
121 |
} |
122 |
|
123 |
if (getVirtualLayers() != null) { |
124 |
getVirtualLayers().draw(image, g, viewPort, cancel, scale); |
125 |
} |
126 |
} |
127 |
} |
128 |
|
129 |
/**
|
130 |
* @see com.iver.cit.gvsig.fmap.layers.LayerOperations#getFullExtent()
|
131 |
*/
|
132 |
public Rectangle2D getFullExtent() throws DriverException { |
133 |
try {
|
134 |
Rectangle2D rAux;
|
135 |
|
136 |
// logger.debug("source.start()");
|
137 |
getSource().start(); |
138 |
rAux = getSource().getFullExtent(); |
139 |
|
140 |
// logger.debug("source.stop()");
|
141 |
getSource().stop(); |
142 |
|
143 |
// Si existe reproyecci?n, reproyectar el extent
|
144 |
ICoordTrans ct = getCoordTrans(); |
145 |
|
146 |
if (ct != null) { |
147 |
Point2D pt1 = new Point2D.Double(rAux.getMinX(), rAux.getMinY()); |
148 |
Point2D pt2 = new Point2D.Double(rAux.getMaxX(), rAux.getMaxY()); |
149 |
pt1 = ct.convert(pt1, null);
|
150 |
pt2 = ct.convert(pt2, null);
|
151 |
rAux = new Rectangle2D.Double(); |
152 |
rAux.setFrameFromDiagonal(pt1, pt2); |
153 |
} |
154 |
|
155 |
return rAux;
|
156 |
} catch (DriverIOException e) {
|
157 |
throw new DriverException(e); |
158 |
} |
159 |
} |
160 |
|
161 |
/**
|
162 |
* @see com.iver.cit.gvsig.fmap.layers.FLayer#print(java.awt.Graphics2D,
|
163 |
* com.iver.cit.gvsig.fmap.ViewPort,
|
164 |
* com.iver.utiles.swing.threads.Cancellable)
|
165 |
*/
|
166 |
public void print(Graphics2D g, ViewPort viewPort, Cancellable cancel, |
167 |
double scale) throws DriverException { |
168 |
if (isVisible() && isWithinScale(scale)) {
|
169 |
Strategy strategy = StrategyManager.getStrategy(this);
|
170 |
strategy.print(g, viewPort, cancel); |
171 |
} |
172 |
} |
173 |
|
174 |
/*
|
175 |
* (non-Javadoc)
|
176 |
*
|
177 |
* @see com.iver.cit.gvsig.fmap.layers.layerOperations.RandomVectorialData#queryByRect(java.awt.geom.Rectangle2D)
|
178 |
*/
|
179 |
public FBitSet queryByRect(Rectangle2D rect) throws DriverException { |
180 |
Strategy s = StrategyManager.getStrategy(this);
|
181 |
|
182 |
return s.queryByRect(rect);
|
183 |
} |
184 |
|
185 |
/**
|
186 |
* DOCUMENT ME!
|
187 |
*
|
188 |
* @param p
|
189 |
* DOCUMENT ME!
|
190 |
* @param tolerance
|
191 |
* DOCUMENT ME!
|
192 |
*
|
193 |
* @return DOCUMENT ME!
|
194 |
*
|
195 |
* @throws DriverException
|
196 |
* DOCUMENT ME!
|
197 |
*/
|
198 |
public FBitSet queryByPoint(Point2D p, double tolerance) |
199 |
throws DriverException {
|
200 |
Strategy s = StrategyManager.getStrategy(this);
|
201 |
|
202 |
return s.queryByPoint(p, tolerance);
|
203 |
} |
204 |
|
205 |
/**
|
206 |
* DOCUMENT ME!
|
207 |
*
|
208 |
* @param g
|
209 |
* DOCUMENT ME!
|
210 |
* @param relationship
|
211 |
* DOCUMENT ME!
|
212 |
*
|
213 |
* @return DOCUMENT ME!
|
214 |
*
|
215 |
* @throws DriverException
|
216 |
* DOCUMENT ME!
|
217 |
* @throws VisitException
|
218 |
* DOCUMENT ME!
|
219 |
*/
|
220 |
public FBitSet queryByShape(IGeometry g, int relationship) |
221 |
throws DriverException, VisitException {
|
222 |
Strategy s = StrategyManager.getStrategy(this);
|
223 |
|
224 |
return s.queryByShape(g, relationship);
|
225 |
} |
226 |
|
227 |
/**
|
228 |
* DOCUMENT ME!
|
229 |
*
|
230 |
* @return DOCUMENT ME!
|
231 |
*
|
232 |
* @throws XMLException
|
233 |
*
|
234 |
* @see com.iver.cit.gvsig.fmap.layers.FLayer#getProperties()
|
235 |
*/
|
236 |
public XMLEntity getXMLEntity() throws XMLException { |
237 |
XMLEntity xml = super.getXMLEntity();
|
238 |
xml.addChild(mapping.getXMLEntity()); |
239 |
xml.putProperty("isInPixels", isInPixels());
|
240 |
|
241 |
return xml;
|
242 |
} |
243 |
|
244 |
/**
|
245 |
* @see com.iver.cit.gvsig.fmap.layers.FLyrDefault#setXMLEntity(com.iver.utiles.XMLEntity)
|
246 |
*/
|
247 |
public void setXMLEntity(XMLEntity xml) throws XMLException { |
248 |
mapping = MappingAnnotation.createFromXML(xml.getChild(2));//getIntArrayProperty("mapping"); |
249 |
setInPixels(xml.getBooleanProperty("isInPixels"));
|
250 |
|
251 |
IProjection proj = null;
|
252 |
|
253 |
if (xml.contains("proj")) { |
254 |
proj = CRSFactory.getCRS(xml.getStringProperty("proj"));
|
255 |
} |
256 |
|
257 |
VectorialFileAdapter adapter = new VectorialFileAdapter(new File(xml |
258 |
.getStringProperty("file")));
|
259 |
Driver d;
|
260 |
|
261 |
try {
|
262 |
d = LayerFactory.getDM().getDriver( |
263 |
xml.getStringProperty("driverName"));
|
264 |
} catch (DriverLoadException e1) {
|
265 |
throw new XMLException(e1); |
266 |
} |
267 |
|
268 |
adapter.setDriver((VectorialDriver) d); |
269 |
// TODO Meter esto dentro de la comprobaci?n de si hay memoria
|
270 |
if (false) { |
271 |
} else {
|
272 |
setSource(adapter); |
273 |
setProjection(proj); |
274 |
} |
275 |
|
276 |
// Le asignamos tambi?n una legenda por defecto acorde con
|
277 |
// el tipo de shape que tenga. Tampoco s? si es aqu? el
|
278 |
// sitio adecuado, pero en fin....
|
279 |
/*
|
280 |
* if (d instanceof WithDefaultLegend) { WithDefaultLegend aux =
|
281 |
* (WithDefaultLegend) d; adapter.start(); setLegend((VectorialLegend)
|
282 |
* aux.getDefaultLegend()); adapter.stop(); } else {
|
283 |
* setLegend(LegendFactory.createSingleSymbolLegend(getShapeType())); }
|
284 |
*/
|
285 |
|
286 |
super.setXMLEntity(xml);
|
287 |
try {
|
288 |
createLabels(); |
289 |
} catch (DriverException e) {
|
290 |
// TODO Auto-generated catch block
|
291 |
e.printStackTrace(); |
292 |
} |
293 |
} |
294 |
|
295 |
/**
|
296 |
* Esto tiene el fallo de que obligas a una etiqueta por entidad, para poder
|
297 |
* evitar esto, una posible soluci?n ser?a que un FLabel pudiera ser una
|
298 |
* colecci?n de FLabel (Patr?n Composite)
|
299 |
*
|
300 |
* @param lyrVect
|
301 |
* @throws DriverException
|
302 |
*/
|
303 |
public void createLabels() throws DriverException { |
304 |
SelectableDataSource ds = getRecordset(); |
305 |
FSymbol symbol; |
306 |
try {
|
307 |
ReadableVectorial adapter = getSource(); |
308 |
adapter.start(); |
309 |
ds.start(); |
310 |
int sc;
|
311 |
// El mapping[0] es el text
|
312 |
int fieldId = mapping.getColumnText();
|
313 |
// El mapping[1] es el ?ngulo
|
314 |
int idFieldRotationText = mapping.getColumnRotate();
|
315 |
// El mapping[2] es el color
|
316 |
int idFieldColorText = mapping.getColumnColor();
|
317 |
// El mapping[3] es el alto
|
318 |
int idFieldHeightText = mapping.getColumnHeight();
|
319 |
// El mapping[4] es el tipo de fuente
|
320 |
int idFieldTypeFontText = mapping.getColumnTypeFont();
|
321 |
// El mapping[5] es el estilo de fuente
|
322 |
int idFieldStyleFontText = mapping.getColumnStyleFont();
|
323 |
|
324 |
sc = (int) ds.getRowCount();
|
325 |
m_labels = new ArrayList(sc); |
326 |
DriverAttributes attr = adapter.getDriverAttributes(); |
327 |
boolean bMustClone = false; |
328 |
if (attr != null) { |
329 |
if (attr.isLoadedInMemory()) {
|
330 |
bMustClone = attr.isLoadedInMemory(); |
331 |
} |
332 |
} |
333 |
ICoordTrans ct = getCoordTrans(); |
334 |
for (int i = 0; i < sc; i++) { |
335 |
IGeometry geom = adapter.getShape(i); |
336 |
|
337 |
if (geom == null) { |
338 |
m_labels.add(null);
|
339 |
continue;
|
340 |
} |
341 |
if (ct != null) { |
342 |
if (bMustClone)
|
343 |
geom = geom.cloneGeometry(); |
344 |
geom.reProject(ct); |
345 |
} |
346 |
|
347 |
// TODO: El m?todo contenedor (createLabelLayer) debe recoger
|
348 |
// los par?metros de posicionamiento y de allowDuplicates
|
349 |
// if (i >= 328)
|
350 |
// System.out.println("i= " + i + " " + val.toString());
|
351 |
//ArrayList values=new ArrayList(4);
|
352 |
String t=new String(); |
353 |
Value val = ds.getFieldValue(i, fieldId); |
354 |
t=val.toString(); |
355 |
//values.add(val);
|
356 |
if (idFieldColorText!=-1){ |
357 |
Value valColor=ds.getFieldValue(i,idFieldColorText); |
358 |
t=t.concat(valColor.toString()); |
359 |
//values.add(valColor);
|
360 |
} |
361 |
if (idFieldTypeFontText!=-1){ |
362 |
Value valTypeFont=ds.getFieldValue(i,idFieldTypeFontText); |
363 |
t=t.concat(valTypeFont.toString()); |
364 |
//values.add(valTypeFont);
|
365 |
} |
366 |
|
367 |
if (idFieldStyleFontText!=-1){ |
368 |
Value valStyleFont=ds.getFieldValue(i,idFieldStyleFontText); |
369 |
t=t.concat(valStyleFont.toString()); |
370 |
//values.add(valStyleFont);
|
371 |
} |
372 |
//Value total=ValueFactory.createValue((Value[])values.toArray(new Value[0]));
|
373 |
Value total=ValueFactory.createValue(t); |
374 |
if ((val instanceof NullValue) || (val == null)) { |
375 |
m_labels.add(null);
|
376 |
continue;
|
377 |
} |
378 |
FLabel[] lbls = geom.createLabels(0, true); |
379 |
for (int j = 0; j < lbls.length; j++) { |
380 |
if (lbls[j] != null) { |
381 |
lbls[j].setString(val.toString()); |
382 |
if (idFieldRotationText != -1) { |
383 |
DoubleValue rotation = (DoubleValue) ds |
384 |
.getFieldValue(i, idFieldRotationText); |
385 |
lbls[j].setRotation(rotation.getValue()); |
386 |
} else {
|
387 |
lbls[j].setRotation(getLegend().getDefaultSymbol() |
388 |
.getRotation()); |
389 |
} |
390 |
|
391 |
float height;
|
392 |
if (idFieldHeightText != -1) { |
393 |
NumericValue h = (NumericValue) ds |
394 |
.getFieldValue(i, idFieldHeightText); |
395 |
height=h.floatValue(); |
396 |
lbls[j].setHeight(height); |
397 |
} else {
|
398 |
height=getLegend().getDefaultSymbol() |
399 |
.getFontSize(); |
400 |
lbls[j].setHeight(height); |
401 |
} |
402 |
|
403 |
|
404 |
|
405 |
if (vuvl.getSymbolByValue(total)==null){ |
406 |
Color color;
|
407 |
if (idFieldColorText != -1) { |
408 |
DoubleValue c = (DoubleValue) ds.getFieldValue( |
409 |
i, idFieldColorText); |
410 |
color=new Color((int) c.getValue()); |
411 |
} else {
|
412 |
color=getLegend().getDefaultSymbol() |
413 |
.getFontColor(); |
414 |
} |
415 |
String typeFont;
|
416 |
if (idFieldTypeFontText != -1) { |
417 |
StringValue tf = (StringValue) ds |
418 |
.getFieldValue(i, idFieldTypeFontText); |
419 |
typeFont=tf.getValue(); |
420 |
} else {
|
421 |
typeFont=getLegend().getDefaultSymbol() |
422 |
.getFont().getFontName(); |
423 |
} |
424 |
int style;
|
425 |
if (idFieldStyleFontText != -1) { |
426 |
IntValue sf = (IntValue) ds |
427 |
.getFieldValue(i, idFieldStyleFontText); |
428 |
style=sf.getValue(); |
429 |
} else {
|
430 |
style=getLegend().getDefaultSymbol() |
431 |
.getFont().getStyle(); |
432 |
} |
433 |
symbol=new FSymbol(FConstant.SYMBOL_TYPE_TEXT);
|
434 |
symbol.setFontSizeInPixels(isInPixels()); |
435 |
symbol.setFont(new Font(typeFont,style,(int)height)); |
436 |
symbol.setDescription(lbls[j].getString()); |
437 |
symbol.setFontColor(color); |
438 |
vuvl.addSymbol(total,symbol); |
439 |
} |
440 |
|
441 |
} |
442 |
m_labels.add(lbls[j]); |
443 |
|
444 |
} |
445 |
} |
446 |
|
447 |
ds.stop(); |
448 |
adapter.stop(); |
449 |
} catch (DriverIOException e) {
|
450 |
e.printStackTrace(); |
451 |
throw new DriverException(e); |
452 |
} catch (com.hardcode.gdbms.engine.data.driver.DriverException e) {
|
453 |
e.printStackTrace(); |
454 |
throw new DriverException(e); |
455 |
} |
456 |
|
457 |
} |
458 |
|
459 |
public FLabel getLabel(int numReg) { |
460 |
if (m_labels == null || numReg == -1) |
461 |
return null; |
462 |
if (getSource() instanceof AnnotationEditableAdapter){ |
463 |
AnnotationEditableAdapter aea=((AnnotationEditableAdapter)getSource()); |
464 |
return aea.getLabel(numReg,false); |
465 |
} else
|
466 |
return (FLabel)m_labels.get(numReg);
|
467 |
} |
468 |
|
469 |
/*
|
470 |
* (non-Javadoc)
|
471 |
*
|
472 |
* @see com.iver.cit.gvsig.fmap.layers.layerOperations.RandomVectorialData#createIndex()
|
473 |
*/
|
474 |
public void createSpatialIndex() { |
475 |
// FJP: ESTO HABR? QUE CAMBIARLO. PARA LAS CAPAS SECUENCIALES, TENDREMOS
|
476 |
// QUE ACCEDER CON UN WHILE NEXT. (O mejorar lo de los FeatureVisitor
|
477 |
// para que acepten recorrer sin geometria, solo con rectangulos.
|
478 |
|
479 |
//AZABALA: Como no tengo claro de donde se crean las capas de textos
|
480 |
//el ?ndice espacial creado seguir? siendo el Quadtree en memoria
|
481 |
//de JTS (QuadtreeJts es un adapter a nuestra api de indices)
|
482 |
spatialIndex = new QuadtreeJts();
|
483 |
ReadableVectorial va = getSource(); |
484 |
ICoordTrans ct = getCoordTrans(); |
485 |
BoundedShapes shapeBounds = (BoundedShapes) va.getDriver(); |
486 |
try {
|
487 |
va.start(); |
488 |
|
489 |
for (int i = 0; i < va.getShapeCount(); i++) { |
490 |
Rectangle2D r = null; |
491 |
FLabel label=getLabel(i); |
492 |
if (label != null) { |
493 |
r = label.getBoundBox(); |
494 |
} else {
|
495 |
r = shapeBounds.getShapeBounds(i); |
496 |
} |
497 |
// TODO: MIRAR COMO SE TRAGAR?A ESTO LO DE LAS REPROYECCIONES
|
498 |
if (ct != null) { |
499 |
r = ct.convert(r); |
500 |
} |
501 |
if (r != null) { |
502 |
// Coordinate c1 = new Coordinate(r.getMinX(), r.getMinY());
|
503 |
// Coordinate c2 = new Coordinate(r.getMaxX(), r.getMaxY());
|
504 |
// Envelope env = new Envelope(c1, c2);
|
505 |
// spatialIndex.insert(env, new Integer(i));
|
506 |
spatialIndex.insert(r, i); |
507 |
} |
508 |
} // for
|
509 |
va.stop(); |
510 |
} catch (DriverIOException e) {
|
511 |
e.printStackTrace(); |
512 |
} catch (IOException e) { |
513 |
e.printStackTrace(); |
514 |
} |
515 |
} |
516 |
|
517 |
public void setSelectedEditing() throws DriverException { |
518 |
FBitSet bitSet = getRecordset().getSelection(); |
519 |
if (bitSet.cardinality() == 0) |
520 |
return;
|
521 |
indexEditing = bitSet.nextSetBit(0);
|
522 |
} |
523 |
|
524 |
public void setInPixels(boolean b) { |
525 |
inPixels = b; |
526 |
} |
527 |
|
528 |
public boolean isInPixels() { |
529 |
return inPixels;
|
530 |
} |
531 |
|
532 |
public void setInEdition(int i) { |
533 |
indexEditing = i; |
534 |
|
535 |
} |
536 |
|
537 |
public int getInEdition() { |
538 |
return indexEditing;
|
539 |
} |
540 |
|
541 |
public ArrayList getLabels() { |
542 |
return m_labels;
|
543 |
} |
544 |
|
545 |
|
546 |
public void setLegend() { |
547 |
try {
|
548 |
getSource().getRecordset().start(); |
549 |
vuvl.setFieldName(getSource().getRecordset().getFieldName(mapping.getColumnText())); |
550 |
vuvl.setDefaultSymbol(new FSymbol(FConstant.SYMBOL_TYPE_TEXT));
|
551 |
setLegend(vuvl); |
552 |
getSource().getRecordset().stop(); |
553 |
} catch (FieldNotFoundException e) {
|
554 |
e.printStackTrace(); |
555 |
} catch (DriverException e) {
|
556 |
e.printStackTrace(); |
557 |
} catch (DriverLoadException e) {
|
558 |
e.printStackTrace(); |
559 |
} catch (com.hardcode.gdbms.engine.data.driver.DriverException e) {
|
560 |
e.printStackTrace(); |
561 |
} |
562 |
|
563 |
} |
564 |
|
565 |
public Strategy getStrategy() {
|
566 |
return strategy;
|
567 |
} |
568 |
} |