/** * Returns the table name or all after the FROM clause of the user specified * query to retrieve instances. * * @param onlyTableName true if only the table name should be returned, false * otherwise * @return the end of the query */ private String endOfQuery(boolean onlyTableName) { String table; int beginIndex, endIndex; beginIndex = m_query.indexOf("FROM ") + 5; while (m_query.charAt(beginIndex) == ' ') { beginIndex++; } endIndex = m_query.indexOf(" ", beginIndex); if (endIndex != -1 && onlyTableName) { table = m_query.substring(beginIndex, endIndex); } else { table = m_query.substring(beginIndex); } if (m_DataBaseConnection.getUpperCase()) { table = table.toUpperCase(); } return table; }
/** * Returns the table name or all after the FROM clause of the user specified * query to retrieve instances. * * @param onlyTableName true if only the table name should be returned, false * otherwise * @return the end of the query */ private String endOfQuery(boolean onlyTableName) { String table; int beginIndex, endIndex; beginIndex = m_query.indexOf("FROM ") + 5; while (m_query.charAt(beginIndex) == ' ') { beginIndex++; } endIndex = m_query.indexOf(" ", beginIndex); if (endIndex != -1 && onlyTableName) { table = m_query.substring(beginIndex, endIndex); } else { table = m_query.substring(beginIndex); } if (m_DataBaseConnection.getUpperCase()) { table = table.toUpperCase(); } return table; }
order.append(" ORDER BY "); for (int i = 0; i < m_orderBy.size() - 1; i++) { if (m_DataBaseConnection.getUpperCase()) { order.append(m_orderBy.get(i).toUpperCase()); } else { if (m_DataBaseConnection.getUpperCase()) { order.append(m_orderBy.get(m_orderBy.size() - 1).toUpperCase()); } else {
order.append(" ORDER BY "); for (int i = 0; i < m_orderBy.size() - 1; i++) { if (m_DataBaseConnection.getUpperCase()) { order.append(m_orderBy.get(i).toUpperCase()); } else { if (m_DataBaseConnection.getUpperCase()) { order.append(m_orderBy.get(m_orderBy.size() - 1).toUpperCase()); } else {
m_DataBaseConnection.maskKeyword(structure.relationName()); if (m_DataBaseConnection.getUpperCase()) { m_resolvedTableName = m_resolvedTableName.toUpperCase(); m_createInt = m_createInt.toUpperCase(); if (m_DataBaseConnection.getUpperCase()) { m_idColumn = m_idColumn.toUpperCase(); attName = attName.replaceAll("[^\\w]", "_"); attName = m_DataBaseConnection.maskKeyword(attName); if (m_DataBaseConnection.getUpperCase()) { query.append(attName.toUpperCase()); } else {
m_DataBaseConnection.maskKeyword(structure.relationName()); if (m_DataBaseConnection.getUpperCase()) { m_resolvedTableName = m_resolvedTableName.toUpperCase(); m_createInt = m_createInt.toUpperCase(); if (m_DataBaseConnection.getUpperCase()) { m_idColumn = m_idColumn.toUpperCase(); attName = attName.replaceAll("[^\\w]", "_"); attName = m_DataBaseConnection.maskKeyword(attName); if (m_DataBaseConnection.getUpperCase()) { query.append(attName.toUpperCase()); } else {
if (m_DataBaseConnection.getUpperCase()) { m_idColumn = m_idColumn.toUpperCase();
if (m_DataBaseConnection.getUpperCase()) { m_idColumn = m_idColumn.toUpperCase();
if (m_DataBaseConnection.getUpperCase()) { columnName = columnName.toUpperCase(); if (m_DataBaseConnection.getUpperCase()) { columnName = columnName.toUpperCase(); if (m_DataBaseConnection.getUpperCase()) { m_idColumn = m_idColumn.toUpperCase();
if (m_DataBaseConnection.getUpperCase()) { columnName = columnName.toUpperCase(); if (m_DataBaseConnection.getUpperCase()) { columnName = columnName.toUpperCase(); if (m_DataBaseConnection.getUpperCase()) { m_idColumn = m_idColumn.toUpperCase();
if (m_DataBaseConnection.getUpperCase()) { m_idColumn = m_idColumn.toUpperCase();
if (m_DataBaseConnection.getUpperCase()) { m_idColumn = m_idColumn.toUpperCase();