org.springframework.roo.addon.finder
Class FinderMetadata

java.lang.Object
  extended by org.springframework.roo.metadata.AbstractMetadataItem
      extended by org.springframework.roo.classpath.itd.AbstractItdTypeDetailsProvidingMetadataItem
          extended by org.springframework.roo.addon.finder.FinderMetadata
All Implemented Interfaces:
org.springframework.roo.classpath.itd.ItdTypeDetailsProvidingMetadataItem, org.springframework.roo.metadata.MetadataItem

public class FinderMetadata
extends org.springframework.roo.classpath.itd.AbstractItdTypeDetailsProvidingMetadataItem

Metadata for RooEntity.

Any getter produced by this metadata is automatically included in the BeanInfoMetadata.

Since:
1.0
Author:
Stefan Schmidt, Ben Alex

Field Summary
 
Fields inherited from class org.springframework.roo.classpath.itd.AbstractItdTypeDetailsProvidingMetadataItem
aspectName, builder, destination, governorPhysicalTypeMetadata, governorTypeDetails, itdTypeDetails
 
Fields inherited from class org.springframework.roo.metadata.AbstractMetadataItem
valid
 
Constructor Summary
FinderMetadata(String identifier, org.springframework.roo.model.JavaType aspectName, org.springframework.roo.classpath.PhysicalTypeMetadata governorPhysicalTypeMetadata, org.springframework.roo.addon.beaninfo.BeanInfoMetadata beanInfoMetadata, org.springframework.roo.addon.entity.EntityMetadata entityMetadata)
           
 
Method Summary
static String createIdentifier(org.springframework.roo.model.JavaType javaType, org.springframework.roo.project.Path path)
           
 org.springframework.roo.classpath.details.MethodMetadata getDynamicFinderMethod(String dynamicFinderMethodName, String tableName)
          Locates a dynamic finder method of the specified name, or creates one on demand if not present.
static org.springframework.roo.model.JavaType getJavaType(String metadataIdentificationString)
           
static String getMetadataIdentiferType()
           
static org.springframework.roo.project.Path getPath(String metadataIdentificationString)
           
static boolean isValid(String metadataIdentificationString)
           
 String toString()
           
 
Methods inherited from class org.springframework.roo.classpath.itd.AbstractItdTypeDetailsProvidingMetadataItem
getItdTypeDetails
 
Methods inherited from class org.springframework.roo.metadata.AbstractMetadataItem
getId, isValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.roo.metadata.MetadataItem
getId, isValid
 

Constructor Detail

FinderMetadata

public FinderMetadata(String identifier,
                      org.springframework.roo.model.JavaType aspectName,
                      org.springframework.roo.classpath.PhysicalTypeMetadata governorPhysicalTypeMetadata,
                      org.springframework.roo.addon.beaninfo.BeanInfoMetadata beanInfoMetadata,
                      org.springframework.roo.addon.entity.EntityMetadata entityMetadata)
Method Detail

getDynamicFinderMethod

public org.springframework.roo.classpath.details.MethodMetadata getDynamicFinderMethod(String dynamicFinderMethodName,
                                                                                       String tableName)
Locates a dynamic finder method of the specified name, or creates one on demand if not present.

It is required that the requested name was defined in the RooEntity.finders(). If it is not present, an exception is thrown.

Returns:
the user-defined method, or an ITD-generated method (never returns null)

toString

public String toString()
Overrides:
toString in class org.springframework.roo.classpath.itd.AbstractItdTypeDetailsProvidingMetadataItem

getMetadataIdentiferType

public static final String getMetadataIdentiferType()

createIdentifier

public static final String createIdentifier(org.springframework.roo.model.JavaType javaType,
                                            org.springframework.roo.project.Path path)

getJavaType

public static final org.springframework.roo.model.JavaType getJavaType(String metadataIdentificationString)

getPath

public static final org.springframework.roo.project.Path getPath(String metadataIdentificationString)

isValid

public static boolean isValid(String metadataIdentificationString)


Copyright © 2009-2010 VMware, Inc. All Rights Reserved.