it.geosolutions.geoserver.rest.encoder.datastore
Class GSPostGISDatastoreEncoder

java.lang.Object
  extended by it.geosolutions.geoserver.rest.encoder.utils.XmlElement
      extended by it.geosolutions.geoserver.rest.encoder.utils.PropertyXMLEncoder
          extended by it.geosolutions.geoserver.rest.encoder.GSAbstractStoreEncoder
              extended by it.geosolutions.geoserver.rest.encoder.datastore.GSAbstractDatastoreEncoder
                  extended by it.geosolutions.geoserver.rest.encoder.datastore.GSPostGISDatastoreEncoder

public class GSPostGISDatastoreEncoder
extends GSAbstractDatastoreEncoder

Encoder for a datastore.

Author:
Eric Grosso, ETj, Carlo Cancellieri - carlo.cancellieri@geo-solutions.it, Oscar Fonts

Constructor Summary
GSPostGISDatastoreEncoder(String name)
           
 
Method Summary
protected  String getValidType()
          The type of the implementing datastore.
 void setConnectionTimeout(int seconds)
           
 void setDatabase(String database)
           
 void setDatabaseType(String dbtype)
           
 void setExposePrimaryKeys(boolean exposePrimaryKeys)
           
 void setFetchSize(int fetchSize)
           
 void setHost(String host)
           
 void setJndiReferenceName(String jndiReferenceName)
           
 void setLooseBBox(boolean looseBBox)
           
 void setMaxConnections(int maxConnections)
           
 void setMaxOpenPreparedStatements(int maxOpenPreparedStatements)
           
 void setMinConnections(int minConnections)
           
 void setNamespace(String namespace)
           
 void setPassword(String password)
           
 void setPort(int port)
           
 void setPreparedStatements(boolean preparedStatements)
           
 void setPrimaryKeyMetadataTable(String primaryKeyMetadataTable)
           
 void setSchema(String schema)
           
 void setUser(String user)
           
 void setValidateConnections(boolean validateConnections)
           
 
Methods inherited from class it.geosolutions.geoserver.rest.encoder.GSAbstractStoreEncoder
ensureValidName, ensureValidType, getDescription, getEnabled, getName, getStoreType, getType, setDescription, setEnabled, setName, setType
 
Methods inherited from class it.geosolutions.geoserver.rest.encoder.utils.PropertyXMLEncoder
add, get, get, set
 
Methods inherited from class it.geosolutions.geoserver.rest.encoder.utils.XmlElement
add, addContent, getRoot, isEmpty, remove, set, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GSPostGISDatastoreEncoder

public GSPostGISDatastoreEncoder(String name)
Parameters:
name - DataStore name
Method Detail

setNamespace

public void setNamespace(String namespace)

setHost

public void setHost(String host)

setPort

public void setPort(int port)

setDatabase

public void setDatabase(String database)

setSchema

public void setSchema(String schema)

setUser

public void setUser(String user)

setPassword

public void setPassword(String password)

setDatabaseType

public void setDatabaseType(String dbtype)

setJndiReferenceName

public void setJndiReferenceName(String jndiReferenceName)

setExposePrimaryKeys

public void setExposePrimaryKeys(boolean exposePrimaryKeys)

setMaxConnections

public void setMaxConnections(int maxConnections)

setMinConnections

public void setMinConnections(int minConnections)

setFetchSize

public void setFetchSize(int fetchSize)

setConnectionTimeout

public void setConnectionTimeout(int seconds)

setValidateConnections

public void setValidateConnections(boolean validateConnections)

setPrimaryKeyMetadataTable

public void setPrimaryKeyMetadataTable(String primaryKeyMetadataTable)

setLooseBBox

public void setLooseBBox(boolean looseBBox)

setPreparedStatements

public void setPreparedStatements(boolean preparedStatements)

setMaxOpenPreparedStatements

public void setMaxOpenPreparedStatements(int maxOpenPreparedStatements)

getValidType

protected String getValidType()
Description copied from class: GSAbstractDatastoreEncoder
The type of the implementing datastore.

Specified by:
getValidType in class GSAbstractDatastoreEncoder
Returns:


Copyright © 2007-2013 GeoSolutions. All Rights Reserved.