com.caucho.quercus.mysql
Class MysqlResultSetMetaData

java.lang.Object
  extended by com.caucho.quercus.mysql.MysqlResultSetMetaData
All Implemented Interfaces:
QuercusResultSetMetaData, java.sql.ResultSetMetaData, java.sql.Wrapper

public class MysqlResultSetMetaData
extends java.lang.Object
implements QuercusResultSetMetaData

Special Quercus Mysql connection.


Field Summary
 
Fields inherited from interface java.sql.ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown
 
Method Summary
 java.lang.String getCatalogName(int column)
          Returns the column catalog name
 MysqlColumn getColumn(int column)
           
 java.lang.String getColumnClassName(int column)
          Returns the column class namewritability
 int getColumnCount()
           
 int getColumnDisplaySize(int column)
          Returns the normal width
 java.lang.String getColumnLabel(int column)
          Returns the column label
 java.lang.String getColumnName(int column)
          Returns the column name
 java.lang.String getColumnOrigName(int column)
          Returns the column original name
 java.util.ArrayList<MysqlColumn> getColumns()
           
 java.lang.String getColumnSchema(int column)
          Returns the column schema
 int getColumnType(int column)
          Returns the column type
 java.lang.String getColumnTypeName(int column)
          Returns the column type name
 int getLength(int column)
           
 java.lang.String getOrigTableName(int column)
          Returns the column table orig name
 int getPrecision(int column)
          Returns the column precision
 int getScale(int column)
          Returns the column scale
 java.lang.String getSchemaName(int column)
          Returns the column table name
 java.lang.String getTableName(int column)
          Returns the column table name
 boolean isAutoIncrement(int column)
          Returns true if the column is auto-numbered.
 boolean isBlob(int column)
           
 boolean isCaseSensitive(int column)
          Returns true if the column is case sensitive
 boolean isCurrency(int column)
          Returns true if the column is a currency;
 boolean isDefinitelyWritable(int column)
          Returns the column writability
 boolean isMultipleKey(int column)
           
 boolean isNotNull(int column)
           
 int isNullable(int column)
          Returns true if the column is nullable
 boolean isPrimaryKey(int column)
           
 boolean isReadOnly(int column)
          Returns the column writability
 boolean isSearchable(int column)
          Returns true if the column can be in a where clause
 boolean isSigned(int column)
          Returns true for signed results.
 boolean isUniqueKey(int column)
           
 boolean isUnsigned(int column)
           
 boolean isWrapperFor(java.lang.Class<?> iface)
           
 boolean isWritable(int column)
          Returns the column writability
 boolean isZeroFill(int column)
           
 void setColumnCount(int columnCount)
           
 java.lang.String toString()
           
<T> T
unwrap(java.lang.Class<T> iface)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface java.sql.ResultSetMetaData

setColumnCount

public void setColumnCount(int columnCount)

getColumns

public java.util.ArrayList<MysqlColumn> getColumns()

getColumn

public MysqlColumn getColumn(int column)

isAutoIncrement

public boolean isAutoIncrement(int column)
Returns true if the column is auto-numbered.

Specified by:
isAutoIncrement in interface java.sql.ResultSetMetaData

isCaseSensitive

public boolean isCaseSensitive(int column)
Returns true if the column is case sensitive

Specified by:
isCaseSensitive in interface java.sql.ResultSetMetaData

isSearchable

public boolean isSearchable(int column)
Returns true if the column can be in a where clause

Specified by:
isSearchable in interface java.sql.ResultSetMetaData

isCurrency

public boolean isCurrency(int column)
Returns true if the column is a currency;

Specified by:
isCurrency in interface java.sql.ResultSetMetaData

isNullable

public int isNullable(int column)
Returns true if the column is nullable

Specified by:
isNullable in interface java.sql.ResultSetMetaData

getColumnDisplaySize

public int getColumnDisplaySize(int column)
Returns the normal width

