@Deprecated public abstract class GlueQueryStringHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CLOSE_PARENTHESIS
Deprecated.
|
static String |
CLOSE_PARENTHESIS_NAVI_PAGE
Deprecated.
|
static String |
COUNT_STMT
Deprecated.
|
static String |
COUNT_STMT_MYSQL
Deprecated.
|
static String |
INSERT_AUDIT_ATTR_STMT
Deprecated.
|
static String |
INSERT_AUDIT_VALUE_STMT
Deprecated.
|
static String |
OPEN_PARENTHESIS
Deprecated.
|
static String |
ORDER_BY_CLAUSE
Deprecated.
|
static String |
SELECT
Deprecated.
|
static String |
SELECT_HEADER
Deprecated.
|
static String |
SELECT_II
Deprecated.
|
static String |
SELECT_TAIL
Deprecated.
|
static String |
SQLSERVER_TOP_KEYWORD
Deprecated.
|
static String |
UPDATE_AUDIT_STMT
Deprecated.
|
static String |
WHERE
Deprecated.
|
Constructor and Description |
---|
GlueQueryStringHelper()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static String |
createQueryStmtWhereOrderByClause(String query,
String whereClause,
String orderByClause)
Deprecated.
자바독을 자세하게 작성한다.
|
static String |
getAuditStatement(String query,
int dmltype)
Deprecated.
|
static String |
getAuditStatementForInsert(String query)
Deprecated.
|
static String |
getAuditStatementForUpdate(String query)
Deprecated.
|
static String |
getBindingName(String str)
Deprecated.
Internal Use only.
|
static String |
getCountQuery(String query)
Deprecated.
Argument로 주어지는 쿼리문장을 기반으로 레코드 총 개수를 얻을 수 있는 쿼리를 생성한다.
|
static int |
getDmlType(String queryStmt)
Deprecated.
|
static boolean |
isMSSQLDriver()
Deprecated.
|
static boolean |
isOracleDriver()
Deprecated.
|
static String |
makeOrderByClause(String str1,
String str2)
Deprecated.
Internal Use only.
Code : String orderby = GlueQueryStringHelper.makeOrderByClause("deptno asc","empno"); System.out.println(orderby); Result : deptno asc, empno |
static void |
setDatabaseProductName(String databaseProductName)
Deprecated.
DBMS에 따른 JDBC Driver 설정.
|
public static final String WHERE
public static final String SELECT_HEADER
public static final String SELECT_TAIL
public static final String ORDER_BY_CLAUSE
@Deprecated public static final String OPEN_PARENTHESIS
@Deprecated public static final String CLOSE_PARENTHESIS
@Deprecated public static final String CLOSE_PARENTHESIS_NAVI_PAGE
@Deprecated public static final String SELECT
@Deprecated public static final String SELECT_II
@Deprecated public static final String COUNT_STMT_MYSQL
@Deprecated public static final String COUNT_STMT
@Deprecated public static final String SQLSERVER_TOP_KEYWORD
@Deprecated public static final String UPDATE_AUDIT_STMT
@Deprecated public static final String INSERT_AUDIT_ATTR_STMT
@Deprecated public static final String INSERT_AUDIT_VALUE_STMT
public static String getCountQuery(String query) throws GlueBadSqlGrammarException
원본 쿼리: "SELECT EMPNO, SAL FROM TABLE WHERE SAL > ? ORDER BY SAL" 반환되는 쿼리: 1. SQL Server) "SELECT COUNT(1) FROM (SELECT TOP 100 PERCENT EMPNO, SAL FROM TABLE WHERE SAL > ? ORDER BY SAL) FIND_FOR_NAVIGATION_PAGE" 2. Oracle) "SELECT COUNT(1) FROM (SELECT EMPNO, SAL FROM TABLE WHERE SAL > ? ORDER BY SAL) FIND_FOR_NAVIGATION_PAGE 3. MySQL "SELECT COUNT(0) FROM (SELECT EMPNO, SAL FROM TABLE WHERE SAL > ? ORDER BY SAL) FIND_FOR_NAVIGATION_PAGE
query
- 쿼리 문장GlueBadSqlGrammarException
public static String getAuditStatementForUpdate(String query)
query
- public static String getAuditStatementForInsert(String query)
query
- public static String getAuditStatement(String query, int dmltype)
query
- dmltype
- public static void setDatabaseProductName(String databaseProductName)
1. Oracle DBMS Name: Oracle 2. DB2 DBMS Name: DB2/NT 3. MSSQL DBMS Name: Microsoft SQL Server 4. MySQL DBMS Name: MySQL 5. Postgre DBMS Name: PostgreSQL 6. SQLLite DBMS Name: SQLite
databaseProductName
- public static boolean isMSSQLDriver()
public static boolean isOracleDriver()
public static String createQueryStmtWhereOrderByClause(String query, String whereClause, String orderByClause)
orderByClause
- whereClause
- query
- public static int getDmlType(String queryStmt)
queryStmt
- public static String getBindingName(String str)
Code : String name = GlueQueryStringHelper.getBindingName("empno=:EmpnoP"); System.out.println(name); Result : EmpnoP
str
- Copyright © 2013–2021 POSCO ICT. All rights reserved.