Tabnine Logo
AttributesTable
Code IndexAdd Tabnine to your IDE (free)

How to use
AttributesTable
in
mil.nga.geopackage.attributes

Best Java code snippets using mil.nga.geopackage.attributes.AttributesTable (Showing top 15 results out of 315)

origin: ngageoint/geopackage-java

/**
 * {@inheritDoc}
 */
@Override
protected AttributesTable createTable(String tableName,
    List<AttributesColumn> columnList) {
  return new AttributesTable(tableName, columnList);
}
origin: ngageoint/geopackage-android

/**
 * Constructor
 *
 * @param database     database
 * @param db           db connection
 * @param attributesDb attributes connection
 * @param table        attributes table
 */
public AttributesDao(String database, GeoPackageConnection db,
           AttributesConnection attributesDb, AttributesTable table) {
  super(database, db, attributesDb, table);
  this.attributesDb = attributesDb;
  if (table.getContents() == null) {
    throw new GeoPackageException(AttributesTable.class.getSimpleName()
        + " " + table.getTableName() + " has null "
        + Contents.class.getSimpleName());
  }
}
origin: mil.nga.geopackage/geopackage-core

AttributesTable table = new AttributesTable(tableName, columns);
  table.addUniqueConstraints(uniqueConstraints);
  table.setContents(contents);
origin: ngageoint/geopackage-android

    contents.getTableName());
