/** Initializes this adapter from the specified config model. */ protected void initializeFromModel(Object scConfig) { super.initializeFromModel(scConfig); if (!this.platformIsXml()) { // TOREVIEW // if( this.getReadConnectionPoolConfig() == null || this.getWriteConnectionPoolConfig() == // null) // throw new NoSuchElementException( this.displayString() + " ReadConnectionPool or // WriteConnectionPool not found."); this.readConnectionPool = (ReadConnectionPoolAdapter) this.adapt(config().getReadConnectionPoolConfig()); this.writeConnectionPool = (WriteConnectionPoolAdapter) this.adapt(config().getWriteConnectionPoolConfig()); this.sequenceConnectionPool = (ConnectionPoolAdapter) this.adapt(config().getSequenceConnectionPoolConfig()); this.pools.addAll(this.adaptAll(this.getConnectionPoolConfigs())); } }
/** Initializes this adapter from the specified config model. */ protected void initializeFromModel(Object scConfig) { super.initializeFromModel(scConfig); this.login = getLoginFromModel(); }