Package org.openbravo.base.model
Class Reference
- java.lang.Object
-
- org.openbravo.base.model.ModelObject
-
- org.openbravo.base.model.Reference
-
public class Reference extends ModelObject
Used by theModelProvider
, maps the AD_Reference table in the in-memory model.- Author:
- iperdomo
-
-
Field Summary
Fields Modifier and Type Field Description static String
IMAGE
static String
IMAGE_BLOB
static String
NO_REFERENCE
static String
PRODUCT_ATTRIBUTE
static String
RESOURCE_ASSIGNMENT
static String
SEARCH
static String
TABLE
static String
TABLEDIR
-
Constructor Summary
Constructors Constructor Description Reference()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DomainType
getDomainType()
String
getModelImpl()
String
getModelImplementationClassName()
Also calls the parent reference (getParentReference()
) to find the modelImpl (getModelImpl()
).Reference
getParentReference()
boolean
isBaseReference()
boolean
isPrimitive()
void
setBaseReference(boolean baseReference)
void
setModelImpl(String modelImpl)
void
setParentReference(Reference parentReference)
-
Methods inherited from class org.openbravo.base.model.ModelObject
get, getData, getId, getIdentifier, getName, getUpdated, isActive, isNew, set, setActive, setId, setName, setUpdated, toString
-
-
-
-
Field Detail
-
TABLE
public static final String TABLE
- See Also:
- Constant Field Values
-
TABLEDIR
public static final String TABLEDIR
- See Also:
- Constant Field Values
-
SEARCH
public static final String SEARCH
- See Also:
- Constant Field Values
-
IMAGE
public static final String IMAGE
- See Also:
- Constant Field Values
-
IMAGE_BLOB
public static final String IMAGE_BLOB
- See Also:
- Constant Field Values
-
RESOURCE_ASSIGNMENT
public static final String RESOURCE_ASSIGNMENT
- See Also:
- Constant Field Values
-
PRODUCT_ATTRIBUTE
public static final String PRODUCT_ATTRIBUTE
- See Also:
- Constant Field Values
-
NO_REFERENCE
public static final String NO_REFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
isBaseReference
public boolean isBaseReference()
-
setBaseReference
public void setBaseReference(boolean baseReference)
-
isPrimitive
public boolean isPrimitive()
-
getDomainType
public DomainType getDomainType()
-
getModelImplementationClassName
public String getModelImplementationClassName()
Also calls the parent reference (getParentReference()
) to find the modelImpl (getModelImpl()
).- Returns:
- the modelImpl or if not set, the value set in the parent.
-
getModelImpl
public String getModelImpl()
-
setModelImpl
public void setModelImpl(String modelImpl)
-
getParentReference
public Reference getParentReference()
-
setParentReference
public void setParentReference(Reference parentReference)
-
-