Specified by:
getColumnDisplaySize in interface java.sql.ResultSetMetaData

getColumnLabel

public java.lang.String getColumnLabel(int column)
Returns the column label

Specified by:
getColumnLabel in interface java.sql.ResultSetMetaData

getColumnName

public java.lang.String getColumnName(int column)
Returns the column name

Specified by:
getColumnName in interface java.sql.ResultSetMetaData

getColumnOrigName

public java.lang.String getColumnOrigName(int column)
Returns the column original name


getColumnSchema

public java.lang.String getColumnSchema(int column)
Returns the column schema


isSigned

public boolean isSigned(int column)
Returns true for signed results.

Specified by:
isSigned in interface java.sql.ResultSetMetaData

getPrecision

public int getPrecision(int column)
Returns the column precision

Specified by:
getPrecision in interface java.sql.ResultSetMetaData

getScale

public int getScale(int column)
Returns the column scale

Specified by:
getScale in interface java.sql.ResultSetMetaData

getSchemaName

public java.lang.String getSchemaName(int column)
Returns the column table name

Specified by:
getSchemaName in interface java.sql.ResultSetMetaData

getTableName

public java.lang.String getTableName(int column)
Returns the column table name

Specified by:
getTableName in interface java.sql.ResultSetMetaData

getOrigTableName

public java.lang.String getOrigTableName(int column)
Returns the column table orig name


getCatalogName

public java.lang.String getCatalogName(int column)
Returns the column catalog name

Specified by:
getCatalogName in interface java.sql.ResultSetMetaData

getColumnType

public int getColumnType(int column)
Returns the column type

Specified by:
getColumnType in interface java.sql.ResultSetMetaData

getColumnTypeName

public java.lang.String getColumnTypeName(int column)
Returns the column type name

Specified by:
getColumnTypeName in interface java.sql.ResultSetMetaData

isReadOnly

public boolean isReadOnly(int column)
Returns the column writability

Specified by:
isReadOnly in interface java.sql.ResultSetMetaData

isWritable

public boolean isWritable(int column)
Returns the column writability

Specified by:
isWritable in interface java.sql.ResultSetMetaData

isDefinitelyWritable

public boolean isDefinitelyWritable(int column)
Returns the column writability

Specified by:
isDefinitelyWritable in interface java.sql.ResultSetMetaData

getColumnClassName

public java.lang.String getColumnClassName(int column)
Returns the column class namewritability

Specified by:
getColumnClassName in interface java.sql.ResultSetMetaData

unwrap

public <T> T unwrap(java.lang.Class<T> iface)
         throws java.sql.SQLException
Specified by:
unwrap in interface java.sql.Wrapper
Throws:
java.sql.SQLException

isWrapperFor

public boolean isWrapperFor(java.lang.Class<?> iface)
                     throws java.sql.SQLException
Specified by:
isWrapperFor in interface java.sql.Wrapper
Throws:
java.sql.SQLException

isBlob

public boolean isBlob(int column)
Specified by:
isBlob in interface QuercusResultSetMetaData

isMultipleKey

public boolean isMultipleKey(int column)
Specified by:
isMultipleKey in interface QuercusResultSetMetaData

isZeroFill

public boolean isZeroFill(int column)
Specified by:
isZeroFill in interface QuercusResultSetMetaData

isUnsigned

public boolean isUnsigned(int column)
Specified by:
isUnsigned in interface QuercusResultSetMetaData

isUniqueKey

public boolean isUniqueKey(int column)
Specified by:
isUniqueKey in interface QuercusResultSetMetaData

isPrimaryKey

public boolean isPrimaryKey(int column)
Specified by:
isPrimaryKey in interface QuercusResultSetMetaData

isNotNull

public boolean isNotNull(int column)
Specified by:
isNotNull in interface QuercusResultSetMetaData

getLength

public int getLength(int column)
Specified by:
getLength in interface QuercusResultSetMetaData

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object