01: /*
02: * Copyright 2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.kuali.module.gl.dao.jdbc;
17:
18: import org.kuali.core.dao.jdbc.PlatformAwareDaoBaseJdbc;
19: import org.kuali.core.dbplatform.RawSQL;
20: import org.kuali.module.gl.dao.OrgReversionUnitOfWorkDao;
21:
22: /**
23: * A JDBC implementation of the OrgReversionUnitOfWorkDao...we had to use this because PersistenceService
24: * truncated tables, which is something you can't do on tables with primary keys.
25: */
26: @RawSQL
27: public class OrgReversionUnitOfWorkDaoJdbc extends
28: PlatformAwareDaoBaseJdbc implements OrgReversionUnitOfWorkDao {
29:
30: /**
31: * Deletes all existing records in gl_org_rvrsn_ctgry_amt_t and gl_org_rvrsn_unit_wrk_t
32: *
33: * @see org.kuali.module.gl.dao.OrgReversionUnitOfWorkDao#destroyAllUnitOfWorkSummaries()
34: */
35: @RawSQL
36: public void destroyAllUnitOfWorkSummaries() {
37: getSimpleJdbcTemplate().update(
38: "delete from GL_ORG_RVRSN_CTGRY_AMT_T");
39: getSimpleJdbcTemplate().update(
40: "delete from GL_ORG_RVRSN_UNIT_WRK_T");
41: }
42:
43: }
|