geopackage-sdk/src/main/java/mil/nga/geopackage/extension/style/FeatureStyleExtension.java
public StyleRow getStyle(String featureTable, long featureId,
                             GeometryType geometryType, boolean tableStyle) {

        StyleRow styleRow = null;

        // Feature Style
        Styles styles = getStyles(featureTable, featureId);
        if (styles != null) {
            styleRow = styles.getStyle(geometryType);
        }

        if (styleRow == null && tableStyle) {

            // Table Style
            styleRow = getTableStyle(featureTable, geometryType);

        }

        return styleRow;
    }
public StyleRow getStyle(String featureTable, long featureId,
                             GeometryType geometryType, boolean tableStyle) {

        StyleRow styleRow = null;

        // Feature Style
        Styles styles = getStyles(featureTable, featureId);
        if (styles != null) {
            styleRow = styles.getStyle(geometryType);
        }

        if (styleRow == null && tableStyle) {

            // Table Style
            styleRow = getTableStyle(featureTable, geometryType);

        }

        return styleRow;
    }
Get the style of the feature, searching in order: feature geometry type
style, feature default style, when tableStyle enabled continue searching:
table geometry type style, table default style

@param featureTable feature table
@param featureId    feature id
@param geometryType geometry type
@param tableStyle   when true and a feature style is not found, query for a
matching table style
@return style row