public static JdbcCpoAdapter getInstance ( JdbcCpoMetaDescriptor metaDescriptor , DataSourceInfo < DataSource > jdsiWrite , DataSourceInfo < DataSource > jdsiRead ) throws CpoException { String adapterKey = metaDescriptor + ":" + jdsiWrite . getDataSourceName ( ) + ":" + jdsiRead . getDataSourceName ( ) ; JdbcCpoAdapter adapter = ( JdbcCpoAdapter ) findCpoAdapter ( adapterKey ) ; if ( adapter == null ) { adapter = new JdbcCpoAdapter ( metaDescriptor , jdsiWrite , jdsiRead ) ; addCpoAdapter ( adapterKey , adapter ) ; } return adapter ; }
Creates a JdbcCpoAdapter .