Package org.compiere.model
Class PO_Record
java.lang.Object
org.compiere.model.PO_Record
Maintain AD_Table_ID/Record_ID constraint
- Version:
- $Id: PO_Record.java,v 1.4 2006/07/30 00:58:04 jjanke Exp $
- Author:
- Jorg Janke
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
deleteModelCascade
(String tableName, Serializable Record_IDorUU, String trxName) protected static boolean
deleteRecordCascade
(int AD_Table_ID, Serializable Record_IDorUU, String whereTables, String trxName) Delete Cascade including (selected)parent relationshipsprotected static String
exists
(int AD_Table_ID, Serializable Record_IDorUU, String trxName) An entry Exists for restrict table/record combinationstatic void
setRecordNull
(int AD_Table_ID, Serializable Record_IDorUU, String trxName) If a referencing Record ID or Record UU exists to the deleted record, set it to NULL
-
Constructor Details
-
PO_Record
public PO_Record()
-
-
Method Details
-
deleteRecordCascade
protected static boolean deleteRecordCascade(int AD_Table_ID, Serializable Record_IDorUU, String whereTables, String trxName) Delete Cascade including (selected)parent relationships- Parameters:
AD_Table_ID
- tableRecord_IDorUU
- record ID (int) or UUID (String)whereTables
- filter for the TablestrxName
- transaction- Returns:
- false if could not be deleted
-
deleteModelCascade
- Parameters:
tableName
-Record_IDorUU
- record ID (int) or UUID (String)trxName
-
-
setRecordNull
If a referencing Record ID or Record UU exists to the deleted record, set it to NULL- Parameters:
AD_Table_ID
-Record_IDorUU
- record ID (int) or UUID (String)trxName
-
-
exists
An entry Exists for restrict table/record combination- Parameters:
AD_Table_ID
- tableRecord_IDorUU
- record ID (int) or UUID (String)trxName
- transaction- Returns:
- error message (Table Name) or null
-