Module org.eclipse.persistence.jpa
Class MetadataLogger
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.metadata.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
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description MetadataLogger(AbstractSession session)INTERNAL:
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddContextString(String context)INTERNAL: Add a context string to the map of contexts.protected StringgetLoggingContextString(String context)INTERNAL: Return the logging context string for the given context.AbstractSessiongetSession()INTERNAL: Set the session to log to.voidlog(int level, String ctx, Object[] params)INTERNAL: Logging utility method.voidlogConfigMessage(String ctx, Object object)INTERNAL: Logging utility method.voidlogConfigMessage(String ctx, Object param1, Object param2)INTERNAL: Logging utility method.voidlogConfigMessage(String ctx, Object param1, Object param2, Object param3)INTERNAL: Logging utility method.voidlogConfigMessage(String ctx, Object param1, Object param2, Object param3, Object param4)INTERNAL: Logging utility method.voidlogConfigMessage(String ctx, MetadataAccessor accessor, Object param)INTERNAL: Logging utility method.voidlogConfigMessage(String ctx, MetadataAccessor accessor, Object param1, Object param2)INTERNAL: Logging utility method.voidlogConfigMessage(String ctx, MetadataDescriptor descriptor, Object param)INTERNAL: Logging utility method.voidlogWarningMessage(String ctx, Object param)INTERNAL: Logging utility method.voidlogWarningMessage(String ctx, Object param1, Object param2)INTERNAL: Logging utility method.voidlogWarningMessage(String ctx, Object param1, Object param2, Object param3)INTERNAL: Logging utility method.voidlogWarningMessage(String ctx, Object param1, Object param2, Object param3, Object param4, Object param5)INTERNAL: Logging utility method.voidlogWarningMessage(String ctx, MetadataAccessor accessor)INTERNAL: Logging utility method.voidsetSession(AbstractSession session)INTERNAL: Set the session to log to.booleanshouldLog(LogLevel level, LogCategory category)INTERNAL: Check if a message of the givenLogLevelandLogCategorywould actually be logged.
-
-
-
Field Detail
-
OVERRIDE_ANNOTATION_WITH_XML
public static final String OVERRIDE_ANNOTATION_WITH_XML
- See Also:
- Constant Field Values
-
OVERRIDE_NAMED_ANNOTATION_WITH_XML
public static final String OVERRIDE_NAMED_ANNOTATION_WITH_XML
- See Also:
- Constant Field Values
-
OVERRIDE_XML_WITH_ECLIPSELINK_XML
public static final String OVERRIDE_XML_WITH_ECLIPSELINK_XML
- See Also:
- Constant Field Values
-
OVERRIDE_NAMED_XML_WITH_ECLIPSELINK_XML
public static final String OVERRIDE_NAMED_XML_WITH_ECLIPSELINK_XML
- See Also:
- Constant Field Values
-
IGNORE_ANNOTATION
public static final String IGNORE_ANNOTATION
- See Also:
- Constant Field Values
-
IGNORE_PRIVATE_OWNED_ANNOTATION
public static final String IGNORE_PRIVATE_OWNED_ANNOTATION
- See Also:
- Constant Field Values
-
IGNORE_RETURN_INSERT_ANNOTATION
public static final String IGNORE_RETURN_INSERT_ANNOTATION
- See Also:
- Constant Field Values
-
IGNORE_RETURN_UPDATE_ANNOTATION
public static final String IGNORE_RETURN_UPDATE_ANNOTATION
- See Also:
- Constant Field Values
-
IGNORE_LOB
public static final String IGNORE_LOB
- See Also:
- Constant Field Values
-
IGNORE_ENUMERATED
public static final String IGNORE_ENUMERATED
- See Also:
- Constant Field Values
-
IGNORE_SERIALIZED
public static final String IGNORE_SERIALIZED
- See Also:
- Constant Field Values
-
IGNORE_TEMPORAL
public static final String IGNORE_TEMPORAL
- See Also:
- Constant Field Values
-
IGNORE_CONVERTS
public static final String IGNORE_CONVERTS
- See Also:
- Constant Field Values
-
IGNORE_AUTO_APPLY_CONVERTER
public static final String IGNORE_AUTO_APPLY_CONVERTER
- See Also:
- Constant Field Values
-
IGNORE_CACHEABLE_FALSE
public static final String IGNORE_CACHEABLE_FALSE
- See Also:
- Constant Field Values
-
IGNORE_CACHEABLE_TRUE
public static final String IGNORE_CACHEABLE_TRUE
- See Also:
- Constant Field Values
-
IGNORE_ATTRIBUTE_OVERRIDE
public static final String IGNORE_ATTRIBUTE_OVERRIDE
- See Also:
- Constant Field Values
-
IGNORE_ASSOCIATION_OVERRIDE
public static final String IGNORE_ASSOCIATION_OVERRIDE
- See Also:
- Constant Field Values
-
IGNORE_VERSION_LOCKING
public static final String IGNORE_VERSION_LOCKING
- See Also:
- Constant Field Values
-
IGNORE_INHERITANCE_SUBCLASS_CACHE
public static final String IGNORE_INHERITANCE_SUBCLASS_CACHE
- See Also:
- Constant Field Values
-
IGNORE_INHERITANCE_SUBCLASS_CACHE_INTERCEPTOR
public static final String IGNORE_INHERITANCE_SUBCLASS_CACHE_INTERCEPTOR
- See Also:
- Constant Field Values
-
IGNORE_INHERITANCE_SUBCLASS_DEFAULT_REDIRECTORS
public static final String IGNORE_INHERITANCE_SUBCLASS_DEFAULT_REDIRECTORS
- See Also:
- Constant Field Values
-
IGNORE_INHERITANCE_SUBCLASS_READ_ONLY
public static final String IGNORE_INHERITANCE_SUBCLASS_READ_ONLY
- See Also:
- Constant Field Values
-
IGNORE_INHERITANCE_TENANT_DISCRIMINATOR_COLUMN
public static final String IGNORE_INHERITANCE_TENANT_DISCRIMINATOR_COLUMN
- See Also:
- Constant Field Values
-
IGNORE_INHERITANCE_TENANT_TABLE_DISCRIMINATOR
public static final String IGNORE_INHERITANCE_TENANT_TABLE_DISCRIMINATOR
- See Also:
- Constant Field Values
-
IGNORE_MAPPED_SUPERCLASS_COPY_POLICY
public static final String IGNORE_MAPPED_SUPERCLASS_COPY_POLICY
- See Also:
- Constant Field Values
-
IGNORE_MAPPED_SUPERCLASS_ADDITIONAL_CRITERIA
public static final String IGNORE_MAPPED_SUPERCLASS_ADDITIONAL_CRITERIA
- See Also:
- Constant Field Values
-
IGNORE_MAPPED_SUPERCLASS_ASSOCIATION_OVERRIDE
public static final String IGNORE_MAPPED_SUPERCLASS_ASSOCIATION_OVERRIDE
- See Also:
- Constant Field Values
-
IGNORE_MAPPED_SUPERCLASS_ATTRIBUTE_OVERRIDE
public static final String IGNORE_MAPPED_SUPERCLASS_ATTRIBUTE_OVERRIDE
- See Also:
- Constant Field Values
-
IGNORE_MAPPED_SUPERCLASS_CACHE
public static final String IGNORE_MAPPED_SUPERCLASS_CACHE
- See Also:
- Constant Field Values
-
IGNORE_MAPPED_SUPERCLASS_CACHEABLE
public static final String IGNORE_MAPPED_SUPERCLASS_CACHEABLE
- See Also:
- Constant Field Values
-
IGNORE_MAPPED_SUPERCLASS_CACHE_INTERCEPTOR
public static final String IGNORE_MAPPED_SUPERCLASS_CACHE_INTERCEPTOR
- See Also:
- Constant Field Values
-
IGNORE_MAPPED_SUPERCLASS_DEFAULT_REDIRECTORS
public static final String IGNORE_MAPPED_SUPERCLASS_DEFAULT_REDIRECTORS
- See Also:
- Constant Field Values
-
IGNORE_MAPPED_SUPERCLASS_CHANGE_TRACKING
public static final String IGNORE_MAPPED_SUPERCLASS_CHANGE_TRACKING
- See Also:
- Constant Field Values
-
IGNORE_MAPPED_SUPERCLASS_CUSTOMIZER
public static final String IGNORE_MAPPED_SUPERCLASS_CUSTOMIZER
- See Also:
- Constant Field Values
-
IGNORE_MAPPED_SUPERCLASS_ID_CLASS
public static final String IGNORE_MAPPED_SUPERCLASS_ID_CLASS
- See Also:
- Constant Field Values
-
IGNORE_MAPPED_SUPERCLASS_EXISTENCE_CHECKING
public static final String IGNORE_MAPPED_SUPERCLASS_EXISTENCE_CHECKING
- See Also:
- Constant Field Values
-
IGNORE_MAPPED_SUPERCLASS_OPTIMISTIC_LOCKING
public static final String IGNORE_MAPPED_SUPERCLASS_OPTIMISTIC_LOCKING
- See Also:
- Constant Field Values
-
IGNORE_MAPPED_SUPERCLASS_READ_ONLY
public static final String IGNORE_MAPPED_SUPERCLASS_READ_ONLY
- See Also:
- Constant Field Values
-
IGNORE_MAPPED_SUPERCLASS_FETCH_GROUP
public static final String IGNORE_MAPPED_SUPERCLASS_FETCH_GROUP
- See Also:
- Constant Field Values
-
IGNORE_MAPPED_SUPERCLASS_ANNOTATION
public static final String IGNORE_MAPPED_SUPERCLASS_ANNOTATION
- See Also:
- Constant Field Values
-
IGNORE_MAPPED_SUPERCLASS_PRIMARY_KEY
public static final String IGNORE_MAPPED_SUPERCLASS_PRIMARY_KEY
- See Also:
- Constant Field Values
-
IGNORE_MAPPED_SUPERCLASS_MULTITENANT
public static final String IGNORE_MAPPED_SUPERCLASS_MULTITENANT
- See Also:
- Constant Field Values
-
IGNORE_FETCH_GROUP
public static final String IGNORE_FETCH_GROUP
- See Also:
- Constant Field Values
-
IGNORE_MAPPING_METADATA
public static final String IGNORE_MAPPING_METADATA
- See Also:
- Constant Field Values
-
ACCESS_TYPE
public static final String ACCESS_TYPE
- See Also:
- Constant Field Values
-
ALIAS
public static final String ALIAS
- See Also:
- Constant Field Values
-
MAP_KEY_ATTRIBUTE_NAME
public static final String MAP_KEY_ATTRIBUTE_NAME
- See Also:
- Constant Field Values
-
TABLE_NAME
public static final String TABLE_NAME
- See Also:
- Constant Field Values
-
TABLE_SCHEMA
public static final String TABLE_SCHEMA
- See Also:
- Constant Field Values
-
TABLE_CATALOG
public static final String TABLE_CATALOG
- See Also:
- Constant Field Values
-
TABLE_GENERATOR_NAME
public static final String TABLE_GENERATOR_NAME
- See Also:
- Constant Field Values
-
TABLE_GENERATOR_SCHEMA
public static final String TABLE_GENERATOR_SCHEMA
- See Also:
- Constant Field Values
-
TABLE_GENERATOR_CATALOG
public static final String TABLE_GENERATOR_CATALOG
- See Also:
- Constant Field Values
-
TABLE_GENERATOR_PK_COLUMN_VALUE
public static final String TABLE_GENERATOR_PK_COLUMN_VALUE
- See Also:
- Constant Field Values
-
SEQUENCE_GENERATOR_SCHEMA
public static final String SEQUENCE_GENERATOR_SCHEMA
- See Also:
- Constant Field Values
-
SEQUENCE_GENERATOR_CATALOG
public static final String SEQUENCE_GENERATOR_CATALOG
- See Also:
- Constant Field Values
-
SEQUENCE_GENERATOR_SEQUENCE_NAME
public static final String SEQUENCE_GENERATOR_SEQUENCE_NAME
- See Also:
- Constant Field Values
-
JOIN_TABLE_NAME
public static final String JOIN_TABLE_NAME
- See Also:
- Constant Field Values
-
JOIN_TABLE_SCHEMA
public static final String JOIN_TABLE_SCHEMA
- See Also:
- Constant Field Values
-
JOIN_TABLE_CATALOG
public static final String JOIN_TABLE_CATALOG
- See Also:
- Constant Field Values
-
SECONDARY_TABLE_NAME
public static final String SECONDARY_TABLE_NAME
- See Also:
- Constant Field Values
-
SECONDARY_TABLE_SCHEMA
public static final String SECONDARY_TABLE_SCHEMA
- See Also:
- Constant Field Values
-
SECONDARY_TABLE_CATALOG
public static final String SECONDARY_TABLE_CATALOG
- See Also:
- Constant Field Values
-
COLLECTION_TABLE_NAME
public static final String COLLECTION_TABLE_NAME
- See Also:
- Constant Field Values
-
COLLECTION_TABLE_SCHEMA
public static final String COLLECTION_TABLE_SCHEMA
- See Also:
- Constant Field Values
-
COLLECTION_TABLE_CATALOG
public static final String COLLECTION_TABLE_CATALOG
- See Also:
- Constant Field Values
-
CONVERTER_DATA_TYPE
public static final String CONVERTER_DATA_TYPE
- See Also:
- Constant Field Values
-
CONVERTER_OBJECT_TYPE
public static final String CONVERTER_OBJECT_TYPE
- See Also:
- Constant Field Values
-
NAMED_ENTITY_GRAPH_NAME
public static final String NAMED_ENTITY_GRAPH_NAME
- See Also:
- Constant Field Values
-
COLUMN
public static final String COLUMN
- See Also:
- Constant Field Values
-
PK_COLUMN
public static final String PK_COLUMN
- See Also:
- Constant Field Values
-
FK_COLUMN
public static final String FK_COLUMN
- See Also:
- Constant Field Values
-
QK_COLUMN
public static final String QK_COLUMN
- See Also:
- Constant Field Values
-
ORDER_COLUMN
public static final String ORDER_COLUMN
- See Also:
- Constant Field Values
-
MAP_KEY_COLUMN
public static final String MAP_KEY_COLUMN
- See Also:
- Constant Field Values
-
VALUE_COLUMN
public static final String VALUE_COLUMN
- See Also:
- Constant Field Values
-
SOURCE_PK_COLUMN
public static final String SOURCE_PK_COLUMN
- See Also:
- Constant Field Values
-
SOURCE_FK_COLUMN
public static final String SOURCE_FK_COLUMN
- See Also:
- Constant Field Values
-
TARGET_PK_COLUMN
public static final String TARGET_PK_COLUMN
- See Also:
- Constant Field Values
-
TARGET_FK_COLUMN
public static final String TARGET_FK_COLUMN
- See Also:
- Constant Field Values
-
VARIABLE_ONE_TO_ONE_DISCRIMINATOR_COLUMN
public static final String VARIABLE_ONE_TO_ONE_DISCRIMINATOR_COLUMN
- See Also:
- Constant Field Values
-
INHERITANCE_DISCRIMINATOR_COLUMN
public static final String INHERITANCE_DISCRIMINATOR_COLUMN
- See Also:
- Constant Field Values
-
INHERITANCE_PK_COLUMN
public static final String INHERITANCE_PK_COLUMN
- See Also:
- Constant Field Values
-
INHERITANCE_FK_COLUMN
public static final String INHERITANCE_FK_COLUMN
- See Also:
- Constant Field Values
-
SECONDARY_TABLE_PK_COLUMN
public static final String SECONDARY_TABLE_PK_COLUMN
- See Also:
- Constant Field Values
-
SECONDARY_TABLE_FK_COLUMN
public static final String SECONDARY_TABLE_FK_COLUMN
- See Also:
- Constant Field Values
-
TENANT_DISCRIMINATOR_COLUMN
public static final String TENANT_DISCRIMINATOR_COLUMN
- See Also:
- Constant Field Values
-
TENANT_DISCRIMINATOR_CONTEXT_PROPERTY
public static final String TENANT_DISCRIMINATOR_CONTEXT_PROPERTY
- See Also:
- Constant Field Values
-
TENANT_TABLE_DISCRIMINATOR_TYPE
public static final String TENANT_TABLE_DISCRIMINATOR_TYPE
- See Also:
- Constant Field Values
-
TENANT_TABLE_DISCRIMINATOR_CONTEXT_PROPERTY
public static final String TENANT_TABLE_DISCRIMINATOR_CONTEXT_PROPERTY
- See Also:
- Constant Field Values
-
ONE_TO_ONE_MAPPING
public static final String ONE_TO_ONE_MAPPING
- See Also:
- Constant Field Values
-
ONE_TO_MANY_MAPPING
public static final String ONE_TO_MANY_MAPPING
- See Also:
- Constant Field Values
-
VARIABLE_ONE_TO_ONE_MAPPING
public static final String VARIABLE_ONE_TO_ONE_MAPPING
- See Also:
- Constant Field Values
-
ONE_TO_ONE_MAPPING_REFERENCE_CLASS
public static final String ONE_TO_ONE_MAPPING_REFERENCE_CLASS
- See Also:
- Constant Field Values
-
ONE_TO_MANY_MAPPING_REFERENCE_CLASS
public static final String ONE_TO_MANY_MAPPING_REFERENCE_CLASS
- See Also:
- Constant Field Values
-
MANY_TO_ONE_MAPPING_REFERENCE_CLASS
public static final String MANY_TO_ONE_MAPPING_REFERENCE_CLASS
- See Also:
- Constant Field Values
-
MANY_TO_MANY_MAPPING_REFERENCE_CLASS
public static final String MANY_TO_MANY_MAPPING_REFERENCE_CLASS
- See Also:
- Constant Field Values
-
VARIABLE_ONE_TO_ONE_MAPPING_REFERENCE_CLASS
public static final String VARIABLE_ONE_TO_ONE_MAPPING_REFERENCE_CLASS
- See Also:
- Constant Field Values
-
ELEMENT_COLLECTION_MAPPING_REFERENCE_CLASS
public static final String ELEMENT_COLLECTION_MAPPING_REFERENCE_CLASS
- See Also:
- Constant Field Values
-
WARNING_INVALID_COLLECTION_USED_ON_LAZY_RELATION
public static final String WARNING_INVALID_COLLECTION_USED_ON_LAZY_RELATION
- See Also:
- Constant Field Values
-
WARNING_INCORRECT_DISCRIMINATOR_FORMAT
public static final String WARNING_INCORRECT_DISCRIMINATOR_FORMAT
- See Also:
- Constant Field Values
-
WARNING_PARTIONED_NOT_SET
public static final String WARNING_PARTIONED_NOT_SET
- See Also:
- Constant Field Values
-
REFERENCED_COLUMN_NOT_FOUND
public static final String REFERENCED_COLUMN_NOT_FOUND
- See Also:
- Constant Field Values
-
MULTIPLE_ID_FIELDS_WITHOUT_ID_CLASS
public static final String MULTIPLE_ID_FIELDS_WITHOUT_ID_CLASS
- See Also:
- Constant Field Values
-
INVERSE_ACCESS_TYPE_MAPPING_OVERRIDE
public static final String INVERSE_ACCESS_TYPE_MAPPING_OVERRIDE
- See Also:
- Constant Field Values
-
m_session
protected AbstractSession m_session
-
-
Constructor Detail
-
MetadataLogger
public MetadataLogger(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.
-
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 AbstractSession getSession()
INTERNAL: Set the session to log to.
-
shouldLog
public boolean shouldLog(LogLevel level, LogCategory category)
INTERNAL: Check if a message of the givenLogLevelandLogCategorywould actually be logged.- Parameters:
level- the log request level valuecategory- an EclipseLink logging category- Returns:
- value of
trueif the given message level will be logged orfalseotherwise
-
setSession
public void setSession(AbstractSession session)
INTERNAL: Set the session to log to.
-
-