String
IdGenerator
167168169170171172173174175176177
// setup other id generators try { DB db = DBFactory.create( getDatabaseProperty(name, "driver") ); map.addIdGenerator(TableMap.AUTOINCREMENT, new AutoIncrementIdGenerator(db) ); map.addIdGenerator(TableMap.SEQUENCE, new SequenceIdGenerator(db) ); } catch (java.lang.InstantiationException e)
169170171172173174175176177178179
{ DB db = DBFactory.create( getDatabaseProperty(name, "driver") ); map.addIdGenerator(TableMap.AUTOINCREMENT, new AutoIncrementIdGenerator(db) ); map.addIdGenerator(TableMap.SEQUENCE, new SequenceIdGenerator(db) ); } catch (java.lang.InstantiationException e) { throw new TurbineException(e);
188189190191192193194195196197198
DB db = DBFactory.create( getDatabaseProperty(name, "driver") ); for (int i = 0; i < IDGeneratorFactory.ID_GENERATOR_METHODS.length; i++) { map.addIdGenerator(IDGeneratorFactory.ID_GENERATOR_METHODS[i], IDGeneratorFactory.create(db)); } } catch (java.lang.InstantiationException e) {