Anyframe Core

anyframe.core.query
Interface IMappingInfo


public interface IMappingInfo

This is a class for the role of saving the mapping info of the defined table inside the query mapping XML file.

Author:
SoYon Lim, JongHoon Kim

Method Summary
 String getClassName()
          Transmits the related class name in defined in the arbitrary table mapping info
 String getDeleteQuery()
          Based on the arbitrary mapping info, trasmits by creating the DELETE query statement including hte Named Parameter based on the arbitrary mapping info (Named Parameter is "anyframe." + "related class's property name")
 String getInsertQuery()
          Tranmits by creating the INSERT query statement including the Named Parameter based on the arbitrary table mapping info.
 Map getMappingInfoAsMap()
          Tranmits the property name of the mapping class, arbitrary table's column name
 String[] getPrimaryKeyColumns()
          Transmits the Primary Key columns defined in the mapping info of the arbitrary table
 String getSelectByPrimaryKeyQuery()
          Based on the arbitrary mapping info, transmits by creating SELECT query statement including the Named Parameter.
 String getTableName()
          Transmits the table name defined inside the arbitrary table mapping info
 String getUpdateQuery()
          Tranmits by creating the UPDATE query statement including the Named Paremter based on the arbitrary table mapping info (Named Parameter is "anyframe." + "related class's property name")
 

Method Detail

getPrimaryKeyColumns

String[] getPrimaryKeyColumns()
Transmits the Primary Key columns defined in the mapping info of the arbitrary table

Returns:
Primary Key columns

getTableName

String getTableName()
Transmits the table name defined inside the arbitrary table mapping info

Returns:
table name

getClassName

String getClassName()
Transmits the related class name in defined in the arbitrary table mapping info

Returns:
related class name

getMappingInfoAsMap

Map getMappingInfoAsMap()
Tranmits the property name of the mapping class, arbitrary table's column name

Returns:
The column mapping info of the arbitrary table

getSelectByPrimaryKeyQuery

String getSelectByPrimaryKeyQuery()
Based on the arbitrary mapping info, transmits by creating SELECT query statement including the Named Parameter. The appropriate SELECT statement is created by using the defined PRIMARY KEY. (Named Parameter is "anyframe." + "related class's property name")

Returns:
SELECT query statement

getInsertQuery

String getInsertQuery()
Tranmits by creating the INSERT query statement including the Named Parameter based on the arbitrary table mapping info. (Named Parameter is "anyframe." + "related class's property name")

Returns:
INSERT query statement

getUpdateQuery

String getUpdateQuery()
Tranmits by creating the UPDATE query statement including the Named Paremter based on the arbitrary table mapping info (Named Parameter is "anyframe." + "related class's property name")

Returns:
UPDATE query statement

getDeleteQuery

String getDeleteQuery()
Based on the arbitrary mapping info, trasmits by creating the DELETE query statement including hte Named Parameter based on the arbitrary mapping info (Named Parameter is "anyframe." + "related class's property name")

Returns:
DELETE query statement

Anyframe Core

Copyright © 2008-2009 Samsung SDS. All Rights Reserved.