|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of the model object 'Character String Data Type'.
4.1 Data types
For reference purposes:
- The data types CHARACTER , CHARACTER VARYING , and CHARACTER LARGE OBJECT are collectively referred to as character string types.
- The data type BINARY LARGE OBJECT is referred to as the binary string type and the values of binary string types are referred to as binary strings.
- The data types CHARACTER LARGE OBJECT and BINARY LARGE OBJECT are collectively referred to as large object string types and the values of large object string types are referred to as large object strings.
- Character string types and binary string types are collectively referred to as string types and values of string types are referred to as strings.
4.2 Character strings
A character string is a sequence of characters. All the characters in a character string are taken from a single character set. A character string has a length, which is the number of characters in the sequence. The length is 0 (zero) or a positive integer. A character string type is described by a character string type descriptor.
A character string type descriptor contains:
- The name of the specific character string type (CHARACTER , CHARACTER VARYING , and CHARACTER LARGE OBJECT ; NATIONAL CHARACTER , NATIONAL CHARACTER VARYING , and NATIONAL CHARACTER LARGE OBJECT are represented as CHARACTER , CHARACTER VARYING , and CHARACTER LARGE OBJECT , respectively).
- The length or maximum length in characters of the character string type.
- The catalog name, schema name, and character set name of the character set of the character string type.
- The catalog name, schema name, and collation name of the collation of the character string type.
The character set of a character string type may be specified explicitly or implicitly.
The
The following features are supported:
SQLDataTypesPackage.getCharacterStringDataType()
Method Summary | |
CharacterSet |
getCharacterSet()
Returns the value of the 'Character Set' reference. |
CoercibilityType |
getCoercibility()
Returns the value of the 'Coercibility' attribute. |
java.lang.String |
getCollationName()
Returns the value of the 'Collation Name' attribute. |
int |
getLength()
Returns the value of the 'Length' attribute. |
boolean |
isFixedLength()
Returns the value of the 'Fixed Length' attribute. |
void |
setCharacterSet(CharacterSet value)
Sets the value of the ' Character Set ' reference. |
void |
setCoercibility(CoercibilityType value)
Sets the value of the ' Coercibility ' attribute. |
void |
setCollationName(java.lang.String value)
Sets the value of the ' Collation Name ' attribute. |
void |
setLength(int value)
Sets the value of the ' Length ' attribute. |
Methods inherited from interface org.eclipse.wst.rdb.internal.models.sql.datatypes.PredefinedDataType |
getPrimitiveType, setPrimitiveType |
Methods inherited from interface org.eclipse.wst.rdb.internal.models.sql.datatypes.DataType |
setContainer |
Methods inherited from interface org.eclipse.wst.rdb.internal.models.sql.schema.SQLObject |
addEAnnotation, addEAnnotationDetail, getDependencies, getDescription, getEAnnotation, getEAnnotationDetail, getLabel, removeEAnnotationDetail, setAnnotationDetail, setDescription, setLabel |
Methods inherited from interface org.eclipse.emf.ecore.ENamedElement |
getName, setName |
Methods inherited from interface org.eclipse.emf.ecore.EModelElement |
getEAnnotations |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
eAdapters, eDeliver, eNotify, eSetDeliver |
Method Detail |
public int getLength()
"1"
.
If the meaning of the 'Length' attribute isn't clear, there really should be more of a description here...
setLength(int)
,
SQLDataTypesPackage.getCharacterStringDataType_Length()
public void setLength(int value)
Length
' attribute.
value
- the new value of the 'Length' attribute.getLength()
public CoercibilityType getCoercibility()
CoercibilityType
.
If the meaning of the 'Coercibility' attribute isn't clear, there really should be more of a description here...
CoercibilityType
,
setCoercibility(CoercibilityType)
,
SQLDataTypesPackage.getCharacterStringDataType_Coercibility()
public void setCoercibility(CoercibilityType value)
Coercibility
' attribute.
value
- the new value of the 'Coercibility' attribute.CoercibilityType
,
getCoercibility()
public boolean isFixedLength()
If the meaning of the 'Fixed Length' attribute isn't clear, there really should be more of a description here...
SQLDataTypesPackage.getCharacterStringDataType_FixedLength()
public java.lang.String getCollationName()
If the meaning of the 'Collation Name' attribute isn't clear, there really should be more of a description here...
setCollationName(String)
,
SQLDataTypesPackage.getCharacterStringDataType_CollationName()
public void setCollationName(java.lang.String value)
Collation Name
' attribute.
value
- the new value of the 'Collation Name' attribute.getCollationName()
public CharacterSet getCharacterSet()
If the meaning of the 'Character Set' reference isn't clear, there really should be more of a description here...
setCharacterSet(CharacterSet)
,
SQLDataTypesPackage.getCharacterStringDataType_CharacterSet()
public void setCharacterSet(CharacterSet value)
Character Set
' reference.
value
- the new value of the 'Character Set' reference.getCharacterSet()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |