|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectDLV.PredicateMetaData
An object that can be used to get information about the types and properties of the "columns" in a Predicate object
(in a relational database view of predicates).
Note that:
- A Predicate object may not have a PredicateMetaData object associated with it.
- You must set a PredicateMetadata for a Predicate object if you want to use some JDBC like methods.
- Allowed types and corresponding JDBC types are specified in ConversionType
Predicate,
ConversionType| Constructor Summary | |
PredicateMetaData(int arity)
Builds a PredicateMetadata object for a predicate of arity "arity". |
|
PredicateMetaData(java.sql.ResultSetMetaData rsmd)
Builds a PredicateMetadata object for a predicate from a java.sql.ResultSetMetaData descriptor. |
|
| Method Summary | |
int |
getArgumentByName(java.lang.String argumentName)
Gets the position of the first argument named "argumentName". |
int |
getArity()
Gets the Predicate arity. |
java.lang.String |
getName(int argument)
Gets the name of the argument-th column. |
byte |
getType(int argument)
Gets the type of the argument-th column. |
void |
setName(int argument,
java.lang.String argumentName)
Sets the name of the argument-th column. |
void |
setType(int argument,
byte conversionType)
Sets the Predicate arity. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PredicateMetaData(int arity)
ConversionType.STRING
arity - the corresponding Predicate-arity.
public PredicateMetaData(java.sql.ResultSetMetaData rsmd)
throws java.sql.SQLException
Column names and types are set to the corresponding ResultSet column names and types.
JDBC Types are transated using ConversionType.sqlToDlvTypes(int) function.
rsmd - a java.sql.ResultSetMetaData descriptor.ConversionType| Method Detail |
public int getArity()
public void setType(int argument,
byte conversionType)
argument - An integer indicating a column.conversionType - The column type.ConversionTypepublic byte getType(int argument)
argument - An integer indicating a column.
ConversionType
public void setName(int argument,
java.lang.String argumentName)
argument - An integer indicating a column.argumentName - A String object which contains the name of the specified column.public java.lang.String getName(int argument)
argument - An integer indicating a column.
public int getArgumentByName(java.lang.String argumentName)
argumentName - A String object which contains a column name.
BadColumnNameException - If "argumentName" does not correspond to a column name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||