geopackage-sdk/src/main/java/mil/nga/geopackage/extension/style/FeatureStyleExtension.java
public void setStyle(String featureTable, long featureId,
                         GeometryType geometryType, StyleRow style) {
        deleteStyle(featureTable, featureId, geometryType);
        if (style != null) {

            createStyleRelationship(featureTable);

            long styleId = getOrInsertStyle(style);

            StyleMappingDao mappingDao = getStyleMappingDao(featureTable);
            insertStyleMapping(mappingDao, featureId, styleId, geometryType);

        }
    }
public void setStyle(String featureTable, long featureId,
                         GeometryType geometryType, StyleRow style) {
        deleteStyle(featureTable, featureId, geometryType);
        if (style != null) {

            createStyleRelationship(featureTable);

            long styleId = getOrInsertStyle(style);

            StyleMappingDao mappingDao = getStyleMappingDao(featureTable);
            insertStyleMapping(mappingDao, featureId, styleId, geometryType);

        }
    }
Set the style of the feature

@param featureTable feature table
@param featureId    feature id
@param geometryType geometry type
@param style        style row