Generated U_RoleMenu model class - fix broken trunk
This commit is contained in:
parent
26c37a7c69
commit
f9658c7014
|
@ -37,7 +37,7 @@ import org.compiere.util.KeyNamePair;
|
|||
|
||||
/** Generated Interface for U_RoleMenu
|
||||
* @author Trifon Trifonov (generated)
|
||||
* @version Release 3.3.0 - 2007-09-04 17:47:52.928
|
||||
* @version Release 3.3.0
|
||||
*/
|
||||
public interface I_U_RoleMenu
|
||||
{
|
||||
|
@ -45,7 +45,7 @@ public interface I_U_RoleMenu
|
|||
/** TableName=U_RoleMenu */
|
||||
public static final String Table_Name = "U_RoleMenu";
|
||||
|
||||
/** AD_Table_ID=1000002 */
|
||||
/** AD_Table_ID=52002 */
|
||||
public static final int Table_ID = MTable.getTable_ID(Table_Name);
|
||||
|
||||
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
||||
|
@ -71,17 +71,6 @@ public interface I_U_RoleMenu
|
|||
|
||||
public I_AD_Role getAD_Role() throws Exception;
|
||||
|
||||
/** Column name U_Menu_ID */
|
||||
public static final String COLUMNNAME_U_Menu_ID = "U_Menu_ID";
|
||||
|
||||
/** Set U_Menu_ID */
|
||||
public void setU_Menu_ID (int U_Menu_ID);
|
||||
|
||||
/** Get U_Menu_ID */
|
||||
public int getU_Menu_ID();
|
||||
|
||||
public I_U_Menu getU_Menu() throws Exception;
|
||||
|
||||
/** Column name U_RoleMenu_ID */
|
||||
public static final String COLUMNNAME_U_RoleMenu_ID = "U_RoleMenu_ID";
|
||||
|
||||
|
@ -90,4 +79,15 @@ public interface I_U_RoleMenu
|
|||
|
||||
/** Get U_RoleMenu_ID */
|
||||
public int getU_RoleMenu_ID();
|
||||
|
||||
/** Column name U_WebMenu_ID */
|
||||
public static final String COLUMNNAME_U_WebMenu_ID = "U_WebMenu_ID";
|
||||
|
||||
/** Set U_WebMenu_ID */
|
||||
public void setU_WebMenu_ID (int U_WebMenu_ID);
|
||||
|
||||
/** Get U_WebMenu_ID */
|
||||
public int getU_WebMenu_ID();
|
||||
|
||||
public I_U_WebMenu getU_WebMenu() throws Exception;
|
||||
}
|
||||
|
|
|
@ -40,8 +40,8 @@ public class X_U_RoleMenu extends PO implements I_U_RoleMenu, I_Persistent
|
|||
/** if (U_RoleMenu_ID == 0)
|
||||
{
|
||||
setAD_Role_ID (0);
|
||||
setU_Menu_ID (0);
|
||||
setU_RoleMenu_ID (0);
|
||||
setU_WebMenu_ID (0);
|
||||
} */
|
||||
}
|
||||
|
||||
|
@ -111,41 +111,6 @@ public class X_U_RoleMenu extends PO implements I_U_RoleMenu, I_Persistent
|
|||
return ii.intValue();
|
||||
}
|
||||
|
||||
public I_U_Menu getU_Menu() throws Exception
|
||||
{
|
||||
Class<?> clazz = MTable.getClass(I_U_Menu.Table_Name);
|
||||
I_U_Menu result = null;
|
||||
try {
|
||||
Constructor<?> constructor = null;
|
||||
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
||||
result = (I_U_Menu)constructor.newInstance(new Object[] {getCtx(), new Integer(getU_Menu_ID()), get_TrxName()});
|
||||
} catch (Exception e) {
|
||||
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
|
||||
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
|
||||
throw e;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/** Set U_Menu_ID.
|
||||
@param U_Menu_ID U_Menu_ID */
|
||||
public void setU_Menu_ID (int U_Menu_ID)
|
||||
{
|
||||
if (U_Menu_ID < 1)
|
||||
throw new IllegalArgumentException ("U_Menu_ID is mandatory.");
|
||||
set_Value (COLUMNNAME_U_Menu_ID, Integer.valueOf(U_Menu_ID));
|
||||
}
|
||||
|
||||
/** Get U_Menu_ID.
|
||||
@return U_Menu_ID */
|
||||
public int getU_Menu_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_U_Menu_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set U_RoleMenu_ID.
|
||||
@param U_RoleMenu_ID U_RoleMenu_ID */
|
||||
public void setU_RoleMenu_ID (int U_RoleMenu_ID)
|
||||
|
@ -164,4 +129,39 @@ public class X_U_RoleMenu extends PO implements I_U_RoleMenu, I_Persistent
|
|||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
public I_U_WebMenu getU_WebMenu() throws Exception
|
||||
{
|
||||
Class<?> clazz = MTable.getClass(I_U_WebMenu.Table_Name);
|
||||
I_U_WebMenu result = null;
|
||||
try {
|
||||
Constructor<?> constructor = null;
|
||||
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
||||
result = (I_U_WebMenu)constructor.newInstance(new Object[] {getCtx(), new Integer(getU_WebMenu_ID()), get_TrxName()});
|
||||
} catch (Exception e) {
|
||||
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
|
||||
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
|
||||
throw e;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/** Set U_WebMenu_ID.
|
||||
@param U_WebMenu_ID U_WebMenu_ID */
|
||||
public void setU_WebMenu_ID (int U_WebMenu_ID)
|
||||
{
|
||||
if (U_WebMenu_ID < 1)
|
||||
throw new IllegalArgumentException ("U_WebMenu_ID is mandatory.");
|
||||
set_Value (COLUMNNAME_U_WebMenu_ID, Integer.valueOf(U_WebMenu_ID));
|
||||
}
|
||||
|
||||
/** Get U_WebMenu_ID.
|
||||
@return U_WebMenu_ID */
|
||||
public int getU_WebMenu_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_U_WebMenu_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue