com.jenkov.mrpersister.itf.mapping
Interface IDbNameGuesser

All Known Implementing Classes:
DbNameGuesser

public interface IDbNameGuesser

This interface represents the functions made available by the database name guessers used in Mr. Persister. The responsibility of the database name guesser is to "guess" (generate) possible either table names from class names, or to "guess" possible column names from class method names (getters and setters).

The database name guesser is used internally in the object mapper. The names generated by the database name guesser are used to feed the database name determiner that determines which of the name guesses (generated possible names) is the correct one.

Author:
Jakob Jenkov, Jenkov Development.

Method Summary
 java.util.Collection getPossibleColumnNames(java.lang.reflect.Method member)
          Returns a List containing possible database column names for the given class objectMethod name.
 java.util.Collection getPossibleTableNames(java.lang.Class object)
          Returns a List containing possible table names for the given class name.
 

Method Detail

getPossibleColumnNames

java.util.Collection getPossibleColumnNames(java.lang.reflect.Method member)
Returns a List containing possible database column names for the given class objectMethod name.

Parameters:
member - The objectMethod to guess column names for.
Returns:
A List of String instances representing the guesses (possible names).

getPossibleTableNames

java.util.Collection getPossibleTableNames(java.lang.Class object)
Returns a List containing possible table names for the given class name.

Parameters:
object - The object to guess table names for.
Returns:
The List of String instances representing the guesses (possible names).