|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.model.PO
org.compiere.model.X_AD_Table
org.compiere.model.MTable
public class MTable
Persistent Table Model
Change log:
| Field Summary |
|---|
| Fields inherited from class org.compiere.model.PO |
|---|
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_ctx, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID |
| Constructor Summary | |
|---|---|
MTable(Properties ctx,
int AD_Table_ID,
String trxName)
Standard Constructor |
|
MTable(Properties ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
| Method Summary | |
|---|---|
protected boolean |
afterSave(boolean newRecord,
boolean success)
After Save |
protected boolean |
beforeSave(boolean newRecord)
Before Save |
Query |
createQuery(String whereClause,
String trxName)
Create query to retrieve one or more PO. |
static MTable |
get(Properties ctx,
int AD_Table_ID)
Get Table from Cache |
static MTable |
get(Properties ctx,
String tableName)
Get Table from Cache |
static Class |
getClass(String tableName)
Get Persistency Class for Table |
MColumn |
getColumn(String columnName)
Get Column |
MColumn[] |
getColumns(boolean requery)
Get Columns |
String[] |
getKeyColumns()
Get Key Columns of Table |
PO |
getPO(int Record_ID,
String trxName)
Get PO Class Instance |
PO |
getPO(ResultSet rs,
String trxName)
Get PO Class Instance |
PO |
getPO(String whereClause,
Object[] params,
String trxName)
Get PO class instance |
PO |
getPO(String whereClause,
String trxName)
Get PO Class Instance |
String |
getSQLCreate()
Get SQL Create |
static int |
getTable_ID(String tableName)
Grant independence to GenerateModel from AD_Table_ID |
static String |
getTableName(Properties ctx,
int AD_Table_ID)
Get Table Name |
boolean |
isSingleKey()
Table has a single Key |
String |
toString()
String Representation |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.compiere.model.I_Persistent |
|---|
save |
| Constructor Detail |
|---|
public MTable(Properties ctx,
int AD_Table_ID,
String trxName)
ctx - contextAD_Table_ID - idtrxName - transaction
public MTable(Properties ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - transaction| Method Detail |
|---|
public static MTable get(Properties ctx,
int AD_Table_ID)
ctx - contextAD_Table_ID - id
public static MTable get(Properties ctx,
String tableName)
ctx - contexttableName - case insensitive table name
public static String getTableName(Properties ctx,
int AD_Table_ID)
ctx - contextAD_Table_ID - table
public static Class getClass(String tableName)
tableName - table name
public MColumn[] getColumns(boolean requery)
requery - requery
public MColumn getColumn(String columnName)
columnName - (case insensitive)
public boolean isSingleKey()
public String[] getKeyColumns()
public PO getPO(int Record_ID,
String trxName)
Record_ID - recordtrxName -
public PO getPO(ResultSet rs,
String trxName)
rs - result settrxName - transaction
public PO getPO(String whereClause,
String trxName)
whereClause - where clausetrxName - transaction
public PO getPO(String whereClause,
Object[] params,
String trxName)
whereClause - params - trxName -
protected boolean beforeSave(boolean newRecord)
beforeSave in class POnewRecord - new
protected boolean afterSave(boolean newRecord,
boolean success)
afterSave in class POnewRecord - newsuccess - success
public String getSQLCreate()
public static int getTable_ID(String tableName)
String - tableName
public Query createQuery(String whereClause,
String trxName)
whereClause - trxName -
public String toString()
toString in class X_AD_Table
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||