|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.dbPort.Convert
org.compiere.dbPort.Convert_SQL92
org.compiere.dbPort.Convert_PostgreSQL
public class Convert_PostgreSQL
Convert Oracle SQL to PostgreSQL SQL
| Field Summary | |
|---|---|
static int |
REGEX_FLAGS
RegEx: insensitive and dot to include line end characters |
| Fields inherited from class org.compiere.dbPort.Convert |
|---|
m_conversionError, m_exception, m_stmt, m_verbose |
| Constructor Summary | |
|---|---|
Convert_PostgreSQL()
Cosntructor |
|
| Method Summary | |
|---|---|
protected String |
convertComplexStatement(String sqlStatement)
Converts Decode and Outer Join. |
protected ArrayList<String> |
convertStatement(String sqlStatement)
Convert single Statements. - remove comments - process FUNCTION/TRIGGER/PROCEDURE - process Statement |
protected String |
escapeQuotedString(String in)
hook for database specific escape of quoted string ( if needed ) |
protected Map |
getConvertMap()
Get convert map for use in sql convertion |
boolean |
isOracle()
Is Oracle DB |
| Methods inherited from class org.compiere.dbPort.Convert_SQL92 |
|---|
convertDecode, convertDelete, convertOuterJoin, isOperator |
| Methods inherited from class org.compiere.dbPort.Convert |
|---|
cleanUpStatement, convert, convertAll, convertIt, convertWithConvertMap, execute, getConversionError, getException, hasError, logMigrationScript, recoverQuotedStrings, replaceQuotedStrings, setVerbose |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int REGEX_FLAGS
| Constructor Detail |
|---|
public Convert_PostgreSQL()
| Method Detail |
|---|
public boolean isOracle()
isOracle in class Convertprotected Map getConvertMap()
Convert
getConvertMap in class Convertprotected ArrayList<String> convertStatement(String sqlStatement)
convertStatement in class ConvertsqlStatement -
protected String escapeQuotedString(String in)
Convert
escapeQuotedString in class Convertprotected String convertComplexStatement(String sqlStatement)
DECODE (a, 1, 'one', 2, 'two', 'none')
=> CASE WHEN a = 1 THEN 'one' WHEN a = 2 THEN 'two' ELSE 'none' END
sqlStatement -
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||