org.mybatis.generator.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
 String getCountByExampleMethodName(IntrospectedTable introspectedTable)
          Calculates and returns a name for the count by example method.
 String getDeleteByExampleMethodName(IntrospectedTable introspectedTable)
          Calculates and returns a name for the delete by example method.
 String getDeleteByPrimaryKeyMethodName(IntrospectedTable introspectedTable)
          Calculates and returns a name for the delete by primary key method.
 String getInsertMethodName(IntrospectedTable introspectedTable)
          Calculates and returns a name for the insert method.
 String getInsertSelectiveMethodName(IntrospectedTable introspectedTable)
          Calculates and returns a name for the insert selective method.
 String getSelectByExampleWithBLOBsMethodName(IntrospectedTable introspectedTable)
          Calculates and returns a name for the select by example with BLOBs method.
 String getSelectByExampleWithoutBLOBsMethodName(IntrospectedTable introspectedTable)
          Calculates and returns a name for the select by example method.
 String getSelectByPrimaryKeyMethodName(IntrospectedTable introspectedTable)
          Calculates and returns a name for the select by primary key method.
 String getUpdateByExampleSelectiveMethodName(IntrospectedTable introspectedTable)
          Calculates and returns a name for the update by example selective method.
 String getUpdateByExampleWithBLOBsMethodName(IntrospectedTable introspectedTable)
          Calculates and returns a name for the update by example with BLOBs method.
 String getUpdateByExampleWithoutBLOBsMethodName(IntrospectedTable introspectedTable)
          Calculates and returns a name for the update by example without BLOBs method.
 String getUpdateByPrimaryKeySelectiveMethodName(IntrospectedTable introspectedTable)
          Calculates and returns a name for the update by primary key selective method.
 String getUpdateByPrimaryKeyWithBLOBsMethodName(IntrospectedTable introspectedTable)
          Calculates and returns a name for the update by primary key with BLOBs method.
 String getUpdateByPrimaryKeyWithoutBLOBsMethodName(IntrospectedTable introspectedTable)
          Calculates and returns a name for the update by primary key without BLOBs method.
 

Method Detail

getInsertMethodName

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

Parameters:
introspectedTable -
Returns:
the calculated name

getInsertSelectiveMethodName

String getInsertSelectiveMethodName(IntrospectedTable introspectedTable)
Calculates and returns a name for the insert selective method.

Parameters:
introspectedTable -
Returns:
the calculated name

getUpdateByPrimaryKeyWithoutBLOBsMethodName

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

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

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

Parameters:
introspectedTable -
Returns:
the calculated name

getSelectByPrimaryKeyMethodName

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

Parameters:
introspectedTable -
Returns:
the calculated name

getSelectByExampleWithoutBLOBsMethodName

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

Parameters:
introspectedTable -
Returns:
the calculated name

getSelectByExampleWithBLOBsMethodName

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

Parameters:
introspectedTable -
Returns:
the calculated name

getDeleteByPrimaryKeyMethodName

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

Parameters:
introspectedTable -
Returns:
the calculated name

getDeleteByExampleMethodName

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

Parameters:
introspectedTable -
Returns:
the calculated name

getCountByExampleMethodName

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

Parameters:
introspectedTable -
Returns:
the calculated name

getUpdateByExampleSelectiveMethodName

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

Parameters:
introspectedTable -
Returns:
the calculated name

getUpdateByExampleWithBLOBsMethodName

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

Parameters:
introspectedTable -
Returns:
the calculated name

getUpdateByExampleWithoutBLOBsMethodName

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

Parameters:
introspectedTable -
Returns:
the calculated name


Copyright © 2010-2012 MyBatis.org. All Rights Reserved.