congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ContentsDao.deleteCascade
Code IndexAdd Tabnine to your IDE (free)

How to use
deleteCascade
method
in
mil.nga.geopackage.core.contents.ContentsDao

Best Java code snippets using mil.nga.geopackage.core.contents.ContentsDao.deleteCascade (Showing top 8 results out of 315)

origin: mil.nga.geopackage/geopackage-core

/**
 * Delete the collection of Contents, cascading
 * 
 * @param contentsCollection
 *            contents collection
 * @return deleted count
 * @throws SQLException
 *             upon deletion error
 */
public int deleteCascade(Collection<Contents> contentsCollection)
    throws SQLException {
  return deleteCascade(contentsCollection, false);
}
origin: mil.nga.geopackage/geopackage-core

/**
 * Delete the Contents matching the prepared query, cascading
 * 
 * @param preparedDelete
 *            prepared delete query
 * @return deleted count
 * @throws SQLException
 *             upon deletion error
 */
public int deleteCascade(PreparedQuery<Contents> preparedDelete)
    throws SQLException {
  return deleteCascade(preparedDelete, false);
}
origin: mil.nga.geopackage/geopackage-core

/**
 * Delete the collection of Contents, cascading optionally including the
 * user table
 * 
 * @param contentsCollection
 *            contents collection
 * @param userTable
 *            true if a user table
 * @return deleted count
 * @throws SQLException
 *             upon deletion error
 */
public int deleteCascade(Collection<Contents> contentsCollection,
    boolean userTable) throws SQLException {
  int count = 0;
  if (contentsCollection != null) {
    for (Contents contents : contentsCollection) {
      count += deleteCascade(contents, userTable);
    }
  }
  return count;
}
origin: mil.nga.geopackage/geopackage-core

/**
 * Delete the Contents matching the prepared query, cascading optionally
 * including the user table
 * 
 * @param preparedDelete
 *            prepared delete query
 * @param userTable
 *            true if a user table
 * @return deleted count
 * @throws SQLException
 *             upon deletion error
 */
public int deleteCascade(PreparedQuery<Contents> preparedDelete,
    boolean userTable) throws SQLException {
  int count = 0;
  if (preparedDelete != null) {
    List<Contents> contentsList = query(preparedDelete);
    count = deleteCascade(contentsList, userTable);
  }
  return count;
}
origin: mil.nga.geopackage/geopackage-core

/**
 * Delete the Contents, cascading optionally including the user table
 * 
 * @param contents
 *            contents
 * @param userTable
 *            true if a user table
 * @return deleted count
 * @throws SQLException
 *             upon deletion error
 */
public int deleteCascade(Contents contents, boolean userTable)
    throws SQLException {
  int count = deleteCascade(contents);
  if (userTable) {
    dropTable(contents.getTableName());
  }
  return count;
}
origin: mil.nga.geopackage/geopackage-core

/**
 * Delete a Contents by id, cascading optionally including the user table
 * 
 * @param id
 *            id
 * @param userTable
 *            true if a user table
 * @return deleted count
 * @throws SQLException
 *             upon deletion error
 */
public int deleteByIdCascade(String id, boolean userTable)
    throws SQLException {
  int count = 0;
  if (id != null) {
    Contents contents = queryForId(id);
    if (contents != null) {
      count = deleteCascade(contents, userTable);
    } else if (userTable) {
      dropTable(id);
    }
  }
  return count;
}
origin: ngageoint/geopackage-android

  dao.deleteCascade(contents);
} else {
  dao.delete(contents);
    deleted = dao.deleteCascade(query);
  } else {
    DeleteBuilder<Contents, String> db = dao.deleteBuilder();
origin: mil.nga.geopackage/geopackage-core

if (!contentsCollection.isEmpty()) {
  ContentsDao dao = getContentsDao();
  dao.deleteCascade(contentsCollection);
mil.nga.geopackage.core.contentsContentsDaodeleteCascade

Javadoc

Delete the Contents matching the prepared query, cascading

Popular methods of ContentsDao

  • queryForId
  • create
    Verify optional tables have been created
  • update
  • delete
  • getTables
    Get table names by data type
  • isTableExists
  • query
  • queryForAll
  • queryForEq
  • countOf
  • deleteBuilder
  • deleteByIdCascade
    Delete a Contents by id, cascading optionally including the user table
  • deleteBuilder,
  • deleteByIdCascade,
  • deleteIdsCascade,
  • deleteTable,
  • dropTable,
  • getBoundingBox,
  • getContents,
  • getGeometryColumnsDao,
  • getTileMatrixDao

Popular in Java

  • Making http requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSystemService (Context)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now