public class MetadataValidator extends Object
Constructor and Description |
---|
MetadataValidator() |
Modifier and Type | Method and Description |
---|---|
void |
throwBothFieldsAndPropertiesAnnotatedException(Class javaClass)
INTERNAL:
This exception should be used to report a case where both fields and
properties of a class are annotated.
|
void |
throwCircularMappedByReferences(Class cls1,
String attributeName1,
Class cls2,
String attributeName2)
INTERNAL:
|
void |
throwClassNotFoundWhileConvertingClassNames(String className,
Exception exception)
INTERNAL:
|
void |
throwConflictingAccessTypeInEmbeddable(Class embeddableClass)
INTERNAL:
This exception should be used to report a case where an embeddable
class is used by entity classes having conflicting access-type and
embeddable's access-type is determined by enclosing entity's access-type.
|
void |
throwConflictingSequenceAndTableGeneratorsSpecified(String name,
String sequenceGeneratorLocation,
String tableGeneratorLocation)
INTERNAL:
|
void |
throwConflictingSequenceGeneratorsSpecified(String name,
String location1,
String location2)
INTERNAL:
|
void |
throwConflictingSequenceNameAndTablePkColumnValueSpecified(String name,
String sequenceGeneratorLocation,
String tableGeneratorLocation)
INTERNAL:
|
void |
throwConflictingTableGeneratorsSpecified(String name,
String location1,
String location2)
INTERNAL:
|
void |
throwCouldNotFindMapKey(String fieldOrPropertyName,
Class referenceClass,
DatabaseMapping mapping)
INTERNAL:
|
void |
throwEmbeddedIdAndIdFound(Class entityClass,
String attributeName,
String idAttributeName)
INTERNAL:
|
void |
throwEmbeddedIdHasNoAttributes(Class entityClass,
Class embeddableClass,
String accessType)
INTERNAL:
This exception should be used to report a case where an entity uses
EmbeddedId, but there is no attribute specified in the embeddable class.
|
void |
throwErrorProcessingNamedQueryAnnotation(Class entityClass,
String name,
Exception exception)
INTERNAL:
|
void |
throwExcessiveJoinColumnsSpecified(Class entityClass,
Object element)
INTERNAL:
|
void |
throwExcessivePrimaryKeyJoinColumnsSpecified(Class entityClass,
AnnotatedElement element)
INTERNAL:
|
void |
throwIncompleteJoinColumnsSpecified(Class entityClass,
Object element)
INTERNAL:
|
void |
throwIncompletePrimaryKeyJoinColumnsSpecified(Class entityClass,
AnnotatedElement annotatedElement)
INTERNAL:
|
void |
throwIncorrectOverridingOfAccessType(Class javaClass,
String xmlAccessType,
String annotAccessType)
INTERNAL:
This exception should be used to report a case where access-type that
is determined using XML is *different* from access-type determined
using annotations in the class.
|
void |
throwInvalidCallbackMethod(Class listenerClass,
String methodName)
INTERNAL:
|
void |
throwInvalidCollectionTypeForRelationship(Class entityClass,
Class rawClass,
Object element)
INTERNAL
|
void |
throwInvalidCompositePKAttribute(Class entityClass,
String pkClassName,
String attributeName,
Type expectedType,
Type type)
INTERNAL:
|
void |
throwInvalidCompositePKSpecification(Class entityClass,
String idClassName)
INTERNAL:
|
void |
throwInvalidEmbeddableAttribute(Class entityClass,
String attributeName,
Class embeddedClass,
String embeddedAttributeName)
INTERNAL:
|
void |
throwInvalidEmbeddedAttribute(Class javaClass,
String attributeName,
Class embeddableClass)
INTERNAL:
This exception should be used to report a case where the type of an
embedded field or property is not Embeddable.
|
void |
throwInvalidMappingEncountered(Class entityClass,
Class targetClass)
INTERNAL:
|
void |
throwInvalidOrderByValue(Class entityClass,
String propertyOrFieldName,
Class referenceClass,
String attributeName)
INTERNAL:
|
void |
throwInvalidTypeForEnumeratedAttribute(Class entityClass,
String attributeName,
Class referenceClass)
INTERNAL:
|
void |
throwInvalidTypeForLOBAttribute(Class entityClass,
String attributeName,
Class referenceClass)
INTERNAL:
|
void |
throwInvalidTypeForSerializedAttribute(Class entityClass,
String attributeName,
Class referenceClass)
INTERNAL:
|
void |
throwInvalidTypeForTemporalAttribute(Class entityClass,
String attributeName,
Class referenceClass)
INTERNAL:
|
void |
throwInvalidTypeForVersionAttribute(Class entityClass,
String attributeName,
Class lockingType)
INTERNAL:
|
void |
throwMappingAnnotationsAppliedToTransientAttribute(AnnotatedElement annotatedElement)
INTERNAL:
|
void |
throwMappingFileNotFound(String puName,
String mappingFile)
INTERNAL:
This exception should be used when there is no mapping file found
found in class path.
|
void |
throwMultipleEmbeddedIdsFound(Class entityClass,
String attributeName,
String embeddedIdAttributeName)
INTERNAL:
|
void |
throwNoCorrespondingSetterMethodDefined(Class entityClass,
Method method)
INTERNAL:
|
void |
throwNoMappedByAttributeFound(Class owningClass,
String owningAttributeName,
Class entityClass,
String attributeName)
INTERNAL:
|
void |
throwNonEntityTargetInRelationship(Class javaClass,
Class targetEntity,
AnnotatedElement annotatedElement)
INTERNAL:
This exception should be used to report use of non-entity class as target
of a relationship.
|
void |
throwNonUniqueEntityName(String clsName1,
String clsName2,
String name)
INTERNAL:
|
void |
throwNonUniqueMappingFileName(String puName,
String mf)
INTERNAL:
This exception should be used when there are multiple mapping files with
same name found in class path.
|
void |
throwNoPrimaryKeyAnnotationsFound(Class entityClass)
INTERNAL:
|
void |
throwNoTemporalTypeSpecified(Class entityClass,
String attributeName)
INTERNAL:
|
void |
throwOnlyOneGeneratedValueIsAllowed(Class entityClass,
String existingField,
String otherField)
INTERNAL:
|
void |
throwRelationshipHasColumnSpecified(Class entityClass,
String attributeName)
INTERNAL:
|
void |
throwSequenceGeneratorUsingAReservedName(String location,
String reservedName)
INTERNAL:
|
void |
throwTableGeneratorUsingAReservedName(String location,
String reservedName)
INTERNAL:
|
void |
throwTablePerClassInheritanceNotSupported(Class cls)
INTERNAL:
|
void |
throwUnableToDetermineClassForField(String attributeName,
Class entityClass)
INTERNAL:
|
void |
throwUnableToDetermineClassForProperty(String attributeName,
Class entityClass)
INTERNAL:
|
void |
throwUnableToDetermineTargetEntity(String attributeName,
Class entityClass)
INTERNAL:
|
void |
throwUniDirectionalOneToManyHasJoinColumnSpecified(String attributeName,
Class entityClass)
INTERNAL:
|
public void throwBothFieldsAndPropertiesAnnotatedException(Class javaClass)
public void throwCircularMappedByReferences(Class cls1, String attributeName1, Class cls2, String attributeName2)
public void throwConflictingAccessTypeInEmbeddable(Class embeddableClass)
public void throwClassNotFoundWhileConvertingClassNames(String className, Exception exception)
public void throwConflictingSequenceAndTableGeneratorsSpecified(String name, String sequenceGeneratorLocation, String tableGeneratorLocation)
public void throwConflictingSequenceGeneratorsSpecified(String name, String location1, String location2)
public void throwConflictingSequenceNameAndTablePkColumnValueSpecified(String name, String sequenceGeneratorLocation, String tableGeneratorLocation)
public void throwConflictingTableGeneratorsSpecified(String name, String location1, String location2)
public void throwCouldNotFindMapKey(String fieldOrPropertyName, Class referenceClass, DatabaseMapping mapping)
public void throwEmbeddedIdAndIdFound(Class entityClass, String attributeName, String idAttributeName)
public void throwEmbeddedIdHasNoAttributes(Class entityClass, Class embeddableClass, String accessType)
public void throwErrorProcessingNamedQueryAnnotation(Class entityClass, String name, Exception exception)
public void throwExcessiveJoinColumnsSpecified(Class entityClass, Object element)
public void throwExcessivePrimaryKeyJoinColumnsSpecified(Class entityClass, AnnotatedElement element)
public void throwIncompleteJoinColumnsSpecified(Class entityClass, Object element)
public void throwIncompletePrimaryKeyJoinColumnsSpecified(Class entityClass, AnnotatedElement annotatedElement)
public void throwIncorrectOverridingOfAccessType(Class javaClass, String xmlAccessType, String annotAccessType)
public void throwInvalidCallbackMethod(Class listenerClass, String methodName)
public void throwInvalidCollectionTypeForRelationship(Class entityClass, Class rawClass, Object element)
public void throwInvalidCompositePKAttribute(Class entityClass, String pkClassName, String attributeName, Type expectedType, Type type)
public void throwInvalidCompositePKSpecification(Class entityClass, String idClassName)
public void throwInvalidEmbeddableAttribute(Class entityClass, String attributeName, Class embeddedClass, String embeddedAttributeName)
public void throwInvalidEmbeddedAttribute(Class javaClass, String attributeName, Class embeddableClass)
public void throwInvalidOrderByValue(Class entityClass, String propertyOrFieldName, Class referenceClass, String attributeName)
public void throwInvalidTypeForEnumeratedAttribute(Class entityClass, String attributeName, Class referenceClass)
public void throwInvalidTypeForLOBAttribute(Class entityClass, String attributeName, Class referenceClass)
public void throwInvalidTypeForSerializedAttribute(Class entityClass, String attributeName, Class referenceClass)
public void throwInvalidTypeForTemporalAttribute(Class entityClass, String attributeName, Class referenceClass)
public void throwInvalidTypeForVersionAttribute(Class entityClass, String attributeName, Class lockingType)
public void throwInvalidMappingEncountered(Class entityClass, Class targetClass)
public void throwMappingAnnotationsAppliedToTransientAttribute(AnnotatedElement annotatedElement)
public void throwMappingFileNotFound(String puName, String mappingFile)
public void throwMultipleEmbeddedIdsFound(Class entityClass, String attributeName, String embeddedIdAttributeName)
public void throwNoCorrespondingSetterMethodDefined(Class entityClass, Method method)
public void throwNoMappedByAttributeFound(Class owningClass, String owningAttributeName, Class entityClass, String attributeName)
public void throwNonEntityTargetInRelationship(Class javaClass, Class targetEntity, AnnotatedElement annotatedElement)
public void throwNonUniqueEntityName(String clsName1, String clsName2, String name)
public void throwNonUniqueMappingFileName(String puName, String mf)
public void throwNoPrimaryKeyAnnotationsFound(Class entityClass)
public void throwNoTemporalTypeSpecified(Class entityClass, String attributeName)
public void throwOnlyOneGeneratedValueIsAllowed(Class entityClass, String existingField, String otherField)
public void throwRelationshipHasColumnSpecified(Class entityClass, String attributeName)
public void throwSequenceGeneratorUsingAReservedName(String location, String reservedName)
public void throwTableGeneratorUsingAReservedName(String location, String reservedName)
public void throwTablePerClassInheritanceNotSupported(Class cls)
public void throwUnableToDetermineClassForField(String attributeName, Class entityClass)
public void throwUnableToDetermineClassForProperty(String attributeName, Class entityClass)
public void throwUnableToDetermineTargetEntity(String attributeName, Class entityClass)
Copyright © 2024. All rights reserved.