Class PropertyInfoUtil


  • public final class PropertyInfoUtil
    extends Object
    The utilities methods for PropertyInfo.
    • Method Detail

      • isTable

        public static boolean isTable​(PropertyInfo info)
        This method checks the type of PropertyInfo is the table
        Parameters:
        info - the property info for check.
        Returns:
        return true if a property info has the table type, otherwise false.
      • isColumn

        public static boolean isColumn​(PropertyInfo info)
        This method checks the type of PropertyInfo is the column value.
        Parameters:
        info - the property info for check.(can not be null).
        Returns:
        return true if a property info has the column type, otherwise false.
      • isColumn

        public static boolean isColumn​(PropertyInfo info,
                                       boolean checkParents)
        This method checks the type of PropertyInfo is the column value.
        Parameters:
        info - the property info for check.(can not be null).
        checkParents - check that one of the property parents is column.
        Returns:
        return true if a property info (or one of its ancestors) has the column type, otherwise false.
      • isTableOnly

        public static boolean isTableOnly​(PropertyInfo info)
        This method checks the type of PropertyInfo is strict only table type.
        Parameters:
        info - the property info for check.(can not be null).
        Returns:
        return true if a property info has the stict table type, otherwise false.
      • getRootPropertyInfo

        public static PropertyInfo getRootPropertyInfo​(PropertyInfo info)
        The method gets root property info.
        Parameters:
        info - the poperty info.
        Returns:
        the root property info.