Package org.eclipse.jetty.server.session
Class DatabaseAdaptor
java.lang.Object
org.eclipse.jetty.server.session.DatabaseAdaptor
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidadaptTo(DatabaseMetaData dbMeta) Deprecated.convertIdentifier(String identifier) Deprecated.Convert a camel case identifier into either upper or lower depending on the way the db stores identifiers.getBlobInputStream(ResultSet result, String columnName) Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.voidDeprecated.booleanDeprecated.booleanDeprecated.rowId is a reserved word for Oracle, so change the name of this columnvoidsetBlobType(String blobType) Deprecated.voidDeprecated.voidsetDatasourceName(String jndi) Deprecated.voidsetDriverInfo(String driverClassName, String connectionUrl) Deprecated.Configure jdbc connection information via a jdbc DrivervoidsetDriverInfo(Driver driverClass, String connectionUrl) Deprecated.Configure jdbc connection information via a jdbc DrivervoidsetLongType(String longType) Deprecated.voidsetStringType(String stringType) Deprecated.toString()Deprecated.
-
Constructor Details
-
DatabaseAdaptor
public DatabaseAdaptor()Deprecated.
-
-
Method Details
-
adaptTo
Deprecated.- Throws:
SQLException
-
setBlobType
Deprecated. -
getBlobType
Deprecated. -
setLongType
Deprecated. -
getLongType
Deprecated. -
setStringType
Deprecated. -
getStringType
Deprecated. -
convertIdentifier
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
Deprecated. -
getBlobInputStream
Deprecated.- Throws:
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
Deprecated.Configure jdbc connection information via a jdbc Driver- Parameters:
driverClassName- the driver classnameconnectionUrl- the driver connection url
-
setDriverInfo
Deprecated.Configure jdbc connection information via a jdbc Driver- Parameters:
driverClass- the driver classconnectionUrl- the driver connection url
-
setDatasource
Deprecated. -
setDatasourceName
Deprecated. -
getDatasourceName
Deprecated. -
getDatasource
Deprecated. -
getDriverClassName
Deprecated. -
getDriver
Deprecated. -
getConnectionUrl
Deprecated. -
initialize
Deprecated.- Throws:
Exception
-
toString
Deprecated.
-