use of org.springframework.roo.classpath.PhysicalTypeMetadata in project spring-roo by spring-projects.
the class DbreDatabaseListenerImpl method isIdentifierDeletable.
private boolean isIdentifierDeletable(final JavaType identifierType) {
final PhysicalTypeMetadata governorPhysicalTypeMetadata = getPhysicalTypeMetadata(identifierType);
if (governorPhysicalTypeMetadata == null) {
return false;
}
// Check for added constructors, fields and methods
final ClassOrInterfaceTypeDetails managedIdentifier = governorPhysicalTypeMetadata.getMemberHoldingTypeDetails();
return managedIdentifier.getDeclaredConstructors().isEmpty() && managedIdentifier.getDeclaredFields().isEmpty() && managedIdentifier.getDeclaredMethods().isEmpty();
}
Aggregations