Package org.eclipse.jetty.server.session
Class DatabaseAdaptor
- java.lang.Object
 - 
- org.eclipse.jetty.server.session.DatabaseAdaptor
 
 
- 
@Deprecated(since="2021-05-27") public class DatabaseAdaptor extends java.lang.ObjectDeprecated.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 voidadaptTo(java.sql.DatabaseMetaData dbMeta)Deprecated.java.lang.StringconvertIdentifier(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.InputStreamgetBlobInputStream(java.sql.ResultSet result, java.lang.String columnName)Deprecated.java.lang.StringgetBlobType()Deprecated.java.lang.StringgetConnectionUrl()Deprecated.javax.sql.DataSourcegetDatasource()Deprecated.java.lang.StringgetDatasourceName()Deprecated.java.lang.StringgetDBName()Deprecated.java.sql.DrivergetDriver()Deprecated.java.lang.StringgetDriverClassName()Deprecated.java.lang.StringgetLongType()Deprecated.java.lang.StringgetStringType()Deprecated.voidinitialize()Deprecated.booleanisEmptyStringNull()Deprecated.booleanisRowIdReserved()Deprecated.rowId is a reserved word for Oracle, so change the name of this columnvoidsetBlobType(java.lang.String blobType)Deprecated.voidsetDatasource(javax.sql.DataSource ds)Deprecated.voidsetDatasourceName(java.lang.String jndi)Deprecated.voidsetDriverInfo(java.lang.String driverClassName, java.lang.String connectionUrl)Deprecated.Configure jdbc connection information via a jdbc DrivervoidsetDriverInfo(java.sql.Driver driverClass, java.lang.String connectionUrl)Deprecated.Configure jdbc connection information via a jdbc DrivervoidsetLongType(java.lang.String longType)Deprecated.voidsetStringType(java.lang.String stringType)Deprecated.java.lang.StringtoString()Deprecated. 
 - 
 
- 
- 
Method Detail
- 
adaptTo
public void adaptTo(java.sql.DatabaseMetaData dbMeta) throws java.sql.SQLExceptionDeprecated.- 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.SQLExceptionDeprecated.- 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 classnameconnectionUrl- 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 classconnectionUrl- 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.ExceptionDeprecated.- Throws:
 java.lang.Exception
 
- 
toString
public java.lang.String toString()
Deprecated.- Overrides:
 toStringin classjava.lang.Object- See Also:
 Object.toString()
 
 - 
 
 -