class JDBCConnection implements ObjectStoreConnection {

    boolean validatePrincipalDomain(String principal) {
        // special case for all principals
        if (ALL_PRINCIPALS.equals(principal)) {
            return true;
        }
        int idx = principal.indexOf(AuthorityConsts.GROUP_SEP);
        if (idx == -1) {
            idx = principal.lastIndexOf('.');
            if (idx == -1 || idx == 0 || idx == principal.length() - 1) {
                return false;
            }
        }
        return getDomainId(principal.substring(0, idx)) != 0;
    }

    public  JDBCConnection(Connection con, boolean autoCommit);

}