Class JpaLinkDefinition<D extends JpaDataNodeDefinition>
- java.lang.Object
-
- com.evolveum.midpoint.repo.sql.query2.definition.JpaLinkDefinition<D>
-
- All Implemented Interfaces:
Visitable
,DebugDumpable
- Direct Known Subclasses:
JpaAnyItemLinkDefinition
public class JpaLinkDefinition<D extends JpaDataNodeDefinition> extends Object implements Visitable, DebugDumpable
- Author:
- mederly
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description JpaLinkDefinition(@NotNull ItemPath itemPath, String jpaName, CollectionSpecification collectionSpecification, boolean embedded, D targetDefinition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Visitor visitor)
String
debugDump(int indent)
CollectionSpecification
getCollectionSpecification()
@NotNull ItemPath
getItemPath()
String
getJpaName()
Class<D>
getTargetClass()
D
getTargetDefinition()
boolean
hasJpaRepresentation()
Has this link JPA representation? I.e.boolean
isEmbedded()
boolean
isMultivalued()
boolean
matchesExactly(ItemPath itemPath)
boolean
matchesStartOf(ItemPath itemPath)
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
-
-
-
Constructor Detail
-
JpaLinkDefinition
public JpaLinkDefinition(@NotNull @NotNull ItemPath itemPath, String jpaName, CollectionSpecification collectionSpecification, boolean embedded, @NotNull D targetDefinition)
-
-
Method Detail
-
getItemPath
@NotNull public @NotNull ItemPath getItemPath()
-
getJpaName
public String getJpaName()
-
getCollectionSpecification
public CollectionSpecification getCollectionSpecification()
-
isEmbedded
public boolean isEmbedded()
-
getTargetDefinition
@NotNull public D getTargetDefinition()
-
matchesExactly
public boolean matchesExactly(ItemPath itemPath)
-
matchesStartOf
public boolean matchesStartOf(ItemPath itemPath)
-
isMultivalued
public boolean isMultivalued()
-
hasJpaRepresentation
public boolean hasJpaRepresentation()
Has this link JPA representation? I.e. is it represented as a getter? Some links, e.g. metadata and construction, are not.
-
accept
public void accept(Visitor visitor)
- Specified by:
accept
in interfaceVisitable<D extends JpaDataNodeDefinition>
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
-