Class FetchFeatureTypeOperation

java.lang.Object
org.gvsig.fmap.dal.store.jdbc2.spi.operations.AbstractConnectionOperation
org.gvsig.fmap.dal.store.jdbc2.spi.operations.FetchFeatureTypeOperation
All Implemented Interfaces:
ConnectionOperation

public class FetchFeatureTypeOperation extends AbstractConnectionOperation
  • Field Details

    • featureType

      protected final org.gvsig.fmap.dal.feature.EditableFeatureType featureType
    • table

      protected final OperationsFactory.TableReference table
    • primaryKeys

      protected final List<String> primaryKeys
    • defaultGeometryColumn

      protected final String defaultGeometryColumn
    • crs

      protected final org.gvsig.crs.projection.lib.Projection crs
    • geometryType

      protected final int geometryType
    • geometrySubtype

      protected final int geometrySubtype
    • indexesInformation

      protected Map<String,FetchFeatureTypeOperation.IndexInformation> indexesInformation
  • Constructor Details

    • FetchFeatureTypeOperation

      public FetchFeatureTypeOperation(JDBCHelper helper)
    • FetchFeatureTypeOperation

      public FetchFeatureTypeOperation(JDBCHelper helper, org.gvsig.fmap.dal.feature.EditableFeatureType featureType, String defaultGeometryColumn, org.gvsig.crs.projection.lib.Projection crs)
    • FetchFeatureTypeOperation

      public FetchFeatureTypeOperation(JDBCHelper helper, org.gvsig.fmap.dal.feature.EditableFeatureType featureType, OperationsFactory.TableReference table, List<String> primaryKeys, String defaultGeometryColumn, org.gvsig.crs.projection.lib.Projection crs, int geometryType, int geometrySubtype)
  • Method Details

    • perform

      public final Object perform(org.gvsig.fmap.dal.store.jdbc2.JDBCConnection conn) throws org.gvsig.fmap.dal.exception.DataException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • getTable

      protected OperationsFactory.TableReference getTable()
    • fetch

      public void fetch(org.gvsig.fmap.dal.store.jdbc2.JDBCConnection conn) throws org.gvsig.fmap.dal.exception.DataException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • getSQLToRetrieveMetadataOfTable

      public String getSQLToRetrieveMetadataOfTable()
    • fetchFeatureTypeFromMetadata

      public void fetchFeatureTypeFromMetadata(org.gvsig.fmap.dal.store.jdbc2.JDBCConnection conn, ResultSetMetaData rsMetadata) throws SQLException
      Throws:
      SQLException
    • fetchFeatureTypeFromMetadata

      protected void fetchFeatureTypeFromMetadata(org.gvsig.fmap.dal.store.jdbc2.JDBCConnection conn, ResultSetMetaData rsMetadata, List<String> pks) throws SQLException
      Throws:
      SQLException
    • isInPrimaryKeys

      protected boolean isInPrimaryKeys(List<String> pks, org.gvsig.fmap.dal.feature.EditableFeatureAttributeDescriptor attr)
    • getPrimaryKeysFromMetadata

      protected List<String> getPrimaryKeysFromMetadata(org.gvsig.fmap.dal.store.jdbc2.JDBCConnection conn, String catalog, String schema, String table) throws SQLException
      Throws:
      SQLException
    • getPrimaryKeysFromInformationSchema

      protected List<String> getPrimaryKeysFromInformationSchema(org.gvsig.fmap.dal.store.jdbc2.JDBCConnection conn) throws SQLException
      Throws:
      SQLException
    • getSQLToRetrievePrimaryKeysFromInformationSchema

      public String getSQLToRetrievePrimaryKeysFromInformationSchema() throws SQLException
      Throws:
      SQLException
    • getAttributeFromMetadata

      protected org.gvsig.fmap.dal.feature.EditableFeatureAttributeDescriptor getAttributeFromMetadata(org.gvsig.fmap.dal.feature.EditableFeatureType type, org.gvsig.fmap.dal.store.jdbc2.JDBCConnection conn, ResultSetMetaData rsMetadata, int colIndex) throws SQLException
      Throws:
      SQLException
    • getIndexesInformation

      protected Map<String,FetchFeatureTypeOperation.IndexInformation> getIndexesInformation(org.gvsig.fmap.dal.store.jdbc2.JDBCConnection conn) throws SQLException
      Throws:
      SQLException
    • getDataTypeFromMetadata

      protected int getDataTypeFromMetadata(ResultSetMetaData rsMetadata, int colIndex) throws SQLException
      Throws:
      SQLException
    • fetchGeometryTypeAndSRS

      protected void fetchGeometryTypeAndSRS(org.gvsig.fmap.dal.feature.EditableFeatureAttributeDescriptor attr, ResultSetMetaData rsMetadata, int colIndex)
      Inicializa el tipo, subtipo y SRS del attributo de tipo geometria.
      Parameters:
      attr -
      rsMetadata -
      colIndex -