本文整理汇总了Java中com.mysql.jdbc.PreparedStatement.ParseInfo类的典型用法代码示例。如果您正苦于以下问题:Java ParseInfo类的具体用法?Java ParseInfo怎么用?Java ParseInfo使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ParseInfo类属于com.mysql.jdbc.PreparedStatement包,在下文中一共展示了ParseInfo类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: get
import com.mysql.jdbc.PreparedStatement.ParseInfo; //导入依赖的package包/类
public ParseInfo get(String key) {
if (key == null || key.length() > this.cacheSqlLimit) {
return null;
}
synchronized (this.conn.getConnectionMutex()) {
return (ParseInfo) this.cache.get(key);
}
}
示例2: put
import com.mysql.jdbc.PreparedStatement.ParseInfo; //导入依赖的package包/类
public void put(String key, ParseInfo value) {
if (key == null || key.length() > this.cacheSqlLimit) {
return;
}
synchronized (this.conn.getConnectionMutex()) {
this.cache.put(key, value);
}
}
示例3: get
import com.mysql.jdbc.PreparedStatement.ParseInfo; //导入依赖的package包/类
public ParseInfo get(String key) {
if (key == null || key.length() > this.cacheSqlLimit) {
return null;
}
synchronized (this.conn.getConnectionMutex()) {
return this.cache.get(key);
}
}
示例4: get
import com.mysql.jdbc.PreparedStatement.ParseInfo; //导入依赖的package包/类
public ParseInfo get(String key) {
if (key == null || key.length() > cacheSqlLimit) {
return null;
}
synchronized (conn.getConnectionMutex()) {
return (ParseInfo) cache.get(key);
}
}
示例5: put
import com.mysql.jdbc.PreparedStatement.ParseInfo; //导入依赖的package包/类
public void put(String key, ParseInfo value) {
if (key == null || key.length() > cacheSqlLimit) {
return;
}
synchronized (conn.getConnectionMutex()) {
cache.put(key, value);
}
}
示例6: JDBC4PreparedStatement
import com.mysql.jdbc.PreparedStatement.ParseInfo; //导入依赖的package包/类
public JDBC4PreparedStatement(MySQLConnection conn, String sql, String catalog, ParseInfo cachedParseInfo) throws SQLException {
super(conn, sql, catalog, cachedParseInfo);
}
示例7: getInstance
import com.mysql.jdbc.PreparedStatement.ParseInfo; //导入依赖的package包/类
public CacheAdapter<String, ParseInfo> getInstance(Connection forConnection, String url, int cacheMaxSize, int maxKeySize, Properties connectionProperties)
throws SQLException {
return new PerConnectionLRU(forConnection, cacheMaxSize, maxKeySize);
}