Tabnine Logo
TileMatrixSetDao.queryForEq
Code IndexAdd Tabnine to your IDE (free)

How to use
queryForEq
method
in
mil.nga.geopackage.tiles.matrixset.TileMatrixSetDao

Best Java code snippets using mil.nga.geopackage.tiles.matrixset.TileMatrixSetDao.queryForEq (Showing top 3 results out of 315)

origin: ngageoint/geopackage-android

/**
 * {@inheritDoc}
 */
@Override
public TileDao getTileDao(String tableName) {
  TileMatrixSetDao dao = getTileMatrixSetDao();
  List<TileMatrixSet> tileMatrixSetList;
  try {
    tileMatrixSetList = dao.queryForEq(TileMatrixSet.COLUMN_TABLE_NAME,
        tableName);
  } catch (SQLException e) {
    throw new GeoPackageException("Failed to retrieve "
        + TileDao.class.getSimpleName() + " for table name: "
        + tableName + ". Exception retrieving "
        + TileMatrixSet.class.getSimpleName() + ".", e);
  }
  if (tileMatrixSetList.isEmpty()) {
    throw new GeoPackageException(
        "No Tile Table exists for table name: " + tableName);
  } else if (tileMatrixSetList.size() > 1) {
    // This shouldn't happen with the table name primary key on tile
    // matrix set table
    throw new GeoPackageException("Unexpected state. More than one "
        + TileMatrixSet.class.getSimpleName()
        + " matched for table name: " + tableName + ", count: "
        + tileMatrixSetList.size());
  }
  return getTileDao(tileMatrixSetList.get(0));
}
origin: ngageoint/geopackage-java

/**
 * {@inheritDoc}
 */
@Override
public TileDao getTileDao(String tableName) {
  TileMatrixSetDao dao = getTileMatrixSetDao();
  List<TileMatrixSet> tileMatrixSetList;
  try {
    tileMatrixSetList = dao.queryForEq(TileMatrixSet.COLUMN_TABLE_NAME,
        tableName);
  } catch (SQLException e) {
    throw new GeoPackageException("Failed to retrieve "
        + TileDao.class.getSimpleName() + " for table name: "
        + tableName + ". Exception retrieving "
        + TileMatrixSet.class.getSimpleName() + ".", e);
  }
  if (tileMatrixSetList.isEmpty()) {
    throw new GeoPackageException(
        "No Tile Table exists for table name: " + tableName
            + ", Tile Tables: " + getTileTables());
  } else if (tileMatrixSetList.size() > 1) {
    // This shouldn't happen with the table name primary key on tile
    // matrix set table
    throw new GeoPackageException("Unexpected state. More than one "
        + TileMatrixSet.class.getSimpleName()
        + " matched for table name: " + tableName + ", count: "
        + tileMatrixSetList.size());
  }
  return getTileDao(tileMatrixSetList.get(0));
}
origin: ngageoint/geopackage-android

List<TileMatrixSet> queryTileMatrixSetList = dao.queryForEq(
    TileMatrixSet.COLUMN_SRS_ID, tileMatrixSet.getSrsId());
TestCase.assertNotNull(queryTileMatrixSetList);
mil.nga.geopackage.tiles.matrixsetTileMatrixSetDaoqueryForEq

Popular methods of TileMatrixSetDao

  • isTableExists
  • queryForId
  • create
  • update
  • delete
  • idExists
  • queryForAll
  • countOf
  • deleteBuilder
  • getTileTables
    Get all the tile table names
  • query
  • queryBuilder
  • query,
  • queryBuilder,
  • queryForFieldValues,
  • updateBuilder

Popular in Java

  • Reactive rest calls using spring rest template
  • startActivity (Activity)
  • getContentResolver (Context)
  • getExternalFilesDir (Context)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JTextField (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • Top 25 Plugins for Webstorm
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