| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public DataValueDescriptor | cloneValue(boolean
any streams representing the data value will
be materialized if forceMaterialization)true, the data value will be kept as a
stream if possible if falseOverrides org. Implements org. Clone this DataValueDescriptor. |
| public StringDataValue | concatenate(StringDataValue
String on the left hand side of '||' leftOperand, StringDataValue String on the right hand side of '||' rightOperand, StringDataValue The result of a previous call to this method,
null if not called yet. result)Overrides org. Implements org. The SQL concatenation '||' operator. |
| public DataValueDescriptor | getNewNull()
Overrides org. Implements org. Get a new null value of the same type as this data value. |
| public int | getTypeFormatId()
Overrides org. Implements org. Return my format identifier. |
| public String | getTypeName()
Overrides org. Implements org. Get the SQL name of the datatype |
| public StringDataValue | getValue(RuleBasedCollator collatorForComparison)
Overrides org. Implements org. Gets either SQLChar/SQLVarchar/SQLLongvarchar/SQLClob(base classes) or CollatorSQLChar/CollatorSQLVarchar/CollatorSQLLongvarch/CollatorSQLClob (subclasses). |
| protected void | normalize(DataTypeDescriptor desiredType, String sourceValue)
Overrides org.
|
| public int | typePrecedence()
Overrides org. Implements org. Each built-in type in JSQL has a precedence. |
| SQLLongvarchar | back to summary |
|---|---|
| public SQLLongvarchar() | |
| SQLLongvarchar | back to summary |
|---|---|
| public SQLLongvarchar(String val) | |
| cloneValue | back to summary |
|---|---|
| public DataValueDescriptor cloneValue(boolean forceMaterialization) Overrides org. Implements org. Doc from org. Clone this DataValueDescriptor. Results in a new object that has the same value as this but can be modified independently.
Even though the objects can be modified independently regardless of the
value of
| |
| concatenate | back to summary |
|---|---|
| public StringDataValue concatenate(StringDataValue leftOperand, StringDataValue rightOperand, StringDataValue result) throws StandardException Overrides org. Implements org. Doc from org. The SQL concatenation '||' operator.
| |
| getNewNull | back to summary |
|---|---|
| public DataValueDescriptor getNewNull() Overrides org. Implements org. Doc from org. Get a new null value of the same type as this data value.
| |
| getTypeFormatId | back to summary |
|---|---|
| public int getTypeFormatId() Overrides org. Implements org. Return my format identifier.
| |
| getTypeName | back to summary |
|---|---|
| public String getTypeName() Overrides org. Implements org. Doc from org. Get the SQL name of the datatype
| |
| getValue | back to summary |
|---|---|
| public StringDataValue getValue(RuleBasedCollator collatorForComparison) Overrides org. Implements org. Doc from org. Gets either SQLChar/SQLVarchar/SQLLongvarchar/SQLClob(base classes) or CollatorSQLChar/CollatorSQLVarchar/CollatorSQLLongvarch/CollatorSQLClob (subclasses). Whether this method returns the base class or the subclass depends on the value of the RuleBasedCollator. If RuleBasedCollator is null, then the object returned would be baseclass otherwise it would be subcalss. | |
| normalize | back to summary |
|---|---|
| protected void normalize(DataTypeDescriptor desiredType, String sourceValue) throws StandardException | |
| typePrecedence | back to summary |
|---|---|
| public int typePrecedence() Overrides org. Implements org. Doc from org. Each built-in type in JSQL has a precedence. This precedence determines how to do type promotion when using binary operators. For example, float has a higher precedence than int, so when adding an int to a float, the result type is float. The precedence for some types is arbitrary. For example, it doesn't matter what the precedence of the boolean type is, since it can't be mixed with other types. But the precedence for the number types is critical. The SQL standard requires that exact numeric types be promoted to approximate numeric when one operator uses both. Also, the precedence is arranged so that one will not lose precision when promoting a type.
| |