public ContentsId create(String tableName) {

		if (!has()) {
			getOrCreateExtension();
		}

		ContentsId contentsId = new ContentsId();
		Contents contents = geoPackage.getTableContents(tableName);
		contentsId.setContents(contents);
		try {
			contentsIdDao.create(contentsId);
		} catch (SQLException e) {
			throw new GeoPackageException(
					"Failed to create contents id for GeoPackage: "
							+ geoPackage.getName() + ", Table Name: "
							+ tableName, e);
		}
		return contentsId;
	}
public ContentsId create ( String tableName ) { if ( ! has ( ) ) { getOrCreateExtension ( ) ; } ContentsId contentsId = new ContentsId ( ) ; Contents contents = geoPackage . getTableContents ( tableName ) ; contentsId . setContents ( contents ) ; try { contentsIdDao . create ( contentsId ) ; } catch ( SQLException e ) { throw new GeoPackageException ( "Failed to create contents id for GeoPackage: " + geoPackage . getName ( ) + ", Table Name: " + tableName , e ) ; } return contentsId ; }
Create a contents id

@param tableName
table name
@return new contents id