Package com.saperion.intf
Interface SaFieldDescription
-
- All Superinterfaces:
java.io.Serializable
public interface SaFieldDescription extends java.io.SerializableInterface for field descriptions.
Describes a field in a database definition (DDC).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.StringgetCurrency()Returns the currency symbol for currency type fields.java.lang.StringgetDbName()Reads the real database name of this field.intgetFieldType()Reads the fieldtype.com.saperion.jna.applsrv.m2j.natives.IndexFieldKindgetIndexFieldKind()intgetLength()Reads the length if this field.java.lang.StringgetLookupTableDef()Reads the definition of lookup table.java.lang.StringgetLookupTableField()Reads the field in the lookup table.java.lang.StringgetMultiValueSeparators()Reads the multivalue separators.java.lang.StringgetMultivalueTableName()java.lang.StringgetName()Reads the name of this field.intgetPostDigits()Returns the number of fraction digits for currency type fields.default java.lang.StringgetProtoField()SaConstants.SaFieldTypegetSaFieldType()Reads the SAPERION fieldtype.booleanisHasLookupTable()Test, if this field has a lookup table.booleanisIndex()Tests, if this field is an index field.booleanisLookupTableIsDirect()Reads the value for lookupTableIsDirect.booleanisMandatory()Checks, if this field is mandatory.booleanisMultiSelect()booleanisMultiValue()Checks, if this field is multivalued.booleanisNonSystemField()Checks whether this object's name is a non-system DDC field name.booleanisStringFieldType()Checks if this object is a string type.booleanisUnique()Checks, if this field is unique.voidsetMultiSelect(boolean multiSelect)Enables or disables the multiselect option.voidsetMultivalueTableName(java.lang.String tableName)default voidsetProtoField(java.lang.String protoField)java.lang.StringtoString()Returns the string representation.
-
-
-
Method Detail
-
getFieldType
int getFieldType()
Reads the fieldtype.- Returns:
- Returns the fieldType.
-
getSaFieldType
SaConstants.SaFieldType getSaFieldType()
Reads the SAPERION fieldtype.- Returns:
- Fieldtype enumeration
-
getIndexFieldKind
com.saperion.jna.applsrv.m2j.natives.IndexFieldKind getIndexFieldKind()
- Returns:
- the field type as
IndexFieldKind
-
isHasLookupTable
boolean isHasLookupTable()
Test, if this field has a lookup table.- Returns:
- Returns the hasLookupTable.
-
isIndex
boolean isIndex()
Tests, if this field is an index field.- Returns:
- Returns the isIndex.
-
isMandatory
boolean isMandatory()
Checks, if this field is mandatory.- Returns:
- Returns the isMandatory.
-
isMultiValue
boolean isMultiValue()
Checks, if this field is multivalued.- Returns:
- Returns the isMultiValue.
-
isUnique
boolean isUnique()
Checks, if this field is unique.- Returns:
- Returns the isUnique.
-
getLength
int getLength()
Reads the length if this field.- Returns:
- Returns the length.
-
getLookupTableDef
java.lang.String getLookupTableDef()
Reads the definition of lookup table.- Returns:
- Returns the lookupTableDef.
-
getLookupTableField
java.lang.String getLookupTableField()
Reads the field in the lookup table.- Returns:
- Returns the lookupTableField.
-
isLookupTableIsDirect
boolean isLookupTableIsDirect()
Reads the value for lookupTableIsDirect.- Returns:
- Returns the lookupTableIsDirect.
-
getMultiValueSeparators
java.lang.String getMultiValueSeparators()
Reads the multivalue separators.- Returns:
- Returns the multiValueSeparators.
-
getName
java.lang.String getName()
Reads the name of this field.- Returns:
- Returns the name.
-
getDbName
java.lang.String getDbName()
Reads the real database name of this field.- Returns:
- the dbName
-
toString
java.lang.String toString()
Returns the string representation.- Overrides:
toStringin classjava.lang.Object- Returns:
- String representation "Name" / "DBName" type:"Fieldtype"
- See Also:
Object.toString()
-
isNonSystemField
boolean isNonSystemField()
Checks whether this object's name is a non-system DDC field name.- Returns:
- True if name denotes a non-system field
-
isStringFieldType
boolean isStringFieldType()
Checks if this object is a string type.- Returns:
- True if fieldType is a string type
-
getCurrency
java.lang.String getCurrency()
Returns the currency symbol for currency type fields.- Returns:
- symbol or empty string if not available
-
getPostDigits
int getPostDigits()
Returns the number of fraction digits for currency type fields.- Returns:
- fraction digits or 0 if not available
-
isMultiSelect
boolean isMultiSelect()
- Returns:
- true if the multiselect option is enabled
-
setMultiSelect
void setMultiSelect(boolean multiSelect)
Enables or disables the multiselect option.- Parameters:
multiSelect- multiSelect option
-
getMultivalueTableName
java.lang.String getMultivalueTableName()
- Returns:
- name of the associated multivalue table or null if this is not a multivalue field
-
setMultivalueTableName
void setMultivalueTableName(java.lang.String tableName)
- Parameters:
tableName- the name of the associated multivalue table for this field
-
getProtoField
default java.lang.String getProtoField()
-
setProtoField
default void setProtoField(java.lang.String protoField)
-
-