@Test public void testRegister() { MyGenDialect myGenDialect = new MyGenDialect(); GenDialectRegistry.register(MyDialect.class, myGenDialect); assertSame(myGenDialect, GenDialectRegistry .getGenDialect(MyDialect.class)); }
public static void register(Class<? extends DbmsDialect> dbmsDialectClass, GenDialect genDialect) { if (dbmsDialectClass == null) { throw new NullPointerException("dbmsDialectClass"); } if (genDialect == null) { throw new NullPointerException("genDialect"); } dialectMap.put(dbmsDialectClass.getName(), genDialect); }
GenDialectRegistry { public static void register(Class<? extends DbmsDialect> dbmsDialectClass, GenDialect genDialect) { if (dbmsDialectClass == null) { throw new NullPointerException("dbmsDialectClass"); } if (genDialect == null) { throw new NullPointerException("genDialect"); } dialectMap.put(dbmsDialectClass.getName(), genDialect); } }
GenDialectRegistry { public static void register(Class<? extends DbmsDialect> dbmsDialectClass, GenDialect genDialect) { if (dbmsDialectClass == null) { throw new NullPointerException("dbmsDialectClass"); } if (genDialect == null) { throw new NullPointerException("genDialect"); } dialectMap.put(dbmsDialectClass.getName(), genDialect); } private  GenDialectRegistry(); }
GenDialectRegistry { public static void register(Class<? extends DbmsDialect> dbmsDialectClass, GenDialect genDialect) { if (dbmsDialectClass == null) { throw new NullPointerException("dbmsDialectClass"); } if (genDialect == null) { throw new NullPointerException("genDialect"); } dialectMap.put(dbmsDialectClass.getName(), genDialect); } private  GenDialectRegistry(); static GenDialect getGenDialect(DbmsDialect dbmsDialect); static GenDialect getGenDialect(
            Class<? extends DbmsDialect> dbmsDialectClass); static void register(Class<? extends DbmsDialect> dbmsDialectClass,
            GenDialect genDialect); static void deregister(Class<? extends DbmsDialect> dbmsDialectClass); }
GenDialectRegistry { public static void register(Class<? extends DbmsDialect> dbmsDialectClass, GenDialect genDialect) { if (dbmsDialectClass == null) { throw new NullPointerException("dbmsDialectClass"); } if (genDialect == null) { throw new NullPointerException("genDialect"); } dialectMap.put(dbmsDialectClass.getName(), genDialect); } private  GenDialectRegistry(); static GenDialect getGenDialect(DbmsDialect dbmsDialect); static GenDialect getGenDialect(
            Class<? extends DbmsDialect> dbmsDialectClass); static void register(Class<? extends DbmsDialect> dbmsDialectClass,
            GenDialect genDialect); static void deregister(Class<? extends DbmsDialect> dbmsDialectClass);  }