Codota Logo
AttributesTable
Code IndexAdd Codota 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)

  • Common ways to obtain AttributesTable
private void myMethod () {
AttributesTable a =
  • Codota IconString tableName;List columns;new AttributesTable(tableName, columns)
  • Smart code suggestions by Codota
}
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

  • Making http post requests using okhttp
  • compareTo (BigDecimal)
  • setContentView (Activity)
  • getApplicationContext (Context)
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • JCheckBox (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
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