org.eclipse.jetty.server.session
类 JDBCSessionIdManager.DatabaseAdaptor
java.lang.Object
org.eclipse.jetty.server.session.JDBCSessionIdManager.DatabaseAdaptor
- 包容类:
- JDBCSessionIdManager
public class JDBCSessionIdManager.DatabaseAdaptor
- extends Object
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.
TODO if the differences become more major it would be worthwhile
refactoring this class.
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDBCSessionIdManager.DatabaseAdaptor
public JDBCSessionIdManager.DatabaseAdaptor(DatabaseMetaData dbMeta)
throws SQLException
- 抛出:
SQLException
convertIdentifier
public String convertIdentifier(String identifier)
- Convert a camel case identifier into either upper or lower
depending on the way the db stores identifiers.
- 参数:
identifier -
- 返回:
- the converted identifier
getDBName
public String getDBName()
getBlobType
public String getBlobType()
getLongType
public String getLongType()
getBlobInputStream
public InputStream getBlobInputStream(ResultSet result,
String columnName)
throws SQLException
- 抛出:
SQLException
getRowIdColumnName
public String getRowIdColumnName()
- rowId is a reserved word for Oracle, so change the name of this column
- 返回:
isEmptyStringNull
public boolean isEmptyStringNull()
getLoadStatement
public PreparedStatement getLoadStatement(Connection connection,
String rowId,
String contextPath,
String virtualHosts)
throws SQLException
- 抛出:
SQLException
Copyright © 2013. All Rights Reserved.