Class AbstractSeparatorCharColumnNameMatcher

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private char separatorChar  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean columnNameMatches​(java.lang.String columnName, java.lang.String propertyName)
      Returns whether the column name fits the given Java identifier name.
      boolean columnNameStartsWith​(java.lang.String columnName, java.lang.String prefix)
      Return whether the column name starts with the given prefix, according to the matching strategy of this ColumnNameMatcher.
      private boolean doMatch​(java.lang.String columnName, java.lang.String propertyName, boolean columnNameMayTrailCharacters)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • separatorChar

        private final char separatorChar
    • Constructor Detail

      • AbstractSeparatorCharColumnNameMatcher

        protected AbstractSeparatorCharColumnNameMatcher​(char separatorChar)
    • Method Detail

      • columnNameMatches

        public boolean columnNameMatches​(java.lang.String columnName,
                                         java.lang.String propertyName)
        Description copied from interface: ColumnNameMatcher
        Returns whether the column name fits the given Java identifier name.
        Specified by:
        columnNameMatches in interface ColumnNameMatcher
        Parameters:
        columnName - the SQL column name
        propertyName - the Java property, field, or parameter name
        Returns:
        whether the given names are logically equivalent
      • columnNameStartsWith

        public boolean columnNameStartsWith​(java.lang.String columnName,
                                            java.lang.String prefix)
        Description copied from interface: ColumnNameMatcher
        Return whether the column name starts with the given prefix, according to the matching strategy of this ColumnNameMatcher. This method is used by reflective mappers to short-circuit nested mapping when no column names begin with the nested prefix. By default, this method returns columnName.startWith(prefix). Third party implementations should override this method to match prefixes by the same criteria as ColumnNameMatcher.columnNameMatches(String, String).
        Specified by:
        columnNameStartsWith in interface ColumnNameMatcher
        Parameters:
        columnName - the column name to test
        prefix - the prefix to test for
        Returns:
        whether the column name begins with the prefix.
      • doMatch

        private boolean doMatch​(java.lang.String columnName,
                                java.lang.String propertyName,
                                boolean columnNameMayTrailCharacters)