OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 public ScriptWrappable { | 44 public ScriptWrappable { |
45 DEFINE_WRAPPERTYPEINFO(); | 45 DEFINE_WRAPPERTYPEINFO(); |
46 | 46 |
47 public: | 47 public: |
48 static SQLResultSetRowList* create() { return new SQLResultSetRowList; } | 48 static SQLResultSetRowList* create() { return new SQLResultSetRowList; } |
49 DEFINE_INLINE_TRACE() {} | 49 DEFINE_INLINE_TRACE() {} |
50 | 50 |
51 const Vector<String>& columnNames() const { return m_columns; } | 51 const Vector<String>& columnNames() const { return m_columns; } |
52 const Vector<SQLValue>& values() const { return m_result; } | 52 const Vector<SQLValue>& values() const { return m_result; } |
53 | 53 |
54 void addColumn(const String& name) { m_columns.append(name); } | 54 void addColumn(const String& name) { m_columns.push_back(name); } |
55 void addResult(const SQLValue& result) { m_result.append(result); } | 55 void addResult(const SQLValue& result) { m_result.push_back(result); } |
56 | 56 |
57 unsigned length() const; | 57 unsigned length() const; |
58 ScriptValue item(ScriptState*, unsigned index, ExceptionState&); | 58 ScriptValue item(ScriptState*, unsigned index, ExceptionState&); |
59 | 59 |
60 private: | 60 private: |
61 SQLResultSetRowList() {} | 61 SQLResultSetRowList() {} |
62 | 62 |
63 Vector<String> m_columns; | 63 Vector<String> m_columns; |
64 Vector<SQLValue> m_result; | 64 Vector<SQLValue> m_result; |
65 }; | 65 }; |
66 | 66 |
67 } // namespace blink | 67 } // namespace blink |
68 | 68 |
69 #endif // SQLResultSetRowList_h | 69 #endif // SQLResultSetRowList_h |
OLD | NEW |