com.bm.introspectors
Interface Introspector<T>

Type Parameters:
T - - the type of the inspected class
All Known Implementing Classes:
AbstractPersistentClassIntrospector, EmbeddedClassIntrospector, EntityBeanIntrospector

public interface Introspector<T>

This interface represents different introspectors like EntityBeanIntrospector.

Since:
07.10.2005
Author:
Daniel Wiese

Method Summary
 java.lang.Object getField(T instance, Property toGet)
          Returns a value of an field.
 java.util.List<Property> getPersitentProperties()
          Returns the persistent fields.
 java.util.Set<Property> getPkFields()
          Return the primary key fields.
 PersistentPropertyInfo getPresistentFieldInfo(Property toCheck)
          This method returns informations about a peristent field.
 PrimaryKeyInfo getPrimaryKeyInfo(Property toCheck)
          This method returns informations about a primary key field.
 void setField(T instance, Property toSet, java.lang.Object value)
          Sets a value of an field.
 

Method Detail

getPresistentFieldInfo

PersistentPropertyInfo getPresistentFieldInfo(Property toCheck)
This method returns informations about a peristent field.

Parameters:
toCheck - - the field to check
Returns:
- the information about the field

getPrimaryKeyInfo

PrimaryKeyInfo getPrimaryKeyInfo(Property toCheck)
This method returns informations about a primary key field.

Parameters:
toCheck - - the field to check
Returns:
- the information about the field

getPersitentProperties

java.util.List<Property> getPersitentProperties()
Returns the persistent fields.

Returns:
Returns the persitentFields.

getPkFields

java.util.Set<Property> getPkFields()
Return the primary key fields.

Returns:
Returns the pkFields.

getField

java.lang.Object getField(T instance,
                          Property toGet)
                          throws java.lang.IllegalAccessException
Returns a value of an field.

Parameters:
instance - - the instance
toGet - - the field to read the value
Returns:
- the readed value
Throws:
java.lang.IllegalAccessException - - in error case

setField

void setField(T instance,
              Property toSet,
              java.lang.Object value)
              throws java.lang.IllegalAccessException
Sets a value of an field.

Parameters:
instance - - the instance
toSet - - the field to set the value
value - - the new value
Throws:
java.lang.IllegalAccessException - - in error case


Copyright © 2008. All Rights Reserved.