⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 datavaluefactoryimpl.java

📁 derby database source code.good for you.
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
                                                                                        BooleanDataValue previous)                        throws StandardException        {                if (previous == null)                        return getDataValue(value);                previous.setValue(value);                return previous;        }        public BooleanDataValue getDataValue(BooleanDataValue value)        {                if (value != null)                        return value;                else                        return new SQLBoolean();        }        public BitDataValue getBitDataValue(byte[] value) throws StandardException        {                return new SQLBit(value);        }        public BitDataValue getBitDataValue(byte[] value, BitDataValue previous)                        throws StandardException        {                if (previous == null)                        return new SQLBit(value);                previous.setValue(value);                return previous;        }        public BitDataValue getVarbitDataValue(byte[] value)        {                return new SQLVarbit(value);        }        public BitDataValue getVarbitDataValue(byte[] value, BitDataValue previous)                        throws StandardException        {                if (previous == null)                        return new SQLVarbit(value);                previous.setValue(value);                return previous;        }        // LONGVARBIT        public BitDataValue getLongVarbitDataValue(byte[] value) throws StandardException        {                return new SQLLongVarbit(value);        }        public BitDataValue getLongVarbitDataValue(byte[] value, BitDataValue previous)                        throws StandardException        {                if (previous == null)                        return new SQLLongVarbit(value);                previous.setValue(value);                return previous;        }        // BLOB        public BitDataValue getBlobDataValue(byte[] value) throws StandardException        {                return new SQLBlob(value);        }        public BitDataValue getBlobDataValue(byte[] value, BitDataValue previous)                        throws StandardException        {                if (previous == null)                        return new SQLBlob(value);                previous.setValue(value);                return previous;        }        // CHAR        public StringDataValue getCharDataValue(String value)        {                return new SQLChar(value);        }        public StringDataValue getCharDataValue(String value,                                                                                        StringDataValue previous)                                                                                                        throws StandardException        {                if (previous == null)                        return new SQLChar(value);                previous.setValue(value);                return previous;        }        public StringDataValue getVarcharDataValue(String value)        {                return new SQLVarchar(value);        }        public StringDataValue getVarcharDataValue(String value,                                                                                                StringDataValue previous)                                                                                                        throws StandardException        {                if (previous == null)                        return new SQLVarchar(value);                previous.setValue(value);                return previous;        }        public StringDataValue getLongvarcharDataValue(String value)        {                return new SQLLongvarchar(value);        }        public StringDataValue getClobDataValue(String value)        {                return new SQLClob(value);        }        public StringDataValue getLongvarcharDataValue(String value,                                                                                                        StringDataValue previous)                                                                                                        throws StandardException        {                if (previous == null)                        return new SQLLongvarchar(value);                previous.setValue(value);                return previous;        }        public StringDataValue getClobDataValue(String value, StringDataValue previous) throws StandardException        {                if (previous == null)                        return new SQLClob(value);                previous.setValue(value);                return previous;        }        //        public StringDataValue getNationalCharDataValue(String value)        {                return new SQLNationalChar(value, getLocaleFinder());        }        public StringDataValue getNationalCharDataValue(String value,                                                                                        StringDataValue previous)                                                                                                        throws StandardException        {                if (previous == null)                        return new SQLNationalChar(value, getLocaleFinder());                previous.setValue(value);                return previous;        }        public StringDataValue getNationalVarcharDataValue(String value)        {                return new SQLNationalVarchar(value, getLocaleFinder());        }        public StringDataValue getNationalVarcharDataValue(String value,                                                                                                StringDataValue previous)                                                                                                        throws StandardException        {                if (previous == null)                        return new SQLNationalVarchar(value, getLocaleFinder());                previous.setValue(value);                return previous;        }        public StringDataValue getNationalLongvarcharDataValue(String value)        {                return new SQLNationalLongvarchar(value, getLocaleFinder());        }        public StringDataValue getNationalLongvarcharDataValue(String value,                                                                                                        StringDataValue previous)                                                                                                        throws StandardException        {                if (previous == null)                        return new SQLNationalLongvarchar(value, getLocaleFinder());                previous.setValue(value);                return previous;        }        public StringDataValue getNClobDataValue(String value)        {                return new SQLNClob(value, getLocaleFinder());        }        public StringDataValue getNClobDataValue(String value, StringDataValue previous)            throws StandardException        {                if (previous == null)                        return new SQLNClob(value, getLocaleFinder());                previous.setValue(value);                return previous;        }        public DateTimeDataValue getDataValue(Date value) throws StandardException        {                return new SQLDate(value);        }        public DateTimeDataValue getDataValue(Date value,                                                                                        DateTimeDataValue previous)                        throws StandardException        {                if (previous == null)                        return new SQLDate(value);                previous.setValue(value);                return previous;        }        public DateTimeDataValue getDataValue(Time value) throws StandardException        {                return new SQLTime(value);        }        public DateTimeDataValue getDataValue(Time value,                                                                                        DateTimeDataValue previous)                        throws StandardException        {                if (previous == null)                        return new SQLTime(value);                previous.setValue(value);                return previous;        }        public DateTimeDataValue getDataValue(Timestamp value) throws StandardException        {                return new SQLTimestamp(value);        }        public DateTimeDataValue getDataValue(Timestamp value,                                                                                        DateTimeDataValue previous)                        throws StandardException        {                if (previous == null)                        return new SQLTimestamp(value);                previous.setValue(value);                return previous;        }        /**         * Implement the date SQL function: construct a SQL date from a string, number, or timestamp.         *         * @param operand Must be a date, a number, or a string convertible to a date.         *         * @exception StandardException standard error policy         */        public DateTimeDataValue getDate( DataValueDescriptor operand) throws StandardException        {                return SQLDate.computeDateFunction( operand, this);        }        /**         * Implement the timestamp SQL function: construct a SQL timestamp from a string, or timestamp.         *         * @param operand Must be a timestamp or a string convertible to a timestamp.         *         * @exception StandardException standard error policy         */        public DateTimeDataValue getTimestamp( DataValueDescriptor operand) throws StandardException        {                return SQLTimestamp.computeTimestampFunction( operand, this);        }        public DateTimeDataValue getTimestamp( DataValueDescriptor date, DataValueDescriptor time) throws StandardException        {            return new SQLTimestamp( date, time);        }        public UserDataValue getDataValue(Object value)        {                return new UserType(value);        }        public UserDataValue getDataValue(Object value,                                                                                UserDataValue previous)        {                if (previous == null)                        return new UserType(value);                ((UserType) previous).setValue(value);                return previous;        }        public RefDataValue getDataValue(RowLocation value)        {                return new SQLRef(value);        }        public RefDataValue getDataValue(RowLocation value, RefDataValue previous)        {                if (previous == null)                        return new SQLRef(value);                previous.setValue(value);                return previous;        }        public NumberDataValue          getNullInteger(NumberDataValue dataValue)         {                if (dataValue == null)                {                        return new SQLInteger();                }                else                {                        dataValue.setToNull();                        return dataValue;                }        }        public NumberDataValue getNullShort(NumberDataValue dataValue)        {                if (dataValue == null)                {                        return new SQLSmallint();                }                else                {                        dataValue.setToNull();                        return dataValue;                }        }        public NumberDataValue getNullLong(NumberDataValue dataValue)        {                if (dataValue == null)                {                        return new SQLLongint();                }                else                {                        dataValue.setToNull();                        return dataValue;                }        }        public NumberDataValue getNullByte(NumberDataValue dataValue)        {                if (dataValue == null)                {                        return new SQLTinyint();                }                else                {                        dataValue.setToNull();                        return dataValue;                }        }        public NumberDataValue getNullFloat(NumberDataValue dataValue)        {                if (dataValue == null)                {                        return new SQLReal();                }                else                {                        dataValue.setToNull();                        return dataValue;                }        }        public NumberDataValue getNullDouble(NumberDataValue dataValue)        {                if (dataValue == null)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -