public static AbstractUpdateParser newInstance ( final DatabaseType dbType , final ShardingRule shardingRule , final LexerEngine lexerEngine ) { switch ( dbType ) { case H2 : case MySQL : return new MySQLUpdateParser ( shardingRule , lexerEngine ) ; case Oracle : return new OracleUpdateParser ( shardingRule , lexerEngine ) ; case SQLServer : return new SQLServerUpdateParser ( shardingRule , lexerEngine ) ; case PostgreSQL : return new PostgreSQLUpdateParser ( shardingRule , lexerEngine ) ; default : throw new UnsupportedOperationException ( String . format ( "Cannot support database [%s]." , dbType ) ) ; } }
Create update parser instance .