Package net.sf.jkniv.sqlegance
Class DotQueryNameStrategy
- java.lang.Object
-
- net.sf.jkniv.sqlegance.DotQueryNameStrategy
-
- All Implemented Interfaces:
QueryNameStrategy
public class DotQueryNameStrategy extends Object implements QueryNameStrategy
-
-
Constructor Summary
Constructors Constructor Description DotQueryNameStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoAddName(Object o)Return the default query name at XML file to retrieve an object by 'add' method.StringtoGetName(Object o)Return the default query name at XML file to retrieve an object by 'get' method.StringtoListName(Object o)Return the default query name at XML file to retrieve an object by 'list' method.StringtoRemoveName(Object o)Return the default query name at XML file to retrieve an object by 'remove' method.StringtoUpdateName(Object o)Return the default query name at XML file to retrieve an object by 'update' method.
-
-
-
Method Detail
-
toGetName
public String toGetName(Object o)
Description copied from interface:QueryNameStrategyReturn the default query name at XML file to retrieve an object by 'get' method.- Specified by:
toGetNamein interfaceQueryNameStrategy- Parameters:
o- instance of object that will be persisted- Returns:
- name of query method
-
toAddName
public String toAddName(Object o)
Description copied from interface:QueryNameStrategyReturn the default query name at XML file to retrieve an object by 'add' method.- Specified by:
toAddNamein interfaceQueryNameStrategy- Parameters:
o- instance of object that will be persisted- Returns:
- name of query method
-
toRemoveName
public String toRemoveName(Object o)
Description copied from interface:QueryNameStrategyReturn the default query name at XML file to retrieve an object by 'remove' method.- Specified by:
toRemoveNamein interfaceQueryNameStrategy- Parameters:
o- instance of object that will be persisted- Returns:
- name of query method
-
toUpdateName
public String toUpdateName(Object o)
Description copied from interface:QueryNameStrategyReturn the default query name at XML file to retrieve an object by 'update' method.- Specified by:
toUpdateNamein interfaceQueryNameStrategy- Parameters:
o- instance of object that will be persisted- Returns:
- name of query method
-
toListName
public String toListName(Object o)
Description copied from interface:QueryNameStrategyReturn the default query name at XML file to retrieve an object by 'list' method.- Specified by:
toListNamein interfaceQueryNameStrategy- Parameters:
o- instance of object that will be persisted- Returns:
- name of query method
-
-