2
* $Header: /home/cvs/jakarta-struts/contrib/artimus/WEB-INF/src/java/org/apache/artimus/keys/Access.java,v 1.3 2004/03/14 07:15:06 sraeburn Exp $
4
* $Date: 2004/03/14 07:15:06 $
6
* Copyright 2001-2004 The Apache Software Foundation.
8
* Licensed under the Apache License, Version 2.0 (the "License");
9
* you may not use this file except in compliance with the License.
10
* You may obtain a copy of the License at
12
* http://www.apache.org/licenses/LICENSE-2.0
14
* Unless required by applicable law or agreed to in writing, software
15
* distributed under the License is distributed on an "AS IS" BASIS,
16
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
* See the License for the specific language governing permissions and
18
* limitations under the License.
22
package org.apache.artimus.keys;
25
import java.sql.SQLException;
27
import org.apache.scaffold.model.ModelException;
28
import org.apache.scaffold.model.ModelResourceException;
30
import org.apache.scaffold.sql.StatementUtils;
32
import org.apache.artimus.keys.sql.Commands;
36
* Data access methods for Articles application.
38
* @version $Revision: 1.3 $ $Date: 2004/03/14 07:15:06 $
40
public final class Access {
47
* Creates KEYS table. This is a wrapper to pass
48
* KEYS_TABLE and KEYS_CREATE to CreateTable(),
49
* thereby encapsulating the implementation.
51
* If create succeeds, will insert starter primary
52
* keys for other tables (CollectionS and ARTICLE).
54
* @exception SQL exception if SQL error occurs
55
* @version $Revision: 1.3 $ $Date: 2004/03/14 07:15:06 $
57
public static final void createTable() throws ModelException {
61
int result = StatementUtils.createTable(null,
62
Commands.KEYS_TABLE, Commands.KEYS_CREATE
65
catch (SQLException e) {
66
throw new ModelResourceException(e);
73
} // ---- End Data -----
b'\\ No newline at end of file'