@Service public class PersistenceMemberLocatorImpl extends Object implements PersistenceMemberLocator
PersistenceMemberLocator scans for the
presence of persistence ID tags for MemberDetails for a given domain
type.| Constructor and Description |
|---|
PersistenceMemberLocatorImpl() |
| Modifier and Type | Method and Description |
|---|---|
List<FieldMetadata> |
getEmbeddedIdentifierFields(org.springframework.roo.model.JavaType domainType)
Locates embedded identifier types for a given domain type.
|
MethodMetadata |
getIdentifierAccessor(org.springframework.roo.model.JavaType domainType)
Returns the ID accessor for the given domain type
|
List<FieldMetadata> |
getIdentifierFields(org.springframework.roo.model.JavaType domainType)
Returns the identifier fields of the given domain type.
|
org.springframework.roo.model.JavaType |
getIdentifierType(org.springframework.roo.model.JavaType domainType)
Returns the identifier type of the given domain type.
|
MethodMetadata |
getVersionAccessor(org.springframework.roo.model.JavaType domainType)
Returns the version accessor for the given domain type.
|
FieldMetadata |
getVersionField(org.springframework.roo.model.JavaType domainType)
Locates the version field for a given domain type.
|
public List<FieldMetadata> getEmbeddedIdentifierFields(org.springframework.roo.model.JavaType domainType)
PersistenceMemberLocatorgetEmbeddedIdentifierFields in interface PersistenceMemberLocatordomainType - The domain type (needs to be part of the project)public MethodMetadata getIdentifierAccessor(org.springframework.roo.model.JavaType domainType)
PersistenceMemberLocatorgetIdentifierAccessor in interface PersistenceMemberLocatordomainType - the domain type (can be null)null if the given type is null or does
not have an ID accessorpublic List<FieldMetadata> getIdentifierFields(org.springframework.roo.model.JavaType domainType)
PersistenceMemberLocatorgetIdentifierFields in interface PersistenceMemberLocatordomainType - The domain type (can be null)public org.springframework.roo.model.JavaType getIdentifierType(org.springframework.roo.model.JavaType domainType)
PersistenceMemberLocatorgetIdentifierType in interface PersistenceMemberLocatordomainType - The domain type (can be null)public MethodMetadata getVersionAccessor(org.springframework.roo.model.JavaType domainType)
PersistenceMemberLocatorgetVersionAccessor in interface PersistenceMemberLocatordomainType - the domain type (can be null)null if the given type is null or does
not have a version accessorpublic FieldMetadata getVersionField(org.springframework.roo.model.JavaType domainType)
PersistenceMemberLocatorgetVersionField in interface PersistenceMemberLocatordomainType - The domain type (needs to be part of the project)Copyright © 2009–2016. All rights reserved.