private String substituteSqlArguments ( String sql , String tableName , String geometryColumnName , String idColumnName , String triggerName ) { String substituted = sql ; substituted = substituted . replaceAll ( TABLE_SUBSTITUTE , tableName ) ; substituted = substituted . replaceAll ( GEOMETRY_COLUMN_SUBSTITUTE , geometryColumnName ) ; if ( idColumnName != null ) { substituted = substituted . replaceAll ( PK_COLUMN_SUBSTITUTE , idColumnName ) ; } if ( triggerName != null ) { substituted = substituted . replaceAll ( TRIGGER_SUBSTITUTE , triggerName ) ; } return substituted ; }
Replace the SQL arguments for the table geometry column id column and trigger name