code: @Override
  	public GeometryIndex queryForId(GeometryIndexKey key) throws SQLException {
  		GeometryIndex geometryIndex = null;
  		if (key != null) {
  			Map<String, Object> fieldValues = new HashMap<String, Object>();
  			fieldValues
  					.put(GeometryIndex.COLUMN_TABLE_NAME, key.getTableName());
  			fieldValues.put(GeometryIndex.COLUMN_GEOM_ID, key.getGeomId());
  			List<GeometryIndex> results = queryForFieldValues(fieldValues);
  			if (!results.isEmpty()) {
  				if (results.size() > 1) {
  					throw new SQLException("More than one "
  							+ GeometryIndex.class.getSimpleName()
  							+ " returned for key. Table Name: "
  							+ key.getTableName() + ", Geom Id: "
  							+ key.getGeomId());
  				}
  				geometryIndex = results.get(0);
  			}
  		}
  		return geometryIndex;
  	}
docs: {@inheritDoc}