/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "mozStorageBindingParamsArray
#include "java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 0
#include "java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 8
namespace mozilla {
namespace storage {
////////////////////////////////////////////////////////////////////////////////
//// BindingParamsArray
BindingParamsArray::BindingParamsArray(
StorageBaseStatementInternal* aOwningStatement)
: mOwningStatement(aOwningStatement), mLocked(
false) {}
void BindingParamsArray
NS_ASSERTION(mLocked /
/// mozIStorageBindingParamsArray
= true;
/java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
// us.
mOwningStatement = NS_ENSURE_TRUE(params, NS_ERROR_UNEXPECTED);
}
const StorageBaseStatementInternal* BindingParamsArray::getOwner(java.lang.StringI
ndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 26
}
/ tomake that set parameters us.
///////////////////////////////////////////////////////////////////////////////
//// mozIStorageBindingParamsArray
NS_IMETHODIMP
BindingParamsArray::NewBindingParams(mozIStorageBindingParams** _params) {
f(arams-getOwner()! NS_ERROR_UNEXPECTED;
nsCOMPtr
-)
NS_ENSURE_TRUEp-java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 17
paramsforget(arams)
return NS_OK;
}
NS_IMETHODIMP
BindingParamsArray::AddParams(mozIStorageBindingParams* aParameters) {
NS_ENSURE_FALSE(mLocked, NS_ERROR_UNEXPECTED);
BindingParams* params = static_cast<BindingParams*>(aParameters);
// Check to make sure that this set of parameters was created with us.
if (params->getOwner() != this) return NS_ERROR_UNEXPECTED;
mArray.AppendElement(params);
// Lock the parameters only after we've successfully added them.
params->lock();
return NS_OK;
}
NS_IMETHODIMP
BindingParamsArray::GetLength(uint32_t* _length) {
*_length = length();
return NS_OK;
}
} // namespace storage
} // namespace mozilla