public class FetchFeatureTypeOperation extends AbstractConnectionOperation
conn, helper, logger
Constructor and Description |
---|
FetchFeatureTypeOperation(JDBCHelper helper) |
FetchFeatureTypeOperation(JDBCHelper helper,
EditableFeatureType featureType,
String defaultGeometryColumn,
IProjection crs) |
FetchFeatureTypeOperation(JDBCHelper helper,
EditableFeatureType featureType,
String dbname,
String schema,
String table,
List<String> primaryKeys,
String defaultGeometryColumn,
IProjection crs) |
continueTransactionAllowed, createSQLBuilder, getConnection, needTransaction, perform_operation, perform
public FetchFeatureTypeOperation(JDBCHelper helper)
public FetchFeatureTypeOperation(JDBCHelper helper, EditableFeatureType featureType, String defaultGeometryColumn, IProjection crs)
public FetchFeatureTypeOperation(JDBCHelper helper, EditableFeatureType featureType, String dbname, String schema, String table, List<String> primaryKeys, String defaultGeometryColumn, IProjection crs)
public final Object perform(Connection conn) throws DataException
DataException
protected String getDatabase()
protected String getSchema()
protected String getTablename()
public void fetch(EditableFeatureType featureType, Connection conn, String database, String schema, String table, List<String> pks, String defaultGeometryColumn, IProjection crs) throws DataException
DataException
public void fetchFeatureTypeFromMetadata(Connection conn, ResultSetMetaData rsMetadata) throws SQLException
SQLException
protected void fetchFeatureTypeFromMetadata(Connection conn, ResultSetMetaData rsMetadata, List<String> pks) throws SQLException
SQLException
protected boolean isInPrimaryKeys(List<String> pks, EditableFeatureAttributeDescriptor attr)
protected List<String> getPrimaryKeysFromMetadata(Connection conn, String catalog, String schema, String table) throws SQLException
SQLException
protected List<String> getPrimaryKeysFromInformationSchema(Connection conn, String catalog, String schema, String table) throws SQLException
SQLException
protected EditableFeatureAttributeDescriptor getAttributeFromMetadata(EditableFeatureType type, Connection conn, ResultSetMetaData rsMetadata, int colIndex) throws SQLException
SQLException
protected int getDataTypeFromMetadata(ResultSetMetaData rsMetadata, int colIndex) throws SQLException
SQLException
protected void fetchGeometryTypeAndSRS(EditableFeatureAttributeDescriptor attr, ResultSetMetaData rsMetadata, int colIndex)
attr
- rsMetadata
- colIndex
-