SqlParameterCollection Class

  • java.lang.Object
    • java.util.Collection<SqlParameter>
      • com.microsoft.azure.cosmosdb.SqlParameterCollection

public class SqlParameterCollection

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(Collection<SqlParameter> parameters)

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

SqlParameterCollection(SqlParameter... parameters)

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

Method Summary

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

Constructor Details

SqlParameterCollection

public SqlParameterCollection()

Initializes a new instance of the SqlParameterCollection class.

SqlParameterCollection

public SqlParameterCollection(Collection parameters)

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

Parameters:

parameters - the collection of parameters.

SqlParameterCollection

public SqlParameterCollection(SqlParameter... parameters)

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

Parameters:

parameters - the array of parameters.

Method Details

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()

toArray

public T [] toArray(T[] parameters)

Parameters:

parameters

Applies to