public abstract class JdbcWorkspace extends Object implements IFeatureWorkspace
| Modifier and Type | Field and Description |
|---|---|
protected Connection |
connection |
protected boolean |
inTransaction |
protected org.slf4j.Logger |
log |
protected Map |
options |
protected String |
password |
protected int |
poolInitialSize |
protected int |
poolMaxActive |
protected int |
poolMaxWait |
protected int |
poolMinIdle |
protected boolean |
poolTestOnBorrow |
protected String |
poolValidationQuery |
protected int |
queryFetchSize |
protected int |
queryTimeout |
protected String |
url |
protected String |
userName |
protected IWorkspaceFactory |
workspaceFactory |
| Modifier | Constructor and Description |
|---|---|
protected |
JdbcWorkspace(IWorkspaceFactory workspaceFactory,
Connection connection,
String url,
String userName,
Map options) |
protected |
JdbcWorkspace(IWorkspaceFactory workspaceFactory,
String url,
String userName,
String password,
Map options) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateFeatureClass, createFeatureDataset, createGroupDataset, createMosaicDataset, createTable, createTableView, datasetExist, excuteQuerySql, excuteQuerySql, getDatasetNames, getDatasets, getDatasets, openFeatureClass, openFeatureDataset, openGeoDataset, openGroupDataset, openMosaicDataset, openTable, openTableView, synchronize, synchronizeDatasetprotected final org.slf4j.Logger log
protected int poolMaxActive
protected int poolMaxWait
protected int poolInitialSize
protected int poolMinIdle
protected boolean poolTestOnBorrow
protected String poolValidationQuery
protected IWorkspaceFactory workspaceFactory
protected String userName
protected String password
protected String url
protected Map options
protected Connection connection
protected boolean inTransaction
protected int queryTimeout
protected int queryFetchSize
protected JdbcWorkspace(IWorkspaceFactory workspaceFactory, String url, String userName, String password, Map options)
protected JdbcWorkspace(IWorkspaceFactory workspaceFactory, Connection connection, String url, String userName, Map options)
public Connection getConnection()
protected Connection createConnection()
public abstract String getDriverClassName()
public abstract String getJdbcUrl()
public String getUrl()
public String getUserName()
protected String getConnectOptionsStr()
public int getQueryTimeout()
public void setQueryTimeout(int queryTimeout)
public int getQueryFetchSize()
public void setQueryFetchSize(int queryFetchSize)
public String getConnectionString()
IFeatureWorkspacegetConnectionString in interface IFeatureWorkspacepublic IWorkspaceFactory getWorkspaceFactory()
IFeatureWorkspacegetWorkspaceFactory in interface IFeatureWorkspacepublic boolean getOpened()
IFeatureWorkspacegetOpened in interface IFeatureWorkspacepublic boolean open()
IFeatureWorkspaceopen in interface IFeatureWorkspaceprotected void afterConnected()
public void close()
IFeatureWorkspaceclose in interface IFeatureWorkspacepublic IFeatureWorkspace clone()
IFeatureWorkspaceclone in interface IFeatureWorkspaceclone in class Objectpublic boolean getInTransaction()
IFeatureWorkspacegetInTransaction in interface IFeatureWorkspacepublic void beginTransaction()
IFeatureWorkspacebeginTransaction in interface IFeatureWorkspacepublic void commitTransaction()
IFeatureWorkspacecommitTransaction in interface IFeatureWorkspacepublic void rollbackTransaction()
IFeatureWorkspacerollbackTransaction in interface IFeatureWorkspacepublic int excuteSql(String sql)
IFeatureWorkspaceexcuteSql in interface IFeatureWorkspacepublic int excuteSql(String sql, Object... args)
IFeatureWorkspaceexcuteSql in interface IFeatureWorkspacesql - 查询语句args - 参数列表public Object queryScalar(String sql, Object... args)
IFeatureWorkspacequeryScalar in interface IFeatureWorkspacesql - 查询语句args - 参数列表public Map<String,Object> queryOne(String sql, Object... args)
IFeatureWorkspacequeryOne in interface IFeatureWorkspacesql - 查询语句args - 参数列表public List<Map<String,Object>> queryList(String sql, Object... args)
IFeatureWorkspacequeryList in interface IFeatureWorkspacesql - 查询语句args - 参数列表public boolean dataExist(String sql, Object... args)
IFeatureWorkspacedataExist in interface IFeatureWorkspacesql - 查询语句args - 参数列表public Timestamp getServerDate()
public void closeObject(AutoCloseable autoCloseable)
public FieldType convertFieldType(int colType)
public byte[] blobToBytes(Blob blob) throws SQLException, IOException
SQLExceptionIOExceptionpublic abstract String getWhereClause(ITable table, IQueryFilter filter)
Copyright © 2025. All rights reserved.