Class PropertiesSpecificationImpl<X,Y,K,V>
java.lang.Object
cz.cvut.kbss.jopa.model.metamodel.PropertiesSpecificationImpl<X,Y,K,V>
- All Implemented Interfaces:
FieldSpecification<X,
,Y> PropertiesSpecification<X,
Y, K, V>
public class PropertiesSpecificationImpl<X,Y,K,V>
extends Object
implements PropertiesSpecification<X,Y,K,V>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Method Summary
Modifier and TypeMethodDescriptionstatic <X,
Y, K, V> PropertiesSpecificationImpl.PropertiesSpecificationBuilder declaringType
(ManagedType<X> declaringType) Return the managed type representing the type in which the attribute was declared.Whether the association is lazily loaded or must be eagerly fetched.Return the java.lang.reflect.Member for the represented attribute.Return the Java type of the represented attribute.getName()
Return the name of the attribute.Gets Java class whose instances are used to represent property identifier.Gets Java class whose instances are used to represent property values.boolean
If this field is inferred, can it contain explicit data as well?boolean
Is the attribute collection-valued (represents a Collection, Set, List, or Map).boolean
Whether this field can contain inferred data.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cz.cvut.kbss.jopa.model.metamodel.FieldSpecification
isMappedAttribute
-
Method Details
-
getDeclaringType
Description copied from interface:FieldSpecification
Return the managed type representing the type in which the attribute was declared.- Specified by:
getDeclaringType
in interfaceFieldSpecification<X,
Y> - Returns:
- declaring type
-
getFetchType
Description copied from interface:FieldSpecification
Whether the association is lazily loaded or must be eagerly fetched.- Specified by:
getFetchType
in interfaceFieldSpecification<X,
Y> - Returns:
- Fetch type of the field specification
-
getJavaField
Description copied from interface:FieldSpecification
Return the java.lang.reflect.Member for the represented attribute.- Specified by:
getJavaField
in interfaceFieldSpecification<X,
Y> - Returns:
- corresponding java.lang.reflect.Member
-
getJavaType
Description copied from interface:FieldSpecification
Return the Java type of the represented attribute.- Specified by:
getJavaType
in interfaceFieldSpecification<X,
Y> - Returns:
- Java type
-
isInferred
public boolean isInferred()Description copied from interface:FieldSpecification
Whether this field can contain inferred data.- Specified by:
isInferred
in interfaceFieldSpecification<X,
Y> - Returns:
- Whether field is inferred
- See Also:
-
includeExplicit
public boolean includeExplicit()Description copied from interface:FieldSpecification
If this field is inferred, can it contain explicit data as well?- Specified by:
includeExplicit
in interfaceFieldSpecification<X,
Y> - Returns:
- Whether inferred field can contain explicit knowledge
- See Also:
-
getName
Description copied from interface:FieldSpecification
Return the name of the attribute.- Specified by:
getName
in interfaceFieldSpecification<X,
Y> - Returns:
- name
-
isCollection
public boolean isCollection()Description copied from interface:FieldSpecification
Is the attribute collection-valued (represents a Collection, Set, List, or Map).- Specified by:
isCollection
in interfaceFieldSpecification<X,
Y> - Returns:
- boolean indicating whether the attribute is collection-valued
-
getPropertyIdentifierType
Description copied from interface:PropertiesSpecification
- Specified by:
getPropertyIdentifierType
in interfacePropertiesSpecification<X,
Y, K, V> - Returns:
- Property identifier class
-
getPropertyValueType
Description copied from interface:PropertiesSpecification
- Specified by:
getPropertyValueType
in interfacePropertiesSpecification<X,
Y, K, V> - Returns:
- Property value class
-
declaringType
public static <X,Y, PropertiesSpecificationImpl.PropertiesSpecificationBuilder declaringTypeK, V> (ManagedType<X> declaringType)
-