SqlParameterCollection Class

  • java.lang.Object
    • com.microsoft.azure.documentdb.SqlParameterCollection

Implements

java.util.Collection<SqlParameter>

public final class SqlParameterCollection
implements java.util.Collection<SqlParameter>

Represents a collection of SQL parameters to for a SQL query in the Azure Cosmos DB database service.

Constructor Summary

Constructor Description
SqlParameterCollection()

Initializes a new instance of the SqlParameterCollection class.

SqlParameterCollection(SqlParameter[] parameters)

Initializes a new instance of the SqlParameterCollection class from an array of parameters.

SqlParameterCollection(Collection<SqlParameter> parameters)

Initializes a new instance of the SqlParameterCollection class from a collection of parameters.

Method Summary

Modifier and Type Method and Description
T[] toArray(T[] parameters)
boolean add(SqlParameter parameter)
boolean addAll(Collection<? extends SqlParameter> parameters)
void clear()
boolean contains(Object parameter)
boolean containsAll(Collection<?> parameters)
boolean isEmpty()
java.util.Iterator<SqlParameter> iterator()
boolean remove(Object parameter)
boolean removeAll(Collection<?> parameters)
boolean retainAll(Collection<?> parameters)
int size()
java.lang.Object[] toArray()

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

SqlParameterCollection

public SqlParameterCollection()

Initializes a new instance of the SqlParameterCollection class.

SqlParameterCollection

public SqlParameterCollection(SqlParameter[] parameters)

Initializes a new instance of the SqlParameterCollection class from an array of parameters.

Parameters:

parameters - the array of parameters.

SqlParameterCollection

public SqlParameterCollection(Collection parameters)

Initializes a new instance of the SqlParameterCollection class from a collection of parameters.

Parameters:

parameters - the collection of parameters.

Method Details

toArray

public T[] toArray(T[] parameters)

Parameters:

parameters

add

public boolean add(SqlParameter parameter)

Parameters:

parameter

addAll

public boolean addAll(Collection parameters)

Parameters:

parameters

clear

public void clear()

contains

public boolean contains(Object parameter)

Parameters:

parameter

containsAll

public boolean containsAll(Collection parameters)

Parameters:

parameters

isEmpty

public boolean isEmpty()

iterator

public Iterator iterator()

remove

public boolean remove(Object parameter)

Parameters:

parameter

removeAll

public boolean removeAll(Collection parameters)

Parameters:

parameters

retainAll

public boolean retainAll(Collection parameters)

Parameters:

parameters

size

public int size()

toArray

public Object[] toArray()

Applies to