%line | %branch | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
org.apache.turbine.om.security.peer.UserGroupRolePeer |
|
|
1 | package org.apache.turbine.om.security.peer; |
|
2 | ||
3 | /* |
|
4 | * Copyright 2001-2005 The Apache Software Foundation. |
|
5 | * |
|
6 | * Licensed under the Apache License, Version 2.0 (the "License") |
|
7 | * you may not use this file except in compliance with the License. |
|
8 | * You may obtain a copy of the License at |
|
9 | * |
|
10 | * http://www.apache.org/licenses/LICENSE-2.0 |
|
11 | * |
|
12 | * Unless required by applicable law or agreed to in writing, software |
|
13 | * distributed under the License is distributed on an "AS IS" BASIS, |
|
14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
15 | * See the License for the specific language governing permissions and |
|
16 | * limitations under the License. |
|
17 | */ |
|
18 | ||
19 | import org.apache.torque.util.BasePeer; |
|
20 | ||
21 | import org.apache.turbine.util.db.map.TurbineMapBuilder; |
|
22 | ||
23 | /** |
|
24 | * This class handles all database access for the VISITOR_ROLE table. |
|
25 | * This table contains all the roles that a given user can play. |
|
26 | * |
|
27 | * @author <a href="mailto:frank.kim@clearink.com">Frank Y. Kim</a> |
|
28 | * @author <a href="mailto:john.mcnally@clearink.com">John D. McNally</a> |
|
29 | * @author <a href="mailto:bmclaugh@algx.net">Brett McLaughlin</a> |
|
30 | * @version $Id: UserGroupRolePeer.java 264148 2005-08-29 14:21:04Z henning $ |
|
31 | */ |
|
32 | 0 | public class UserGroupRolePeer extends BasePeer |
33 | { |
|
34 | /** Serial Version UID */ |
|
35 | private static final long serialVersionUID = -9097451661613525751L; |
|
36 | ||
37 | /** The map builder for this Peer. */ |
|
38 | 0 | private static final TurbineMapBuilder MAP_BUILDER = (TurbineMapBuilder) |
39 | 0 | getMapBuilder(TurbineMapBuilder.class.getName()); |
40 | ||
41 | /** The table name for this peer. */ |
|
42 | 0 | public static final String TABLE_NAME = MAP_BUILDER.getTableUserGroupRole(); |
43 | ||
44 | /** The column name for the visitor id field. */ |
|
45 | 0 | public static final String USER_ID = MAP_BUILDER.getUserGroupRole_UserId(); |
46 | ||
47 | /** The column name for the group id field. */ |
|
48 | 0 | public static final String GROUP_ID = MAP_BUILDER.getUserGroupRole_GroupId(); |
49 | ||
50 | /** The column name for the role id field. */ |
|
51 | 0 | public static final String ROLE_ID = MAP_BUILDER.getUserGroupRole_RoleId(); |
52 | ||
53 | /** |
|
54 | * Get the name of this table. |
|
55 | * |
|
56 | * @return A String with the name of the table. |
|
57 | */ |
|
58 | public static String getTableName() |
|
59 | { |
|
60 | 0 | return TABLE_NAME; |
61 | } |
|
62 | ||
63 | /** |
|
64 | * Returns the full name of a column. |
|
65 | * |
|
66 | * @param name name of a column |
|
67 | * @return A String with the full name of the column. |
|
68 | */ |
|
69 | public static String getColumnName(String name) |
|
70 | { |
|
71 | 0 | StringBuffer sb = new StringBuffer(); |
72 | 0 | sb.append(TABLE_NAME); |
73 | 0 | sb.append("."); |
74 | 0 | sb.append(name); |
75 | 0 | return sb.toString(); |
76 | } |
|
77 | } |
This report is generated by jcoverage, Maven and Maven JCoverage Plugin. |