Searched refs:statement (Results 1 - 14 of 14) sorted by relevance

/dalvik/libcore/sql/src/test/java/tests/support/
H A DDatabaseCreator.java257 Statement statement = conn.createStatement();
258 statement
260 statement.execute("INSERT INTO " + PARENT_TABLE + " VALUES(2,'test2')");
261 statement
266 Statement statement = conn.createStatement();
267 statement.execute("INSERT INTO " + FKSTRICT_TABLE
269 statement.execute("INSERT INTO " + FKSTRICT_TABLE
271 statement.execute("INSERT INTO " + FKSTRICT_TABLE
276 Statement statement = conn.createStatement();
277 statement
[all...]
/dalvik/libcore/sql/src/test/java/tests/java/sql/
H A DInsertFunctionalityTest.java44 private static Statement statement = null; field in class:InsertFunctionalityTest
50 statement = conn.createStatement();
57 statement.close();
70 statement
74 statement
78 statement
82 statement
86 statement
90 statement.execute(DatabaseCreator.DROP_TABLE5);
94 statement
[all...]
H A DUpdateFunctionalityTest2.java45 private static Statement statement = null; field in class:UpdateFunctionalityTest2
52 statement = conn.createStatement();
64 statement.close();
77 statement
81 statement
85 statement
89 statement
93 statement
97 statement.execute(DatabaseCreator.DROP_TABLE5);
101 statement
[all...]
H A DDeleteFunctionalityTest.java43 private static Statement statement = null; field in class:DeleteFunctionalityTest
49 statement = conn.createStatement();
56 statement.close();
70 statement
74 statement
78 statement
82 statement.execute(DatabaseCreator.DROP_TABLE5);
86 statement.execute(DatabaseCreator.CREATE_TABLE_PARENT);
87 statement.execute(DatabaseCreator.CREATE_TABLE_FKSTRICT);
88 statement
[all...]
H A DUpdateFunctionalityTest.java46 private static Statement statement; field in class:UpdateFunctionalityTest
53 statement = conn.createStatement();
64 statement.close();
78 statement.execute(DatabaseCreator.DROP_TABLE1);
81 statement.execute(DatabaseCreator.DROP_TABLE2);
84 statement.execute(DatabaseCreator.DROP_TABLE3);
89 statement.execute(DatabaseCreator.CREATE_TABLE3);
90 statement.execute(DatabaseCreator.CREATE_TABLE2);
91 statement.execute(DatabaseCreator.CREATE_TABLE1);
100 statement
[all...]
H A DMultiThreadAccessTest.java45 private static Statement statement; field in class:MultiThreadAccessTest
58 statement = conn.createStatement();
70 statement.close();
82 statement.execute(DatabaseCreator.DROP_TABLE1);
85 statement.execute(DatabaseCreator.DROP_TABLE2);
88 statement.execute(DatabaseCreator.DROP_TABLE4);
91 statement.execute(DatabaseCreator.DROP_TABLE3);
96 statement.execute(DatabaseCreator.CREATE_TABLE3);
97 statement.execute(DatabaseCreator.CREATE_TABLE4);
98 statement
[all...]
H A DSelectFunctionalityTest.java51 private static Statement statement; field in class:SelectFunctionalityTest
62 statement = conn.createStatement();
72 statement.close();
84 statement.execute(DatabaseCreator.DROP_TABLE2);
87 statement
91 statement
95 statement
101 statement.execute(DatabaseCreator.CREATE_TABLE2);
102 statement.execute(DatabaseCreator.CREATE_TABLE_SALESPEOPLE);
103 statement
[all...]
H A DStressTest.java46 private static Statement statement; field in class:StressTest
52 statement = conn.createStatement();
59 statement.close();
72 statement.execute(DatabaseCreator.DROP_TABLE2);
75 statement.execute(DatabaseCreator.CREATE_TABLE2);
84 statement.execute(DatabaseCreator.DROP_TABLE2);
106 // statement.execute("DELETE FROM " + DatabaseCreator.TEST_TABLE2);
200 ResultSet rs = statement
241 ResultSet rs = statement
H A DQueryTimeoutTest.java58 * threads execute their statement in the context of one connection, the other
60 * one executes its statement with a timeout value. This way, the test ensures
61 * that the correct statement is affected by setQueryTimeout(), regardless of
68 * multiple statements on the same connection; since only one statement per
72 * the threads execute their statement with a timeout value set, this is to
77 * 4. Tests that the query timeout value is not forgotten after the execution of a statement.
82 private static Statement statement; field in class:QueryTimeoutTest
148 Statement statement = null;
150 statement = connection.createStatement();
152 statement
223 private PreparedStatement statement; field in class:QueryTimeoutTest.StatementExecutor
230 StatementExecutor(PreparedStatement statement, boolean doFetch, int timeout) argument
[all...]
H A DDatabaseMetaDataNotSupportedTest.java54 protected static Statement statement; field in class:DatabaseMetaDataNotSupportedTest
66 statement = conn.createStatement();
77 statement = conn.createStatement();
96 statement.execute(DatabaseCreator.DROP_TABLE1);
99 statement.execute(DatabaseCreator.DROP_TABLE3);
101 statement.execute(DROP_VIEW_QUERY);
105 statement.execute(DatabaseCreator.CREATE_TABLE3);
106 statement.execute(DatabaseCreator.CREATE_TABLE1);
107 statement.execute(CREATE_VIEW_QUERY);
116 statement
[all...]
H A DDatabaseMetaDataTest.java60 protected static Statement statement; field in class:DatabaseMetaDataTest
72 statement = conn.createStatement();
86 statement = conn.createStatement();
105 statement.execute(DatabaseCreator.DROP_TABLE1);
108 statement.execute(DatabaseCreator.DROP_TABLE3);
110 statement.execute(DROP_VIEW_QUERY);
114 statement.execute(DatabaseCreator.CREATE_TABLE3);
115 statement.execute(DatabaseCreator.CREATE_TABLE1);
116 statement.execute(CREATE_VIEW_QUERY);
125 statement
[all...]
/dalvik/dx/src/com/android/dx/ssa/back/
H A DLivenessAnalyzer.java65 /** index of statement {@code s} in {@code blockN} */
206 // Live out at last statement in blockN
216 // if s is the first statement in block N
225 // Let s' be the statement preceeding s
235 SsaInsn statement = blockN.getInsns().get(statementIndex);
236 RegisterSpec rs = statement.getResult();
238 if (!statement.isResultReg(regV)) {
/dalvik/libcore/sql/src/test/java/tests/SQLite/
H A DDatabaseTest.java77 private Statement statement; field in class:DatabaseTest
91 statement = conn.createStatement();
101 this.statement.execute("drop table "+tableName);
106 // statement = conn.createStatement();
107 statement.execute(DatabaseCreator.CREATE_TABLE_SIMPLE1);
108 statement.close();
429 statement.execute(DatabaseCreator.DROP_TABLE1);
545 statement.execute(DatabaseCreator.DROP_TABLE1);
669 statement.execute(DatabaseCreator.DROP_TABLE1);
1206 String statement
[all...]
/dalvik/libcore/sql/src/test/java/tests/sql/
H A DConnectionTest.java55 Statement statement = null;
57 statement = conn.createStatement();
58 assertNotNull(statement);
60 assertEquals(ResultSet.FETCH_UNKNOWN, statement.getFetchDirection());
61 assertNull(statement.getWarnings());
62 assertTrue(statement.getQueryTimeout() > 0);
70 statement.executeQuery("select * from zoo");
763 fail("Could execute statement on closed connection.");
865 fail("Could execute statement on closed connection.");
1079 fail("Could execute statement o
[all...]

Completed in 105 milliseconds