geopackage-sdk/src/main/java/mil/nga/geopackage/extension/style/FeatureStyleExtension.java
public void setTableStyle(String featureTable, GeometryType geometryType,
                              StyleRow style) {

        deleteTableStyle(featureTable, geometryType);

        if (style != null) {

            createTableStyleRelationship(featureTable);

            long featureContentsId = contentsId.getOrCreateId(featureTable);

            long styleId = getOrInsertStyle(style);

            StyleMappingDao mappingDao = getTableStyleMappingDao(featureTable);
            insertStyleMapping(mappingDao, featureContentsId, styleId,
                    geometryType);

        }

    }
public void setTableStyle(String featureTable, GeometryType geometryType,
                              StyleRow style) {

        deleteTableStyle(featureTable, geometryType);

        if (style != null) {

            createTableStyleRelationship(featureTable);

            long featureContentsId = contentsId.getOrCreateId(featureTable);

            long styleId = getOrInsertStyle(style);

            StyleMappingDao mappingDao = getTableStyleMappingDao(featureTable);
            insertStyleMapping(mappingDao, featureContentsId, styleId,
                    geometryType);

        }

    }
public void setTableStyle ( String featureTable , GeometryType geometryType , StyleRow style ) { deleteTableStyle ( featureTable , geometryType ) ; if ( style != null ) { createTableStyleRelationship ( featureTable ) ; long featureContentsId = contentsId . getOrCreateId ( featureTable ) ; long styleId = getOrInsertStyle ( style ) ; StyleMappingDao mappingDao = getTableStyleMappingDao ( featureTable ) ; insertStyleMapping ( mappingDao , featureContentsId , styleId , geometryType ) ; } }
Set the feature table style for the geometry type

@param featureTable feature table
@param geometryType geometry type
@param style        style row
Set the feature table style for the geometry type