Package com.saperion.ws.wrapper
Class SaWsFieldDescription
java.lang.Object
com.saperion.ws.wrapper.SaWsFieldDescription
This class wraps the SaFieldDescription class.
- Author:
- Daniel Manzke
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of SaWsFieldDescription.SaWsFieldDescription(com.saperion.intf.SaFieldDescription desc) Creates a new instance of SaWsFieldDescription and wraps the original. -
Method Summary
Modifier and TypeMethodDescriptionReads the real database name of this field.intReads the fieldtype.intReads the length if this field.Reads the definition of lookup table.Reads the field in the lookup table.Reads the multivalue separators.getName()Reads the name of this field.booleanTest, if this field has a lookup table.booleanisIndex()Tests, if this field is an index field.booleanReads the value for lookupTableIsDirect.booleanChecks, if this field is mandatory.booleanChecks, if this field is multivalued.booleanChecks whether this object's name is a non-system DDC field name.booleanChecks if this object is a string type.booleanisUnique()Checks, if this field is unique.voidSets the real database name of this field.voidsetFieldType(int ftype) Sets the fieldtype.voidsetHasLookupTable(boolean bHasLookupTable) Sets, if this field has a lookup table.voidsetIndex(boolean isIndex) Sets, if this field is an index field.voidsetLength(int iLength) Sets the length if this field.voidsetLookupTableDef(String def) Sets the definition of lookup table.voidsetLookupTableField(String field) Sets the field in the lookup table.voidsetLookupTableIsDirect(boolean isDirect) Sets the value for lookupTableIsDirect.voidsetMandatory(boolean isMandatory) Sets, if this field is mandatory.voidsetMultiValue(boolean isMultiValue) Sets, if this field is multivalued.voidsetMultiValueSeparators(String separators) Sets the multivalue separators.voidSets the name of this field.voidsetNonSystemField(boolean isNonSystemField) Sets his object's name is a non-system DDC field name.voidsetStringFieldType(boolean isStringFieldType) Sets if this object is a string type.voidsetUnique(boolean isUnique) Sets, if this field is unique.
-
Constructor Details
-
SaWsFieldDescription
public SaWsFieldDescription()Creates a new instance of SaWsFieldDescription. -
SaWsFieldDescription
public SaWsFieldDescription(com.saperion.intf.SaFieldDescription desc) Creates a new instance of SaWsFieldDescription and wraps the original.- Parameters:
desc- Field description
-
-
Method Details
-
isHasLookupTable
public boolean isHasLookupTable()Test, if this field has a lookup table.- Returns:
- Returns the hasLookupTable.
-
setHasLookupTable
public void setHasLookupTable(boolean bHasLookupTable) Sets, if this field has a lookup table.- Parameters:
bHasLookupTable- Has lookup table
-
isMandatory
public boolean isMandatory()Checks, if this field is mandatory.- Returns:
- Returns the isMandatory.
-
setMandatory
public void setMandatory(boolean isMandatory) Sets, if this field is mandatory.- Parameters:
isMandatory- Is mandatory
-
isIndex
public boolean isIndex()Tests, if this field is an index field.- Returns:
- Returns the isIndex.
-
setIndex
public void setIndex(boolean isIndex) Sets, if this field is an index field.- Parameters:
isIndex- Is index field
-
isMultiValue
public boolean isMultiValue()Checks, if this field is multivalued.- Returns:
- Returns the isMultiValue.
-
setMultiValue
public void setMultiValue(boolean isMultiValue) Sets, if this field is multivalued.- Parameters:
isMultiValue- Is multivalue
-
isUnique
public boolean isUnique()Checks, if this field is unique.- Returns:
- Returns the isUnique.
-
setUnique
public void setUnique(boolean isUnique) Sets, if this field is unique.- Parameters:
isUnique- Is unique
-
getLength
public int getLength()Reads the length if this field.- Returns:
- Returns the length.
-
setLength
public void setLength(int iLength) Sets the length if this field.- Parameters:
iLength- Field length
-
getLookupTableDef
Reads the definition of lookup table.- Returns:
- Returns the lookupTableDef.
-
setLookupTableDef
Sets the definition of lookup table.- Parameters:
def- Lookup table definition
-
getLookupTableField
Reads the field in the lookup table.- Returns:
- Returns the lookupTableField.
-
setLookupTableField
Sets the field in the lookup table.- Parameters:
field- Lookup field
-
isLookupTableIsDirect
public boolean isLookupTableIsDirect()Reads the value for lookupTableIsDirect.- Returns:
- Returns the lookupTableIsDirect.
-
setLookupTableIsDirect
public void setLookupTableIsDirect(boolean isDirect) Sets the value for lookupTableIsDirect.- Parameters:
isDirect- Lookup is direct
-
getMultiValueSeparators
Reads the multivalue separators.- Returns:
- Returns the multiValueSeparators.
-
setMultiValueSeparators
Sets the multivalue separators.- Parameters:
separators- Multivalue separators
-
getName
Reads the name of this field.- Returns:
- Returns the name.
-
setName
Sets the name of this field.- Parameters:
sName- Field name
-
getDbName
Reads the real database name of this field.- Returns:
- the dbName
-
setDbName
Sets the real database name of this field.- Parameters:
dbname- Database name
-
getFieldType
public int getFieldType()Reads the fieldtype.- Returns:
- Returns the fieldType.
-
setFieldType
public void setFieldType(int ftype) Sets the fieldtype.- Parameters:
ftype- Field type
-
isNonSystemField
public boolean isNonSystemField()Checks whether this object's name is a non-system DDC field name.- Returns:
- True if name denotes a non-system field
-
setNonSystemField
public void setNonSystemField(boolean isNonSystemField) Sets his object's name is a non-system DDC field name.- Parameters:
isNonSystemField- Is non system field
-
isStringFieldType
public boolean isStringFieldType()Checks if this object is a string type.- Returns:
- True if fieldType is a string type
-
setStringFieldType
public void setStringFieldType(boolean isStringFieldType) Sets if this object is a string type.- Parameters:
isStringFieldType- Is string field
-