📄 encoderesultsetmetadata.java
字号:
package mapcenter.service;import java.sql.ResultSetMetaData;import java.sql.SQLException;import java.io.UnsupportedEncodingException;public class EncodeResultSetMetaData implements ResultSetMetaData { private ResultSetMetaData resultSetMetaData; private String OrigCharSet, TargCharSet; private static Log log = LogFactory.getLog("WebGIS"); public EncodeResultSetMetaData(ResultSetMetaData resultSetMetaData, String OrigCharSet, String TargCharSet) { this.resultSetMetaData = resultSetMetaData; this.OrigCharSet = OrigCharSet; this.TargCharSet = TargCharSet; } public int getColumnCount() throws java.sql.SQLException { return resultSetMetaData.getColumnCount(); } public boolean isAutoIncrement(int parm1) throws java.sql.SQLException { return resultSetMetaData.isAutoIncrement(parm1); } public boolean isCaseSensitive(int parm1) throws java.sql.SQLException { return resultSetMetaData.isCaseSensitive(parm1); } public boolean isSearchable(int parm1) throws java.sql.SQLException { return resultSetMetaData.isSearchable(parm1); } public boolean isCurrency(int parm1) throws java.sql.SQLException { return resultSetMetaData.isCurrency(parm1); } public int isNullable(int parm1) throws java.sql.SQLException { return resultSetMetaData.isNullable(parm1); } public boolean isSigned(int parm1) throws java.sql.SQLException { return resultSetMetaData.isSigned(parm1); } public int getColumnDisplaySize(int parm1) throws java.sql.SQLException { return resultSetMetaData.getColumnDisplaySize(parm1); } public String getColumnLabel(int parm1) throws java.sql.SQLException { String returnValue = null; try{ returnValue = new String(resultSetMetaData.getColumnLabel(parm1).getBytes(OrigCharSet),TargCharSet); }catch(UnsupportedEncodingException e){ log.error(e.getMessage()); } return returnValue; } public String getColumnName(int parm1) throws java.sql.SQLException { String returnValue = null; try{ returnValue = new String(resultSetMetaData.getColumnName(parm1).getBytes(OrigCharSet),TargCharSet); }catch(UnsupportedEncodingException e){ log.error(e.getMessage()); } return returnValue; } public String getSchemaName(int parm1) throws java.sql.SQLException { String returnValue = null; try{ returnValue = new String(resultSetMetaData.getSchemaName(parm1).getBytes(OrigCharSet),TargCharSet); }catch(UnsupportedEncodingException e){ log.error(e.getMessage()); } return returnValue; } public int getPrecision(int parm1) throws java.sql.SQLException { return resultSetMetaData.getPrecision(parm1); } public int getScale(int parm1) throws java.sql.SQLException { return resultSetMetaData.getScale(parm1); } public String getTableName(int parm1) throws java.sql.SQLException { String returnValue = null; try{ returnValue = new String(resultSetMetaData.getTableName(parm1).getBytes(OrigCharSet),TargCharSet); }catch(UnsupportedEncodingException e){ log.error(e.getMessage()); } return returnValue; } public String getCatalogName(int parm1) throws java.sql.SQLException { String returnValue = null; try{ returnValue = new String(resultSetMetaData.getCatalogName(parm1).getBytes(OrigCharSet),TargCharSet); }catch(UnsupportedEncodingException e){ log.error(e.getMessage()); } return returnValue; } public int getColumnType(int parm1) throws java.sql.SQLException { return resultSetMetaData.getColumnType(parm1); } public String getColumnTypeName(int parm1) throws java.sql.SQLException { return resultSetMetaData.getColumnTypeName(parm1); } public boolean isReadOnly(int parm1) throws java.sql.SQLException { return resultSetMetaData.isReadOnly(parm1); } public boolean isWritable(int parm1) throws java.sql.SQLException { return resultSetMetaData.isWritable(parm1); } public boolean isDefinitelyWritable(int parm1) throws java.sql.SQLException { return resultSetMetaData.isDefinitelyWritable(parm1); } public String getColumnClassName(int parm1) throws java.sql.SQLException { return resultSetMetaData.getColumnClassName(parm1); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -