Class DatabaseAdaptor


  • @Deprecated(since="2021-05-27")
    public class DatabaseAdaptor
    extends java.lang.Object
    Deprecated.
    The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
    DatabaseAdaptor Handles differences between databases. Postgres uses the getBytes and setBinaryStream methods to access a "bytea" datatype, which can be up to 1Gb of binary data. MySQL is happy to use the "blob" type and getBlob() methods instead.
    • Constructor Summary

      Constructors 
      Constructor Description
      DatabaseAdaptor()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void adaptTo​(java.sql.DatabaseMetaData dbMeta)
      Deprecated.
       
      java.lang.String convertIdentifier​(java.lang.String identifier)
      Deprecated.
      Convert a camel case identifier into either upper or lower depending on the way the db stores identifiers.
      java.io.InputStream getBlobInputStream​(java.sql.ResultSet result, java.lang.String columnName)
      Deprecated.
       
      java.lang.String getBlobType()
      Deprecated.
       
      java.lang.String getConnectionUrl()
      Deprecated.
       
      javax.sql.DataSource getDatasource()
      Deprecated.
       
      java.lang.String getDatasourceName()
      Deprecated.
       
      java.lang.String getDBName()
      Deprecated.
       
      java.sql.Driver getDriver()
      Deprecated.
       
      java.lang.String getDriverClassName()
      Deprecated.
       
      java.lang.String getLongType()
      Deprecated.
       
      java.lang.String getStringType()
      Deprecated.
       
      void initialize()
      Deprecated.
       
      boolean isEmptyStringNull()
      Deprecated.
       
      boolean isRowIdReserved()
      Deprecated.
      rowId is a reserved word for Oracle, so change the name of this column
      void setBlobType​(java.lang.String blobType)
      Deprecated.
       
      void setDatasource​(javax.sql.DataSource ds)
      Deprecated.
       
      void setDatasourceName​(java.lang.String jndi)
      Deprecated.
       
      void setDriverInfo​(java.lang.String driverClassName, java.lang.String connectionUrl)
      Deprecated.
      Configure jdbc connection information via a jdbc Driver
      void setDriverInfo​(java.sql.Driver driverClass, java.lang.String connectionUrl)
      Deprecated.
      Configure jdbc connection information via a jdbc Driver
      void setLongType​(java.lang.String longType)
      Deprecated.
       
      void setStringType​(java.lang.String stringType)
      Deprecated.
       
      java.lang.String toString()
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DatabaseAdaptor

        public DatabaseAdaptor()
        Deprecated.
    • Method Detail

      • adaptTo

        public void adaptTo​(java.sql.DatabaseMetaData dbMeta)
                     throws java.sql.SQLException
        Deprecated.
        Throws:
        java.sql.SQLException
      • setBlobType

        public void setBlobType​(java.lang.String blobType)
        Deprecated.
      • getBlobType

        public java.lang.String getBlobType()
        Deprecated.
      • setLongType

        public void setLongType​(java.lang.String longType)
        Deprecated.
      • getLongType

        public java.lang.String getLongType()
        Deprecated.
      • setStringType

        public void setStringType​(java.lang.String stringType)
        Deprecated.
      • getStringType

        public java.lang.String getStringType()
        Deprecated.
      • convertIdentifier

        public java.lang.String convertIdentifier​(java.lang.String identifier)
        Deprecated.
        Convert a camel case identifier into either upper or lower depending on the way the db stores identifiers.
        Parameters:
        identifier - the raw identifier
        Returns:
        the converted identifier
      • getDBName

        public java.lang.String getDBName()
        Deprecated.
      • getBlobInputStream

        public java.io.InputStream getBlobInputStream​(java.sql.ResultSet result,
                                                      java.lang.String columnName)
                                               throws java.sql.SQLException
        Deprecated.
        Throws:
        java.sql.SQLException
      • isEmptyStringNull

        public boolean isEmptyStringNull()
        Deprecated.
      • isRowIdReserved

        public boolean isRowIdReserved()
        Deprecated.
        rowId is a reserved word for Oracle, so change the name of this column
        Returns:
        true if db in use is oracle
      • setDriverInfo

        public void setDriverInfo​(java.lang.String driverClassName,
                                  java.lang.String connectionUrl)
        Deprecated.
        Configure jdbc connection information via a jdbc Driver
        Parameters:
        driverClassName - the driver classname
        connectionUrl - the driver connection url
      • setDriverInfo

        public void setDriverInfo​(java.sql.Driver driverClass,
                                  java.lang.String connectionUrl)
        Deprecated.
        Configure jdbc connection information via a jdbc Driver
        Parameters:
        driverClass - the driver class
        connectionUrl - the driver connection url
      • setDatasource

        public void setDatasource​(javax.sql.DataSource ds)
        Deprecated.
      • setDatasourceName

        public void setDatasourceName​(java.lang.String jndi)
        Deprecated.
      • getDatasourceName

        public java.lang.String getDatasourceName()
        Deprecated.
      • getDatasource

        public javax.sql.DataSource getDatasource()
        Deprecated.
      • getDriverClassName

        public java.lang.String getDriverClassName()
        Deprecated.
      • getDriver

        public java.sql.Driver getDriver()
        Deprecated.
      • getConnectionUrl

        public java.lang.String getConnectionUrl()
        Deprecated.
      • initialize

        public void initialize()
                        throws java.lang.Exception
        Deprecated.
        Throws:
        java.lang.Exception
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()