Package org.compiere.model
Class DatabaseKey
java.lang.Object
org.compiere.model.DatabaseKey
Database foreign or primary key
- Author:
- Elaine
-
Constructor Summary
ConstructorDescriptionDatabaseKey
(String keyName, String keyTable, String[] keyColumns, short deleteRule) -
Method Summary
Modifier and TypeMethodDescriptionshort
String[]
void
setDeleteRule
(short deleteRule) void
setKeyColumns
(String[] keyColumns) void
setKeyName
(String keyName) void
setKeyTable
(String keyTable)
-
Constructor Details
-
DatabaseKey
- Parameters:
keyName
-keyTable
-keyColumns
-deleteRule
-
-
-
Method Details
-
getKeyName
- Returns:
- constraint name
-
setKeyName
- Parameters:
keyName
-
-
getKeyTable
- Returns:
- table name
-
setKeyTable
- Parameters:
keyTable
- table name
-
getKeyColumns
- Returns:
- columns
-
setKeyColumns
- Parameters:
keyColumns
-
-
getDeleteRule
public short getDeleteRule()- Returns:
- delete rule (no action, cascade, set null or prevent)
-
setDeleteRule
public void setDeleteRule(short deleteRule) - Parameters:
deleteRule
-
-