Class StiAbstractAdapter

java.lang.Object
com.stimulsoft.report.dictionary.adapters.StiAbstractAdapter
Direct Known Subclasses:
StiDuckDbAdapter, StiJdbcAdapter, StiMsSqlAdapter, StiMySqlAdapter, StiOracleAdapter, StiPostgreSqlAdapter

public abstract class StiAbstractAdapter extends Object
Copyright Stimulsoft
  • Field Details

  • Constructor Details

    • StiAbstractAdapter

      public StiAbstractAdapter(String connectionString)
  • Method Details

    • create

      public StiDataSource create(StiDictionary dictionary, Boolean addToDictionary)
      Parameters:
      dictionary - Dictionary to add Data Source.
      addToDictionary -
      Returns:
      Created Data Source.
    • getDataSourceClass

      public abstract Class<? extends StiDataSource> getDataSourceClass()
    • create

      public StiDataSource create(StiDictionary dictionary)
      Creates a new Data Source and adds it to the dictionary.
      Parameters:
      dictionary -
      Returns:
    • getJdbcParameters

      public StiJDBCParameters getJdbcParameters()
    • getParsedParameters

      public StiParsedParameters getParsedParameters()
      Returns:
      the parsedParameters
    • validation

      protected String validation(String value, String name)
    • getDriverName

      public abstract String getDriverName()
    • getConnectionURL

      protected abstract String getConnectionURL()
    • getDefaultPort

      protected abstract String getDefaultPort()
    • getUser

      protected String getUser()
    • getPassword

      protected String getPassword()
    • getHost

      protected String getHost()
    • getPort

      protected String getPort()
    • getDataBase

      public String getDataBase()
    • getLeastOne

      public String getLeastOne(List<String> keys)
    • hasLeastOne

      public boolean hasLeastOne(List<String> keys)
    • getLeastOne

      public String getLeastOne(List<String> keys, Map<String,String> params)
    • hasLeastOne

      public boolean hasLeastOne(List<String> keys, Map<String,String> params)
    • getUrlKeys

      public List<String> getUrlKeys()
      Returns:
      URL_KEYS
    • getPortKey

      public List<String> getPortKey()
      Returns:
      PORT_KEY
    • getHostKey

      public List<String> getHostKey()
      Returns:
      HOST_KEY
    • getDatabaseName

      public List<String> getDatabaseName()
      Returns:
      DATABASE_KEY
    • getDriverKeys

      public List<String> getDriverKeys()
      Returns:
      DRIVER_KEYS
    • getParams

      protected Map<String,String> getParams()