| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | SQLVarchar(char[] val)
This is a special constructor used when we need to represent a password as a VARCHAR (see DERBY-866). |
| 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 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 final int | Returns: minimum reasonable growby sizeOverrides org. returns the reasonable minimum amount by which the array can grow . |
| public void | normalize(DataTypeDescriptor
The type to normalize the source column to desiredType, DataValueDescriptor The value to normalize source)Overrides org. Implements org. Normalization method - this method may be called when putting a value into a SQLVarchar, for example, when inserting into a SQLVarchar column. |
| 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. |
| SQLVarchar | back to summary |
|---|---|
| public SQLVarchar() | |
| SQLVarchar | back to summary |
|---|---|
| public SQLVarchar(String val) | |
| SQLVarchar | back to summary |
|---|---|
| public SQLVarchar(Clob val) | |
| SQLVarchar | back to summary |
|---|---|
| public SQLVarchar(char[] val) This is a special constructor used when we need to represent a password as a VARCHAR (see DERBY-866). If you need a general-purpose constructor for char[] values and you want to re-use this constructor, make sure to read the comment on the SQLChar( char[] ) constructor. | |
| 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
| |
| 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. | |
| growBy | back to summary |
|---|---|
| protected final int growBy() Overrides org. returns the reasonable minimum amount by which the array can grow . See readExternal. when we know that the array needs to grow by at least one byte, it is not performant to grow by just one byte instead this amount is used to provide a resonable growby size.
| |
| normalize | back to summary |
|---|---|
| public void normalize(DataTypeDescriptor desiredType, DataValueDescriptor source) throws StandardException Overrides org. Implements org. Normalization method - this method may be called when putting a value into a SQLVarchar, for example, when inserting into a SQLVarchar column. See NormalizeResultSet in execution.
| |
| 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.
| |