Merge pull request #82 from eblondel/master-81-DatastoreEncoder-EstimatedExtends-fix
#81 - master - fix PostGIS / OracleNG Estimated extends param
This commit is contained in:
commit
a3a8715b03
@ -44,6 +44,7 @@ public class GSOracleNGDatastoreEncoder extends GSAbstractDatastoreEncoder {
|
||||
static final boolean DEFAULT_LOOSE_BBOX = true;
|
||||
static final boolean DEFAULT_PREPARED_STATEMENTS = true;
|
||||
static final int DEFAULT_MAX_OPEN_PREPARED_STATEMENTS = 50;
|
||||
static final boolean DEFAULT_ESTIMATED_EXTENDS = false;
|
||||
|
||||
/**
|
||||
* Create an {@value #TYPE} datastore with default connection parameters,
|
||||
@ -80,6 +81,7 @@ public class GSOracleNGDatastoreEncoder extends GSAbstractDatastoreEncoder {
|
||||
setLooseBBox(DEFAULT_LOOSE_BBOX);
|
||||
setPreparedStatements(DEFAULT_PREPARED_STATEMENTS);
|
||||
setMaxOpenPreparedStatements(DEFAULT_MAX_OPEN_PREPARED_STATEMENTS);
|
||||
setEstimatedExtends(DEFAULT_ESTIMATED_EXTENDS);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -171,6 +173,10 @@ public class GSOracleNGDatastoreEncoder extends GSAbstractDatastoreEncoder {
|
||||
connectionParameters.set("Max open prepared statements", Integer.toString(maxOpenPreparedStatements));
|
||||
}
|
||||
|
||||
public void setEstimatedExtends(boolean estimatedExtends){
|
||||
connectionParameters.set("Estimated extends", Boolean.toString(estimatedExtends));
|
||||
}
|
||||
|
||||
/**
|
||||
* Check database validity.
|
||||
*
|
||||
|
||||
@ -43,6 +43,7 @@ public class GSPostGISDatastoreEncoder extends GSAbstractDatastoreEncoder {
|
||||
static final boolean DEFAULT_LOOSE_BBOX = true;
|
||||
static final boolean DEFAULT_PREPARED_STATEMENTS = false;
|
||||
static final int DEFAULT_MAX_OPEN_PREPARED_STATEMENTS = 50;
|
||||
static final boolean DEFAULT_ESTIMATED_EXTENDS = false;
|
||||
|
||||
/**
|
||||
*
|
||||
@ -63,6 +64,7 @@ public class GSPostGISDatastoreEncoder extends GSAbstractDatastoreEncoder {
|
||||
setLooseBBox(DEFAULT_LOOSE_BBOX);
|
||||
setPreparedStatements(DEFAULT_PREPARED_STATEMENTS);
|
||||
setMaxOpenPreparedStatements(DEFAULT_MAX_OPEN_PREPARED_STATEMENTS);
|
||||
setEstimatedExtends(DEFAULT_ESTIMATED_EXTENDS);
|
||||
|
||||
}
|
||||
|
||||
@ -142,6 +144,10 @@ public class GSPostGISDatastoreEncoder extends GSAbstractDatastoreEncoder {
|
||||
connectionParameters.set("Max open prepared statements", Integer.toString(maxOpenPreparedStatements));
|
||||
}
|
||||
|
||||
public void setEstimatedExtends(boolean estimatedExtends){
|
||||
connectionParameters.set("Estimated extends", Boolean.toString(estimatedExtends));
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@value #TYPE}
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user