1 package org.apache.turbine.om.security.peer; 2 3 18 19 import org.apache.torque.util.BasePeer; 20 21 import org.apache.turbine.util.db.map.TurbineMapBuilder; 22 23 32 public class UserGroupRolePeer extends BasePeer 33 { 34 35 private static final TurbineMapBuilder MAP_BUILDER = (TurbineMapBuilder) 36 getMapBuilder(TurbineMapBuilder.class.getName()); 37 38 39 public static final String TABLE_NAME = MAP_BUILDER.getTableUserGroupRole(); 40 41 42 public static final String USER_ID = MAP_BUILDER.getUserGroupRole_UserId(); 43 44 45 public static final String GROUP_ID = MAP_BUILDER.getUserGroupRole_GroupId(); 46 47 48 public static final String ROLE_ID = MAP_BUILDER.getUserGroupRole_RoleId(); 49 50 55 public static String getTableName() 56 { 57 return TABLE_NAME; 58 } 59 60 66 public static String getColumnName(String name) 67 { 68 StringBuffer sb = new StringBuffer (); 69 sb.append(TABLE_NAME); 70 sb.append("."); 71 sb.append(name); 72 return sb.toString(); 73 } 74 } 75 | Popular Tags |