Codota Logo
FeatureStoreTransaction.performInsert
Code IndexAdd Codota to your IDE (free)

How to use
performInsert
method
in
org.deegree.feature.persistence.FeatureStoreTransaction

Best Java code snippets using org.deegree.feature.persistence.FeatureStoreTransaction.performInsert (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: deegree/deegree3

private static void insert( FeatureStore fs, String datasetFile, GMLVersion gmlVersion, IDGenMode mode )
            throws XMLStreamException, FactoryConfigurationError, IOException, XMLParsingException,
            UnknownCRSException, FeatureStoreException {
  File f = new File( datasetFile );
  URL url = f.toURI().toURL();
  System.out.print( "- Reading dataset: '" + datasetFile + "'..." );
  GMLStreamReader gmlReader = GMLInputFactory.createGMLStreamReader( gmlVersion, url );
  gmlReader.setApplicationSchema( fs.getSchema() );
  FeatureCollection fc = gmlReader.readFeatureCollection();
  System.out.println( "done." );
  FeatureStoreTransaction ta = null;
  try {
    ta = fs.acquireTransaction();
    System.out.print( "- Inserting features..." );
    List<String> fids = ta.performInsert( fc, mode );
    System.out.println( "done." );
    for ( String fid : fids ) {
      System.out.println( "- Inserted: " + fid );
    }
    System.out.println( "\n- Insert succeeded (" + fids.size() + " features). Committing transaction." );
    ta.commit();
  } catch ( Exception e ) {
    e.printStackTrace();
    System.err.println( "Error performing insert: " + e.getMessage() );
    if ( ta != null ) {
      ta.rollback();
    }
  }
}
origin: deegree/deegree3

int fids = ta.performInsert( fc, USE_EXISTING ).size();
LOG.info( "Inserted " + fids + " features." );
ta.commit();
origin: deegree/deegree3

List<String> newFids = ta.performInsert( fc, mode );
for ( String newFid : newFids ) {
  inserted.add( newFid, insert.getHandle() );
org.deegree.feature.persistenceFeatureStoreTransactionperformInsert

Javadoc

Inserts the given FeatureCollection into the FeatureStore (including subfeatures).

Popular methods of FeatureStoreTransaction

  • commit
    Makes the changes persistent that have been performed in this transaction and releases the transacti
  • rollback
    Aborts the changes that have been performed in this transaction and releases the transaction instanc
  • performDelete
    Deletes the features from the FeatureStore that are matched by the given filter.
  • performReplace
    Performs a replace operation against the FeatureStore.
  • performUpdate
    Performs an update operation against the FeatureStore.

Popular in Java

  • Making http requests using okhttp
  • setScale (BigDecimal)
  • findViewById (Activity)
  • addToBackStack (FragmentTransaction)
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now