Anyframe Core

anyframe.core.query
Interface IQueryInfo


public interface IQueryInfo

This is a class for the role of saving the info about query statement defined in the query mapping xml file.

Author:
SoYon Lim, JongHoon Kim

Method Summary
 boolean doesNeedColumnMapping()
          Checks whether to map in an arbitray class the execution results of appropriate query statement.
 int getFetchCountPerQuery()
          Tramsmits the size of result operated for the appropriate query statement.
 String[] getLobParamTypes()
          Transmits the defined Parameter (for Oracle 8i) in the case where a separate lobStatement is defined for handling the LOB type
 String getLobStatement()
          Transmits the statement (for Oracle 8i) in the case where an arbitrary lobStatement is defined for handling the LOB type data
 String getQueryId()
          Transmits the identifier of the appropriate query statement.
 String getQueryString()
          Transmits the defined query statement.
 String getResultClass()
          Transmits the class for saving the executed results of the appropriate query statement.
 String getResultMapper()
          Transmits the defined resultset mapper class.
 List getSqlParameterList()
          Transmits the SqlParameter list including the variable type, type name, etc. for replacing in the appropriate query statement.
 int getSqlType(int pos)
          Transmits the variable's sql types defined in the arbitrary order among the variables for replacing in the appropriate query statement
 int getSqlType(String name)
          Transmits the variable's sql types defined as arbitray name among the variables for replacing in the appropropriate query statement
 int[] getSqlTypes()
          Transmits the variable's sql types for replacing in the appropriate query statement
 boolean isCamelCase()
          When mapping in the defined class or Map for the appropriate query's execution results, check for whether to apply CamelCase
 boolean isDynamic()
          Checks whether the appropriate query statement is dynamic query.
 

Method Detail

getQueryString

String getQueryString()
Transmits the defined query statement.

Returns:
query statement

getQueryId

String getQueryId()
Transmits the identifier of the appropriate query statement.

Returns:
identifier of query statement

getResultClass

String getResultClass()
Transmits the class for saving the executed results of the appropriate query statement.

Returns:
result class

doesNeedColumnMapping

boolean doesNeedColumnMapping()
Checks whether to map in an arbitray class the execution results of appropriate query statement.

Returns:
In case of the result class is defined, then true, else false

isDynamic

boolean isDynamic()
Checks whether the appropriate query statement is dynamic query.

Returns:
isDynamic's value which is defined in the arbitrary query's configuration (default=true)

isCamelCase

boolean isCamelCase()
When mapping in the defined class or Map for the appropriate query's execution results, check for whether to apply CamelCase

Returns:
isCamelCase's value which is defined in the arbitrary query's configuration (default=true)

getFetchCountPerQuery

int getFetchCountPerQuery()
Tramsmits the size of result operated for the appropriate query statement.

Returns:
size of the result which is defined as the child element of an arbitrary query statement

getSqlParameterList

List getSqlParameterList()
Transmits the SqlParameter list including the variable type, type name, etc. for replacing in the appropriate query statement.

Returns:
SqlParameter list

getSqlType

int getSqlType(int pos)
Transmits the variable's sql types defined in the arbitrary order among the variables for replacing in the appropriate query statement

Parameters:
pos - Order of the arbitrary variable
Returns:
variable's sql type of the arbitrary place

getSqlTypes

int[] getSqlTypes()
Transmits the variable's sql types for replacing in the appropriate query statement

Returns:
sql type list of variables

getSqlType

int getSqlType(String name)
Transmits the variable's sql types defined as arbitray name among the variables for replacing in the appropropriate query statement

Parameters:
name - name of the arbitrary variable
Returns:
variable's sql type of the arbitrary name

getLobStatement

String getLobStatement()
Transmits the statement (for Oracle 8i) in the case where an arbitrary lobStatement is defined for handling the LOB type data

Returns:
lob statement for LOB handling

getLobParamTypes

String[] getLobParamTypes()
Transmits the defined Parameter (for Oracle 8i) in the case where a separate lobStatement is defined for handling the LOB type

Returns:
lob parameter for handling a LOB

getResultMapper

String getResultMapper()
Transmits the defined resultset mapper class.

Returns:
resultset mapper class name

Anyframe Core

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