final AttributesTable attributesTable = tableReader.readTable(new AttributesWrapperConnection(database));
attributesTable.setContents(contents);
AttributesConnection userDb = new AttributesConnection(database);
AttributesDao dao = new AttributesDao(getName(), database, userDb,
registerCursorWrapper(attributesTable.getTableName(),
    new GeoPackageCursorWrapper() {
origin: ngageoint/geopackage-android

    .createAttributesTableWithId("test_attributes", columns);
TestCase.assertNotNull(attributesTable);
Contents attributesContents = attributesTable.getContents();
TestCase.assertNotNull(attributesContents);
TestCase.assertEquals(ContentsDataType.ATTRIBUTES,
    attributesContents.getTableName());
TestCase.assertEquals(attributesContents.getTableName(),
    attributesTable.getTableName());
    .getAttributesDao(attributesTable.getTableName());
  for (AttributesColumn column : attributesTable.getColumns()) {
    if (!column.isPrimaryKey()) {
  attributesReference.setTableName(attributesTable.getTableName());
  attributesReference.setRowIdValue(rowId);
  attributesReference.setTimestamp(new Date());
origin: ngageoint/geopackage-android

TestCase.assertEquals(attributesDao.getTableName(),
    attributesRelation.getBaseTableName());
TestCase.assertEquals(attributesDao.getTable().getPkColumn()
    .getName(), attributesRelation.getBasePrimaryColumn());
TestCase.assertEquals(simpleDao.getTableName(),
TestCase.assertEquals(attributesDao.getTableName(),
    simpleRelation.getBaseTableName());
TestCase.assertEquals(attributesDao.getTable().getPkColumn()
    .getName(), simpleRelation.getBasePrimaryColumn());
TestCase.assertEquals(simpleDao.getTableName(),
AttributesTable attributesTable = attributesDao.getTable();
TestCase.assertNotNull(attributesTable);
Contents attributesContents = attributesTable.getContents();
TestCase.assertNotNull(attributesContents);
TestCase.assertEquals(ContentsDataType.ATTRIBUTES,
TestCase.assertEquals(ContentsDataType.ATTRIBUTES.getName(),
    attributesContents.getDataTypeString());
TestCase.assertEquals(attributesTable.getTableName(),
    attributesContents.getTableName());
TestCase.assertNotNull(attributesContents.getLastChange());
origin: ngageoint/geopackage-android

String[] columns = attributesTable.getColumnNames();
AttributesColumn column2 = null;
for (AttributesColumn column : attributesRow.getTable()
    .getColumns()) {
  if (!column.isPrimaryKey() && column.getDataType() != GeoPackageDataType.BLOB) {
    if (column1 == null) {
List<MetadataReference> references = referenceDao.queryForEq(
    MetadataReference.COLUMN_TABLE_NAME,
    attributesTable.getTableName());
if (references != null && !references.isEmpty()) {
  Metadata metadata = references.get(0).getMetadata();
    TestCase.assertNotNull(queryRow);
    TestCase.assertNotNull(queryRow.getTable());
    TestCase.assertEquals(attributesTable.getTableName(),
        queryRow.getTable().getTableName());
origin: ngageoint/geopackage-java

/**
 * {@inheritDoc}
 */
@Override
public AttributesDao getAttributesDao(Contents contents) {
  if (contents == null) {
    throw new GeoPackageException("Non null "
        + Contents.class.getSimpleName()
        + " is required to create "
        + AttributesDao.class.getSimpleName());
  }
  if (contents.getDataType() != ContentsDataType.ATTRIBUTES) {
    throw new GeoPackageException(Contents.class.getSimpleName()
        + " is required to be of type "
        + ContentsDataType.ATTRIBUTES + ". Actual: "
        + contents.getDataTypeString());
  }
  // Read the existing table and create the dao
  AttributesTableReader tableReader = new AttributesTableReader(
      contents.getTableName());
  AttributesConnection userDb = new AttributesConnection(database);
  final AttributesTable attributesTable = tableReader.readTable(userDb);
  attributesTable.setContents(contents);
  AttributesDao dao = new AttributesDao(getName(), database, userDb,
      attributesTable);
  return dao;
}
origin: ngageoint/geopackage-android

.getAttributesDao(attributesTable.getTableName());
origin: ngageoint/geopackage-android

AttributesColumn column = attributesRow.getTable().getColumns()
    .get(i);
GeoPackageDataType dataType = column.getDataType();
origin: ngageoint/geopackage-android

AttributesDao relatedDao = geoPackage
    .getAttributesDao(extendedRelation.getRelatedTableName());
AttributesColumn pkColumn2 = relatedDao.getTable().getPkColumn();
AttributesCursor ars = relatedDao.queryForAll();
while (ars.moveToNext()) {
origin: ngageoint/geopackage-android

  .getColumns()) {
if (!attributesColumn.isPrimaryKey()) {
origin: ngageoint/geopackage-java

/**
 * Constructor
 * 
 * @param database
 *            database
 * @param db
 *            db connection
 * @param attributesDb
 *            attributes connection
 * @param table
 *            attributes table
 */
public AttributesDao(String database, GeoPackageConnection db,
    AttributesConnection attributesDb, AttributesTable table) {
  super(database, db, attributesDb, table);
  this.attributesDb = attributesDb;
  if (table.getContents() == null) {
    throw new GeoPackageException(AttributesTable.class.getSimpleName()
        + " " + table.getTableName() + " has null "
        + Contents.class.getSimpleName());
  }
}
origin: ngageoint/geopackage-android

/**
 * {@inheritDoc}
 */
@Override
protected AttributesTable createTable(String tableName,
                   List<AttributesColumn> columnList) {
  return new AttributesTable(tableName, columnList);
}
origin: ngageoint/geopackage-android

for (AttributesColumn column : dao.getTable().getColumns()) {
for (AttributesColumn column : dao.getTable().getColumns()) {
  if (column.getDataType() == GeoPackageDataType.BLOB) {
    byte[] blob1 = (byte[]) queryAttributesRow2
cursor.close();
for (AttributesColumn column : dao.getTable().getColumns()) {
  if (column.isPrimaryKey()) {
    TestCase.assertNotSame(queryAttributesRow2
mil.nga.geopackage.attributesAttributesTable

Javadoc

Represents a user attributes table

Most used methods

  • <init>
    Constructor
  • getContents
    Get the contents
  • getTableName
  • setContents
    Set the contents
  • addUniqueConstraints
  • getColumnNames
  • getColumns
  • getPkColumn

Popular in Java

  • Running tasks concurrently on multiple threads
  • notifyDataSetChanged (ArrayAdapter)
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • String (java.lang)
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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