Search Results
OK to copy?
Examples 1 through 10 of
49 (0.082 seconds)
Class:
org.springframework.jdbc.support.incrementer.AbstractSequenceMaxValueIncrementer
©,
Rating:
100% of 2,
C1
Class: org.springframework.jdbc.core.support.JdbcBeanDefinitionReaderTests ©, Rating: 0% of 0, C1
Class: com.technoetic.xplanner.upgrade.RoleDataUpgrader ©, Rating: 0% of 0, C1
Class: com.technoetic.xplanner.upgrade.RoleDataUpgrader ©, Rating: 0% of 0, C1
Class: com.technoetic.xplanner.upgrade.RoleDataUpgrader ©, Rating: 0% of 0, C2
Class: org.springframework.jdbc.support.DatabaseStartupValidator ©, Rating: 0% of 0, C2
Class: org.springframework.jdbc.support.incrementer.HsqlMaxValueIncrementer ©, Rating: 0% of 0, C2
Class: org.springframework.jdbc.support.incrementer.MySQLMaxValueIncrementer ©, Rating: 0% of 0, C1
Class: com.technoetic.xplanner.upgrade.AttachmentUpgrader ©, Rating: 0% of 0, C2
Class: com.technoetic.xplanner.upgrade.AttachmentUpgrader ©, Rating: 0% of 0, C1
41 ResultSet rs = null;
42 try {
43 stmt = con.createStatement();
44 DataSourceUtils.applyTransactionTimeout(stmt, getDataSource());
45 rs = stmt.executeQuery(getSequenceQuery());
Class: org.springframework.jdbc.core.support.JdbcBeanDefinitionReaderTests ©, Rating: 0% of 0, C1
59 ctrlStatement.setVoidCallable();
60
61 mockConnection.createStatement();
62 ctrlConnection.setReturnValue(mockStatement);
63
Class: com.technoetic.xplanner.upgrade.RoleDataUpgrader ©, Rating: 0% of 0, C1
105 // main test set up code from this behavior.
106 Session session = GlobalSessionFactory.get().openSession();
107 Statement statement = session.connection().createStatement();
108 try {
109 statement.execute("select * from personrole");
Class: com.technoetic.xplanner.upgrade.RoleDataUpgrader ©, Rating: 0% of 0, C1
089
090 private void dropTable(Session session, String tableName) throws HibernateException, SQLException {
091 Statement statement = session.connection().createStatement();
092 try {
093 statement.execute("drop table "+tableName);
Class: com.technoetic.xplanner.upgrade.RoleDataUpgrader ©, Rating: 0% of 0, C2
050
051 private void upgradeRoles(Session session, List projects) throws HibernateException, SQLException {
052 Statement statement = session.connection().createStatement();
053 ResultSet rs = null;
054 try {
Class: org.springframework.jdbc.support.DatabaseStartupValidator ©, Rating: 0% of 0, C2
112 try {
113 con = this.dataSource.getConnection();
114 stmt = con.createStatement();
115 stmt.execute(this.validationQuery);
116 validated = true;
Class: org.springframework.jdbc.support.incrementer.HsqlMaxValueIncrementer ©, Rating: 0% of 0, C2
132 Statement stmt = null;
133 try {
134 stmt = con.createStatement();
135 DataSourceUtils.applyTransactionTimeout(stmt, getDataSource());
136 this.valueCache = new long[getCacheSize()];
Class: org.springframework.jdbc.support.incrementer.MySQLMaxValueIncrementer ©, Rating: 0% of 0, C1
139 Statement stmt = null;
140 try {
141 stmt = con.createStatement();
142 DataSourceUtils.applyTransactionTimeout(stmt, getDataSource());
143 // increment the sequence column
Class: com.technoetic.xplanner.upgrade.AttachmentUpgrader ©, Rating: 0% of 0, C2
067 private void upgradeAttachments(Session session) throws HibernateException, SQLException {
068 HashMap noteToProjectMap = loadNotesToProjectMap(session);
069 Statement statement = session.connection().createStatement();
070 ResultSet rs = null;
071 try {
Class: com.technoetic.xplanner.upgrade.AttachmentUpgrader ©, Rating: 0% of 0, C1
060 private void dropColumn(Session session, String tableName, String columnName)
061 throws HibernateException, SQLException {
062 final Statement statement = session.connection().createStatement();
063 statement.execute("alter table "+tableName+" drop column "+columnName);
064 statement.close();