类 NormalizingIdentifierHelperImpl

    • 方法详细资料

      • normalizeQuoting

        public Identifier normalizeQuoting​(Identifier identifier)
        从接口复制的说明: IdentifierHelper
        Essentially quotes the identifier if it needs to be. Useful to apply global quoting, as well as reserved word quoting after calls to naming strategies.
        指定者:
        normalizeQuoting 在接口中 IdentifierHelper
        参数:
        identifier - The identifier for which to normalize quoting.
        返回:
        The quoting-normalized Identifier.
      • toIdentifier

        public Identifier toIdentifier​(String text)
        从接口复制的说明: IdentifierHelper
        Generate an Identifier instance from its simple name as obtained from mapping information.

        Note that Identifiers returned from here may be implicitly quoted based on 'globally quoted identifiers' or based on reserved words.

        指定者:
        toIdentifier 在接口中 IdentifierHelper
        参数:
        text - The text form of a name as obtained from mapping information.
        返回:
        The identifier form of the name.
      • toIdentifier

        public Identifier toIdentifier​(String text,
                                       boolean quoted)
        从接口复制的说明: IdentifierHelper
        Generate an Identifier instance from its simple name as obtained from mapping information. Additionally, this form takes a boolean indicating whether to explicitly quote the Identifier.

        Note that Identifiers returned from here may be implicitly quoted based on 'globally quoted identifiers' or based on reserved words.

        指定者:
        toIdentifier 在接口中 IdentifierHelper
        参数:
        text - The text form of a name as obtained from mapping information.
        quoted - Is the identifier to be quoted explicitly.
        返回:
        The identifier form of the name.
      • applyGlobalQuoting

        public Identifier applyGlobalQuoting​(String text)
        从接口复制的说明: IdentifierHelper
        Intended only for use in handling quoting requirements for column-definition as defined by Column.columnDefinition(), JoinColumn.columnDefinition(), etc. This method should not be called in any other scenario.

        This method is needed to account for that fact that the JPA spec says that column-definition should be quoted of global-identifier-quoting is requested. Again, this is needed for spec compliance. TBH, I can not think of a argument why column-definitions should ever be *globally* quoted, but the spec is the spec. In fact the default implementation allows applications to opt-out of global-identifier-quoting affecting column-definitions.

        指定者:
        applyGlobalQuoting 在接口中 IdentifierHelper
        参数:
        text - The text to be (possibly) quoted
        返回:
        The identifier form
        另请参阅:
        AvailableSettings.GLOBALLY_QUOTED_IDENTIFIERS_SKIP_COLUMN_DEFINITIONS
      • isReservedWord

        public boolean isReservedWord​(String word)
        从接口复制的说明: IdentifierHelper
        Check whether the given word represents a reserved word.
        指定者:
        isReservedWord 在接口中 IdentifierHelper
        参数:
        word - The word to check
        返回:
        true if the given word represents a reserved word; false otherwise.
      • toMetaDataCatalogName

        public String toMetaDataCatalogName​(Identifier identifier)
        从接口复制的说明: IdentifierHelper
        Render the Identifier representation of a catalog name into the String form needed in DatabaseMetaData calls.
        指定者:
        toMetaDataCatalogName 在接口中 IdentifierHelper
        参数:
        identifier - The Identifier representation of a catalog name
        返回:
        The String representation of the given catalog name
      • toMetaDataSchemaName

        public String toMetaDataSchemaName​(Identifier identifier)
        从接口复制的说明: IdentifierHelper
        Render the Identifier representation of a schema name into the String form needed in DatabaseMetaData calls.
        指定者:
        toMetaDataSchemaName 在接口中 IdentifierHelper
        参数:
        identifier - The Identifier representation of a schema name
        返回:
        The String representation of the given schema name
      • toMetaDataObjectName

        public String toMetaDataObjectName​(Identifier identifier)
        从接口复制的说明: IdentifierHelper
        Render the Identifier representation of an object name (table, sequence, etc) into the String form needed in DatabaseMetaData calls.
        指定者:
        toMetaDataObjectName 在接口中 IdentifierHelper
        参数:
        identifier - The Identifier representation of an object name
        返回:
        The String representation of the given object name