|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.persistence.query.sql.SQLParameter
public class SQLParameter
INTERNAL: SQL value: parameter. Represents a parameter in a query. A parameter has an arity of one or more.
Field Summary | |
---|---|
protected java.lang.String |
alias
|
protected int |
arity
|
protected FieldHandlerIF |
fhandler
|
protected java.lang.String |
name
|
protected java.lang.Class |
vtype
|
Fields inherited from interface net.ontopia.persistence.query.sql.SQLValueIF |
---|
COLUMNS, FUNCTION, NULL, PARAMETER, PRIMITIVE, TUPLE, VERBATIM |
Constructor Summary | |
---|---|
SQLParameter(java.lang.String name,
int arity)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getAlias()
INTERNAL: The column alias to use if this value is included in the projection. |
int |
getArity()
INTERNAL: Returns the [column] arity of the value. |
FieldHandlerIF |
getFieldHandler()
INTERNAL: Returns the field handler for the columns. |
java.lang.String |
getName()
|
SQLValueIF |
getReference()
INTERNAL: Returns the referenced value if one exists. |
int |
getType()
INTERNAL: Returns the value class type. |
int |
getValueArity()
INTERNAL: Returns the value arity of the value. |
java.lang.Class |
getValueType()
INTERNAL: Returns the value type. |
int |
hashCode()
|
boolean |
isReference()
INTERNAL: Returns true if this value is a reference to another. |
void |
setAlias(java.lang.String alias)
INTERNAL: Sets the column alias. |
void |
setFieldHandler(FieldHandlerIF fhandler)
INTERNAL: Sets the field handler for the value. |
void |
setValueType(java.lang.Class vtype)
INTERNAL: Sets the value type. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
protected int arity
protected java.lang.String alias
protected java.lang.Class vtype
protected FieldHandlerIF fhandler
Constructor Detail |
---|
public SQLParameter(java.lang.String name, int arity)
Method Detail |
---|
public int getType()
SQLValueIF
SQLValueIF
interface.
getType
in interface SQLValueIF
public int getArity()
SQLValueIF
getArity
in interface SQLValueIF
public int getValueArity()
SQLValueIF
getValueArity
in interface SQLValueIF
public java.lang.String getAlias()
SQLValueIF
getAlias
in interface SQLValueIF
public void setAlias(java.lang.String alias)
SQLValueIF
setAlias
in interface SQLValueIF
public boolean isReference()
SQLValueIF
isReference
in interface SQLValueIF
public SQLValueIF getReference()
SQLValueIF
getReference
in interface SQLValueIF
public java.lang.String getName()
public java.lang.Class getValueType()
SQLValueIF
getValueType
in interface SQLValueIF
public void setValueType(java.lang.Class vtype)
SQLValueIF
setValueType
in interface SQLValueIF
public FieldHandlerIF getFieldHandler()
SQLValueIF
getFieldHandler
in interface SQLValueIF
public void setFieldHandler(FieldHandlerIF fhandler)
SQLValueIF
setFieldHandler
in interface SQLValueIF
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |