@Override public long increment() { DB db = DBManagerUtil.getDB(); return db.increment(); }
@Override public void runSQL(Connection connection, String template) throws IOException, SQLException { DB db = DBManagerUtil.getDB(); db.runSQL(connection, template); }
protected long increment(String name) { DB db = DBManagerUtil.getDB(); return db.increment(name); }
protected boolean isSupportsUpdateWithInnerJoin() { DB db = DBManagerUtil.getDB(); return db.isSupportsUpdateWithInnerJoin(); }
protected long increment() { DB db = DBManagerUtil.getDB(); return db.increment(); }
protected boolean isSupportsAlterColumnType() { DB db = DBManagerUtil.getDB(); return db.isSupportsAlterColumnType(); }
protected void runSQL(String template) throws IOException, SQLException { DB db = DBManagerUtil.getDB(); db.runSQL(template); }
protected long increment() { DB db = DBManagerUtil.getDB(); return db.increment(); }
protected long increment(String name, int size) { DB db = DBManagerUtil.getDB(); return db.increment(name, size); }
protected boolean isSupportsAlterColumnName() { DB db = DBManagerUtil.getDB(); return db.isSupportsAlterColumnName(); }
protected boolean isSupportsStringCaseSensitiveQuery() { DB db = DBManagerUtil.getDB(); return db.isSupportsStringCaseSensitiveQuery(); }
@Override public void runSQLTemplate(String path) throws IOException, NamingException, SQLException { try (LoggingTimer loggingTimer = new LoggingTimer(path)) { DB db = DBManagerUtil.getDB(); db.runSQLTemplate(path); } }
@Override public void runSQL(String[] templates) throws IOException, SQLException { DB db = DBManagerUtil.getDB(); if (connection == null) { db.runSQL(templates); } else { db.runSQL(connection, templates); } }
@Override public void runSQLTemplate(String path, boolean failOnError) throws IOException, NamingException, SQLException { try (LoggingTimer loggingTimer = new LoggingTimer(path)) { DB db = DBManagerUtil.getDB(); db.runSQLTemplate(path, failOnError); } }
@Override protected void doUpgrade() throws Exception { DB db = DBManagerUtil.getDB(); if (db.getDBType() == _dbType) { _upgradeTables(); } }
@Override public void runSQL(DBTypeToSQLMap dbTypeToSQLMap) throws IOException, SQLException { DB db = DBManagerUtil.getDB(); if (connection == null) { db.runSQL(dbTypeToSQLMap); } else { db.runSQL(connection, dbTypeToSQLMap); } }
@Override public void runSQL(String template) throws IOException, SQLException { DB db = DBManagerUtil.getDB(); if (connection == null) { db.runSQL(template); } else { db.runSQL(connection, template); } }
@Override public void runSQLTemplateString( String template, boolean evaluate, boolean failOnError) throws IOException, NamingException, SQLException { try (LoggingTimer loggingTimer = new LoggingTimer()) { DB db = DBManagerUtil.getDB(); if (connection == null) { db.runSQLTemplateString(template, evaluate, failOnError); } else { db.runSQLTemplateString( connection, template, evaluate, failOnError); } } }
DB db = DBManagerUtil.getDB();
public void setSessionFactory(SessionFactory sessionFactory) { _sessionFactory = sessionFactory; _dialect = _sessionFactory.getDialect(); _db = DBManagerUtil.getDB(_dialect, getDataSource()); DBType dbType = _db.getDBType(); _databaseOrderByMaxColumns = GetterUtil.getInteger( PropsUtil.get( PropsKeys.DATABASE_ORDER_BY_MAX_COLUMNS, new Filter(dbType.getName()))); databaseInMaxParameters = GetterUtil.getInteger( PropsUtil.get( PropsKeys.DATABASE_IN_MAX_PARAMETERS, new Filter(dbType.getName()))); }