Update contrib.
1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
20 inline TBool IsLong( TDbColType aType )
21 { return aType >= EDbColLongText8; }
23 inline TBool IsIntegral( TDbColType aType )
24 { return aType <= EDbColInt64; }
26 inline TBool IsSigned(TDbColType aType)
27 { __ASSERT( IsIntegral( aType ) ); return aType&1; }
29 inline TBool IsUnsigned( TDbColType aType )
30 { return !IsSigned( aType ); }
33 inline MStreamBuf *RDbRowSet::ColSourceL( TDbColNo aCol ) const
34 { return CheckCol( aCol ).ColumnSourceL( aCol ); }
36 inline MStreamBuf *RDbRowSet::ColSinkL( TDbColNo aCol )
37 { return CheckCol( aCol ).ColumnSinkL( aCol ); }
40 inline TBool RDbRow::Owned() const
41 { return iColumn & static_cast<TUint>( EOwned ); }
43 inline TInt RDbRow::Column() const
44 { return iColumn & ~EOwned; }
46 inline void RDbRow::SetCache( TDbCell* aCell, TInt aColumn )
47 { iCell = aCell; iColumn = (iColumn & static_cast<TUint>( EOwned ) ) | aColumn; }