Class MetadataLogger


  • public class MetadataLogger
    extends Object
    INTERNAL: Logger class for the metadata processors. It defines the specific and common log messages used by the metadata processor for the XML and annotation contexts.
    Since:
    TopLink EJB 3.0 Reference Implementation
    Author:
    Guy Pelletier
    • Constructor Detail

      • MetadataLogger

        public MetadataLogger​(org.eclipse.persistence.internal.sessions.AbstractSession session)
        INTERNAL:
    • Method Detail

      • addContextString

        protected void addContextString​(String context)
        INTERNAL: Add a context string to the map of contexts.
      • getLoggingContextString

        protected String getLoggingContextString​(String context)
        INTERNAL: Return the logging context string for the given context.
      • log

        public void log​(int level,
                        String ctx,
                        Object[] params)
        INTERNAL: Logging utility method.
      • logConfigMessage

        public void logConfigMessage​(String ctx,
                                     MetadataAccessor accessor,
                                     Object param)
        INTERNAL: Logging utility method. We currently can not log any lower than CONFIG since all our metadata logging messages are located in LoggingLocalizationResource. Any lower than CONFIG and those message strings would have to move to TraceLocalizationResource.
      • logConfigMessage

        public void logConfigMessage​(String ctx,
                                     MetadataAccessor accessor,
                                     Object param1,
                                     Object param2)
        INTERNAL: Logging utility method. We currently can not log any lower than CONFIG since all our metadata logging messages are located in LoggingLocalizationResource. Any lower than CONFIG and those message strings would have to move to TraceLocalizationResource.
      • logConfigMessage

        public void logConfigMessage​(String ctx,
                                     MetadataDescriptor descriptor,
                                     Object param)
        INTERNAL: Logging utility method. We currently can not log any lower than CONFIG since all our metadata logging messages are located in LoggingLocalizationResource. Any lower than CONFIG and those message strings would have to move to TraceLocalizationResource.
      • logConfigMessage

        public void logConfigMessage​(String ctx,
                                     Object object)
        INTERNAL: Logging utility method. We currently can not log any lower than CONFIG since all our metadata logging messages are located in LoggingLocalizationResource. Any lower than CONFIG and those message strings would have to move to TraceLocalizationResource.
      • logConfigMessage

        public void logConfigMessage​(String ctx,
                                     Object param1,
                                     Object param2)
        INTERNAL: Logging utility method. We currently can not log any lower than CONFIG since all our metadata logging messages are located in LoggingLocalizationResource. Any lower than CONFIG and those message strings would have to move to TraceLocalizationResource.
      • logConfigMessage

        public void logConfigMessage​(String ctx,
                                     Object param1,
                                     Object param2,
                                     Object param3)
        INTERNAL: Logging utility method. We currently can not log any lower than CONFIG since all our metadata logging messages are located in LoggingLocalizationResource. Any lower than CONFIG and those message strings would have to move to TraceLocalizationResource.
      • logConfigMessage

        public void logConfigMessage​(String ctx,
                                     Object param1,
                                     Object param2,
                                     Object param3,
                                     Object param4)
        INTERNAL: Logging utility method. We currently can not log any lower than CONFIG since all our metadata logging messages are located in LoggingLocalizationResource. Any lower than CONFIG and those message strings would have to move to TraceLocalizationResource.
      • logWarningMessage

        public void logWarningMessage​(String ctx,
                                      MetadataAccessor accessor)
        INTERNAL: Logging utility method.
      • logWarningMessage

        public void logWarningMessage​(String ctx,
                                      Object param)
        INTERNAL: Logging utility method.
      • logWarningMessage

        public void logWarningMessage​(String ctx,
                                      Object param1,
                                      Object param2)
        INTERNAL: Logging utility method.
      • logWarningMessage

        public void logWarningMessage​(String ctx,
                                      Object param1,
                                      Object param2,
                                      Object param3)
        INTERNAL: Logging utility method.
      • logWarningMessage

        public void logWarningMessage​(String ctx,
                                      Object param1,
                                      Object param2,
                                      Object param3,
                                      Object param4,
                                      Object param5)
        INTERNAL: Logging utility method.
      • getSession

        public org.eclipse.persistence.internal.sessions.AbstractSession getSession()
        INTERNAL: Set the session to log to.
      • shouldLog

        public boolean shouldLog​(org.eclipse.persistence.logging.LogLevel level,
                                 org.eclipse.persistence.logging.LogCategory category)
        INTERNAL: Check if a message of the given LogLevel and LogCategory would actually be logged.
        Parameters:
        level - the log request level value
        category - an EclipseLink logging category
        Returns:
        value of true if the given message level will be logged or false otherwise
      • setSession

        public void setSession​(org.eclipse.persistence.internal.sessions.AbstractSession session)
        INTERNAL: Set the session to log to.