Package org.openbravo.base.model
Class Column
- java.lang.Object
-
- org.openbravo.base.model.ModelObject
-
- org.openbravo.base.model.Column
-
public class Column extends ModelObject
Used by theModelProvider
, maps the AD_Column table in the application dictionary.- Author:
- iperdomo, mtaal
-
-
Constructor Summary
Constructors Constructor Description Column()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getAllowedValues()
Is used when this column denotes an enum.String
getColumnName()
String
getDefaultValue()
DomainType
getDomainType()
int
getFieldLength()
String
getIsTransientCondition()
Module
getModule()
String
getObjectTypeName()
Returns the classname of the object which maps to the type of this column.Integer
getPosition()
Class<?>
getPrimitiveType()
Property
getProperty()
Reference
getReference()
Column
getReferenceType()
Reference
getReferenceValue()
Integer
getSeqno()
String
getSimpleTypeName()
String
getSqlLogic()
Table
getTable()
String
getTypeName()
String
getValueMax()
String
getValueMin()
boolean
isActive()
boolean
isAllowedCrossOrgReference()
Defines whether theProperty
generated for this column will allow cross organization references.boolean
isBoolean()
boolean
isChildPropertyInParent()
boolean
isDecryptable()
boolean
isEncrypted()
boolean
isIdentifier()
boolean
isKey()
boolean
isMandatory()
boolean
isParent()
boolean
isPrimitiveType()
boolean
isSecondaryKey()
boolean
isStoredInSession()
Boolean
isTransient()
boolean
isTranslatable()
boolean
isUpdatable()
boolean
isUsedSequence()
void
setAllowedCrossOrgReference(boolean allowedCrossOrgReference)
void
setChildPropertyInParent(boolean isChildPropertyInParent)
void
setColumnName(String columnName)
void
setDecryptable(boolean decryptable)
void
setDefaultValue(String defaultValue)
void
setEncrypted(boolean encrypted)
void
setFieldLength(int fieldLength)
void
setIdentifier(Boolean identifier)
void
setIsTransientCondition(String isTransientCondition)
void
setKey(Boolean key)
void
setMandatory(Boolean mandatory)
void
setModule(Module module)
void
setParent(Boolean parent)
void
setPosition(Integer position)
void
setProperty(Property property)
void
setReference(Reference reference)
protected void
setReferenceType()
void
setReferenceType(Column column)
protected void
setReferenceType(ModelProvider modelProvider)
Deprecated usesetReferenceType()
void
setReferenceValue(Reference referenceValue)
void
setSecondaryKey(boolean secondaryKey)
void
setSeqno(Integer seqno)
void
setSqlLogic(String sqlLogic)
void
setStoredInSession(boolean storedInSession)
void
setTable(Table table)
void
setTransient(Boolean isTransient)
void
setTranslatable(boolean translatable)
void
setUpdatable(Boolean updatable)
void
setUsedSequence(boolean usedSequence)
void
setValueMax(String valueMax)
void
setValueMin(String valueMin)
String
toString()
Returns the concatenation of the table and column name.-
Methods inherited from class org.openbravo.base.model.ModelObject
get, getData, getId, getIdentifier, getName, getUpdated, isNew, set, setActive, setId, setName, setUpdated
-
-
-
-
Method Detail
-
getDomainType
public DomainType getDomainType()
-
isBoolean
public boolean isBoolean()
-
getColumnName
public String getColumnName()
-
setColumnName
public void setColumnName(String columnName)
-
getTable
public Table getTable()
-
setTable
public void setTable(Table table)
-
getReference
public Reference getReference()
-
setReference
public void setReference(Reference reference)
-
getReferenceValue
public Reference getReferenceValue()
-
setReferenceValue
public void setReferenceValue(Reference referenceValue)
-
getFieldLength
public int getFieldLength()
-
setFieldLength
public void setFieldLength(int fieldLength)
-
getDefaultValue
public String getDefaultValue()
-
setDefaultValue
public void setDefaultValue(String defaultValue)
-
isKey
public boolean isKey()
-
setKey
public void setKey(Boolean key)
-
isSecondaryKey
public boolean isSecondaryKey()
-
setSecondaryKey
public void setSecondaryKey(boolean secondaryKey)
-
isParent
public boolean isParent()
-
setParent
public void setParent(Boolean parent)
-
isMandatory
public boolean isMandatory()
-
setMandatory
public void setMandatory(Boolean mandatory)
-
isUpdatable
public boolean isUpdatable()
-
setUpdatable
public void setUpdatable(Boolean updatable)
-
isIdentifier
public boolean isIdentifier()
-
setIdentifier
public void setIdentifier(Boolean identifier)
-
getValueMin
public String getValueMin()
-
setValueMin
public void setValueMin(String valueMin)
-
getValueMax
public String getValueMax()
-
setValueMax
public void setValueMax(String valueMax)
-
isPrimitiveType
public boolean isPrimitiveType()
-
getPrimitiveType
public Class<?> getPrimitiveType()
-
getReferenceType
public Column getReferenceType()
-
setReferenceType
public void setReferenceType(Column column)
-
isActive
public boolean isActive()
- Overrides:
isActive
in classModelObject
-
setReferenceType
protected void setReferenceType(ModelProvider modelProvider)
Deprecated usesetReferenceType()
-
setReferenceType
protected void setReferenceType()
-
getTypeName
public String getTypeName()
-
getSimpleTypeName
public String getSimpleTypeName()
-
getObjectTypeName
public String getObjectTypeName()
Returns the classname of the object which maps to the type of this column. For example if this column is an int then this method will return java.lang.Integer (the object version of the int).- Returns:
- the name of the class of the type of this column
-
getProperty
public Property getProperty()
-
setProperty
public void setProperty(Property property)
-
toString
public String toString()
Returns the concatenation of the table and column name.- Overrides:
toString
in classModelObject
-
getAllowedValues
public Set<String> getAllowedValues()
Is used when this column denotes an enum. This method returns all allowed String values.- Returns:
- the set of allowed values for this Column.
-
isTransient
public Boolean isTransient()
-
setTransient
public void setTransient(Boolean isTransient)
-
getIsTransientCondition
public String getIsTransientCondition()
-
setIsTransientCondition
public void setIsTransientCondition(String isTransientCondition)
-
getPosition
public Integer getPosition()
-
setPosition
public void setPosition(Integer position)
-
getModule
public Module getModule()
-
setModule
public void setModule(Module module)
-
isEncrypted
public boolean isEncrypted()
-
setEncrypted
public void setEncrypted(boolean encrypted)
-
isDecryptable
public boolean isDecryptable()
-
setDecryptable
public void setDecryptable(boolean decryptable)
-
isTranslatable
public boolean isTranslatable()
-
setTranslatable
public void setTranslatable(boolean translatable)
-
isStoredInSession
public boolean isStoredInSession()
-
setStoredInSession
public void setStoredInSession(boolean storedInSession)
-
getSeqno
public Integer getSeqno()
-
setSeqno
public void setSeqno(Integer seqno)
-
isUsedSequence
public boolean isUsedSequence()
-
setUsedSequence
public void setUsedSequence(boolean usedSequence)
-
getSqlLogic
public String getSqlLogic()
-
setSqlLogic
public void setSqlLogic(String sqlLogic)
-
isAllowedCrossOrgReference
public boolean isAllowedCrossOrgReference()
Defines whether theProperty
generated for this column will allow cross organization references.- See Also:
Property.isAllowedCrossOrgReference()
-
setAllowedCrossOrgReference
public void setAllowedCrossOrgReference(boolean allowedCrossOrgReference)
- See Also:
Property.isAllowedCrossOrgReference()
-
isChildPropertyInParent
public boolean isChildPropertyInParent()
-
setChildPropertyInParent
public void setChildPropertyInParent(boolean isChildPropertyInParent)
-
-