|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.connectivity.oda.spec.QuerySpecification.ParameterIdentifier
public class QuerySpecification.ParameterIdentifier
The identifier of a data set query parameter, defined by its native name and/or id (1-based).
A name if specified takes precedence over its specified id.
This may be used as an unique key in a Map
.
Comparison by name is case-sensitive.
Constructor Summary | |
---|---|
QuerySpecification.ParameterIdentifier(int paramId)
Creates a parameter identifier with its id. |
|
QuerySpecification.ParameterIdentifier(java.lang.String paramName)
Creates a parameter identifier with its native name. |
|
QuerySpecification.ParameterIdentifier(java.lang.String paramName,
int paramId)
Creates a parameter identifier with both its native name and id. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.Integer |
getParameterId()
Gets the parameter id, if specified. |
java.lang.String |
getParameterName()
Gets the parameter's native name, if specified. |
int |
hashCode()
|
boolean |
hasId()
Indicates whether this has an 1-based id. |
boolean |
hasName()
Indicates whether this has a native name. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QuerySpecification.ParameterIdentifier(java.lang.String paramName)
paramName
- native name of the parameter
java.lang.IllegalArgumentException
- if specified argument is null or emptypublic QuerySpecification.ParameterIdentifier(int paramId)
paramId
- id of the parameter (1-based)
java.lang.IllegalArgumentException
- if specified argument is not greater or equal to 1public QuerySpecification.ParameterIdentifier(java.lang.String paramName, int paramId)
paramName
- native name of the parameterparamId
- id of the parameter (1-based)Method Detail |
---|
public java.lang.Integer getParameterId()
public java.lang.String getParameterName()
public boolean hasName()
public boolean hasId()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
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 |