|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.jdbc.JcrResultSetMetaData
public class JcrResultSetMetaData

This driver's ResultSetMetaData implementation that obtains the metadata information from the JCR query result and
(where possible) the column's corresponding property definitions.
| Field Summary |
|---|
| Fields inherited from interface java.sql.ResultSetMetaData |
|---|
columnNoNulls, columnNullable, columnNullableUnknown |
| Constructor Summary | |
|---|---|
protected |
JcrResultSetMetaData(JcrConnection connection,
QueryResult results)
|
| Method Summary | ||
|---|---|---|
String |
getCatalogName(int column)
All columns come from the same repository (i.e., catalog). |
|
String |
getColumnClassName(int column)
|
|
int |
getColumnCount()
|
|
int |
getColumnDisplaySize(int column)
This method returns the nominal display size based upon the column's type. |
|
String |
getColumnLabel(int column)
|
|
String |
getColumnName(int column)
|
|
int |
getColumnType(int column)
|
|
String |
getColumnTypeName(int column)
|
|
int |
getPrecision(int column)
This method always returns the nominal display size for the type. |
|
int |
getScale(int column)
This method returns the number of digits behind the decimal point, which is assumed to be 3 if the type is PropertyType.DOUBLE or 0 otherwise. |
|
String |
getSchemaName(int column)
This method always returns the workspace name. |
|
String |
getTableName(int column)
|
|
boolean |
isAutoIncrement(int column)
This method always returns false, since this JCR property types don't represent auto-incremented values. |
|
boolean |
isCaseSensitive(int column)
|
|
boolean |
isCurrency(int column)
This method always returns false, since no JCR property types (directly) represent currency. |
|
boolean |
isDefinitelyWritable(int column)
This method always returns false, since this JDBC driver does not support writes. |
|
int |
isNullable(int column)
|
|
boolean |
isReadOnly(int column)
Even though the value may be writable in the JCR repository, this JDBC driver does not support writes. |
|
boolean |
isSearchable(int column)
In JCR-SQL2, every property can be used in a WHERE clause. |
|
boolean |
isSigned(int column)
This method returns true if the column is a PropertyType.DOUBLE, PropertyType.LONG or
PropertyType.DATE. |
|
boolean |
isWrapperFor(Class<?> iface)
|
|
boolean |
isWritable(int column)
Even though the value may be writable in the JCR repository, this JDBC driver does not support writes. |
|
|
unwrap(Class<T> iface)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected JcrResultSetMetaData(JcrConnection connection,
QueryResult results)
| Method Detail |
|---|
public String getCatalogName(int column)
All columns come from the same repository (i.e., catalog).
getCatalogName in interface ResultSetMetaDataResultSetMetaData.getCatalogName(int)public String getColumnClassName(int column)
getColumnClassName in interface ResultSetMetaDataResultSetMetaData.getColumnClassName(int)
public int getColumnCount()
throws SQLException
getColumnCount in interface ResultSetMetaDataSQLExceptionResultSetMetaData.getColumnCount()public int getColumnDisplaySize(int column)
This method returns the nominal display size based upon the column's type. Therefore, the value may not reflect the optimal display size for any given value.
getColumnDisplaySize in interface ResultSetMetaDataResultSetMetaData.getColumnDisplaySize(int)
public String getColumnLabel(int column)
throws SQLException
getColumnLabel in interface ResultSetMetaDataSQLExceptionResultSetMetaData.getColumnLabel(int)
public String getColumnName(int column)
throws SQLException
getColumnName in interface ResultSetMetaDataSQLExceptionResultSetMetaData.getColumnName(int)public int getColumnType(int column)
getColumnType in interface ResultSetMetaDataResultSetMetaData.getColumnType(int)public String getColumnTypeName(int column)
getColumnTypeName in interface ResultSetMetaDataResultSetMetaData.getColumnTypeName(int)public int getPrecision(int column)
This method always returns the nominal display size for the type.
getPrecision in interface ResultSetMetaDataResultSetMetaData.getPrecision(int)public int getScale(int column)
This method returns the number of digits behind the decimal point, which is assumed to be 3 if the type is
PropertyType.DOUBLE or 0 otherwise.
getScale in interface ResultSetMetaDataResultSetMetaData.getScale(int)public String getSchemaName(int column)
This method always returns the workspace name.
getSchemaName in interface ResultSetMetaDataResultSetMetaData.getSchemaName(int)
public String getTableName(int column)
throws SQLException
getTableName in interface ResultSetMetaDataSQLExceptionResultSetMetaData.getTableName(int)public boolean isAutoIncrement(int column)
This method always returns false, since this JCR property types don't represent auto-incremented values.
isAutoIncrement in interface ResultSetMetaDataResultSetMetaData.isAutoIncrement(int)public boolean isCaseSensitive(int column)
isCaseSensitive in interface ResultSetMetaDataResultSetMetaData.isCaseSensitive(int)public boolean isCurrency(int column)
This method always returns false, since no JCR property types (directly) represent currency.
isCurrency in interface ResultSetMetaDataResultSetMetaData.isCurrency(int)public boolean isDefinitelyWritable(int column)
This method always returns false, since this JDBC driver does not support writes.
isDefinitelyWritable in interface ResultSetMetaDataResultSetMetaData.isDefinitelyWritable(int)
public int isNullable(int column)
throws SQLException
isNullable in interface ResultSetMetaDataSQLExceptionResultSetMetaData.isNullable(int)public boolean isReadOnly(int column)
Even though the value may be writable in the JCR repository, this JDBC driver does not support writes. Therefore, this method always returns true.
isReadOnly in interface ResultSetMetaDataResultSetMetaData.isReadOnly(int)public boolean isSearchable(int column)
In JCR-SQL2, every property can be used in a WHERE clause. Therefore, this method always returns true.
isSearchable in interface ResultSetMetaDataResultSetMetaData.isSearchable(int)public boolean isSigned(int column)
This method returns true if the column is a PropertyType.DOUBLE, PropertyType.LONG or
PropertyType.DATE.
isSigned in interface ResultSetMetaDataResultSetMetaData.isSigned(int)public boolean isWritable(int column)
Even though the value may be writable in the JCR repository, this JDBC driver does not support writes. Therefore, this method always returns false.
isWritable in interface ResultSetMetaDataResultSetMetaData.isWritable(int)public boolean isWrapperFor(Class<?> iface)
isWrapperFor in interface WrapperWrapper.isWrapperFor(java.lang.Class)
public <T> T unwrap(Class<T> iface)
throws SQLException
unwrap in interface WrapperSQLExceptionWrapper.unwrap(java.lang.Class)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||