![JAR search and dependency download from the Maven repository](/logo.png)
mil.nga.geopackage.attributes.AttributesDao Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geopackage Show documentation
Show all versions of geopackage Show documentation
GeoPackage Java implementation
The newest version!
package mil.nga.geopackage.attributes;
import mil.nga.geopackage.BoundingBox;
import mil.nga.geopackage.GeoPackageException;
import mil.nga.geopackage.contents.Contents;
import mil.nga.geopackage.db.GeoPackageConnection;
import mil.nga.geopackage.user.UserDao;
import mil.nga.proj.Projection;
/**
* Attributes DAO for reading attributes user data tables
*
* @author osbornb
* @since 1.2.1
*/
public class AttributesDao extends
UserDao {
/**
* Attributes connection
*/
private final AttributesConnection attributesDb;
/**
* Constructor
*
* @param database
* database
* @param db
* db connection
* @param table
* attributes table
*/
public AttributesDao(String database, GeoPackageConnection db,
AttributesTable table) {
super(database, db, new AttributesConnection(db), table);
this.attributesDb = (AttributesConnection) getUserDb();
if (table.getContents() == null) {
throw new GeoPackageException(AttributesTable.class.getSimpleName()
+ " " + table.getTableName() + " has null "
+ Contents.class.getSimpleName());
}
}
/**
* {@inheritDoc}
*
* Not supported for Attributes
*/
@Override
public BoundingBox getBoundingBox() {
throw new GeoPackageException(
"Bounding Box not supported for Attributes");
}
/**
* {@inheritDoc}
*/
@Override
public BoundingBox getBoundingBox(Projection projection) {
throw new GeoPackageException(
"Bounding Box not supported for Attributes");
}
/**
* {@inheritDoc}
*/
@Override
public AttributesRow newRow() {
return new AttributesRow(getTable());
}
/**
* Get the Attributes connection
*
* @return attributes connection
*/
public AttributesConnection getAttributesDb() {
return attributesDb;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy