org.apache.ibatis.abator.api
Interface DAOMethodNameCalculator

All Known Implementing Classes:
DefaultDAOMethodNameCalculator, ExtendedDAOMethodNameCalculator

public interface DAOMethodNameCalculator

This interface is used to supply names for DAO methods. Users can provide different implementations if the supplied implementations aren't sufficient.

Author:
Jeff Butler

Method Summary
 java.lang.String getCountByExampleMethodName(IntrospectedTable introspectedTable)
          Calculates and returns a name for the count by example method.
 java.lang.String getDeleteByExampleMethodName(IntrospectedTable introspectedTable)
          Calculates and returns a name for the delete by example method.
 java.lang.String getDeleteByPrimaryKeyMethodName(IntrospectedTable introspectedTable)
          Calculates and returns a name for the delete by primary key method.
 java.lang.String getInsertMethodName(IntrospectedTable introspectedTable)
          Calculates and returns a name for the insert method.
 java.lang.String getSelectByExampleWithBLOBsMethodName(IntrospectedTable introspectedTable)
          Calculates and returns a name for the select by example with BLOBs method.
 java.lang.String getSelectByExampleWithoutBLOBsMethodName(IntrospectedTable introspectedTable)
          Calculates and returns a name for the select by example method.
 java.lang.String getSelectByPrimaryKeyMethodName(IntrospectedTable introspectedTable)
          Calculates and returns a name for the select by primary key method.
 java.lang.String getUpdateByExampleSelectiveMethodName(IntrospectedTable introspectedTable)
          Calculates and returns a name for the update by example selective method.
 java.lang.String getUpdateByExampleWithBLOBsMethodName(IntrospectedTable introspectedTable)
          Calculates and returns a name for the update by example with BLOBs method.
 java.lang.String getUpdateByExampleWithoutBLOBsMethodName(IntrospectedTable introspectedTable)
          Calculates and returns a name for the update by example without BLOBs method.
 java.lang.String getUpdateByPrimaryKeySelectiveMethodName(IntrospectedTable introspectedTable)
          Calculates and returns a name for the update by primary key selective method.
 java.lang.String getUpdateByPrimaryKeyWithBLOBsMethodName(IntrospectedTable introspectedTable)
          Calculates and returns a name for the update by primary key with BLOBs method.
 java.lang.String getUpdateByPrimaryKeyWithoutBLOBsMethodName(IntrospectedTable introspectedTable)
          Calculates and returns a name for the update by primary key without BLOBs method.
 

Method Detail

getInsertMethodName

java.lang.String getInsertMethodName(IntrospectedTable introspectedTable)
Calculates and returns a name for the insert method.

Parameters:
introspectedTable -
Returns:
the calculated name

getUpdateByPrimaryKeyWithoutBLOBsMethodName

java.lang.String getUpdateByPrimaryKeyWithoutBLOBsMethodName(IntrospectedTable introspectedTable)
Calculates and returns a name for the update by primary key without BLOBs method.

Parameters:
introspectedTable -
Returns:
the calculated name

getUpdateByPrimaryKeyWithBLOBsMethodName

java.lang.String getUpdateByPrimaryKeyWithBLOBsMethodName(IntrospectedTable introspectedTable)
Calculates and returns a name for the update by primary key with BLOBs method.

Parameters:
introspectedTable -
Returns:
the calculated name

getUpdateByPrimaryKeySelectiveMethodName

java.lang.String getUpdateByPrimaryKeySelectiveMethodName(IntrospectedTable introspectedTable)
Calculates and returns a name for the update by primary key selective method.

Parameters:
introspectedTable -
Returns:
the calculated name

getSelectByPrimaryKeyMethodName

java.lang.String getSelectByPrimaryKeyMethodName(IntrospectedTable introspectedTable)
Calculates and returns a name for the select by primary key method.

Parameters:
introspectedTable -
Returns:
the calculated name

getSelectByExampleWithoutBLOBsMethodName

java.lang.String getSelectByExampleWithoutBLOBsMethodName(IntrospectedTable introspectedTable)
Calculates and returns a name for the select by example method.

Parameters:
introspectedTable -
Returns:
the calculated name

getSelectByExampleWithBLOBsMethodName

java.lang.String getSelectByExampleWithBLOBsMethodName(IntrospectedTable introspectedTable)
Calculates and returns a name for the select by example with BLOBs method. If the table contains BLOBs, then Abator will generate different select by example methods - one including BLOBs, one not including BLOBs.

Parameters:
introspectedTable -
Returns:
the calculated name

getDeleteByPrimaryKeyMethodName

java.lang.String getDeleteByPrimaryKeyMethodName(IntrospectedTable introspectedTable)
Calculates and returns a name for the delete by primary key method.

Parameters:
introspectedTable -
Returns:
the calculated name

getDeleteByExampleMethodName

java.lang.String getDeleteByExampleMethodName(IntrospectedTable introspectedTable)
Calculates and returns a name for the delete by example method.

Parameters:
introspectedTable -
Returns:
the calculated name

getCountByExampleMethodName

java.lang.String getCountByExampleMethodName(IntrospectedTable introspectedTable)
Calculates and returns a name for the count by example method.

Parameters:
introspectedTable -
Returns:
the calculated name

getUpdateByExampleSelectiveMethodName

java.lang.String getUpdateByExampleSelectiveMethodName(IntrospectedTable introspectedTable)
Calculates and returns a name for the update by example selective method.

Parameters:
introspectedTable -
Returns:
the calculated name

getUpdateByExampleWithBLOBsMethodName

java.lang.String getUpdateByExampleWithBLOBsMethodName(IntrospectedTable introspectedTable)
Calculates and returns a name for the update by example with BLOBs method.

Parameters:
introspectedTable -
Returns:
the calculated name

getUpdateByExampleWithoutBLOBsMethodName

java.lang.String getUpdateByExampleWithoutBLOBsMethodName(IntrospectedTable introspectedTable)
Calculates and returns a name for the update by example without BLOBs method.

Parameters:
introspectedTable -
Returns:
the calculated name