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

📄 datavaluefactory.java

📁 derby database source code.good for you.
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
        /**         * Get a SQL bit with the given value.  The second form re-uses the         * previous value, if non-null, as the data holder to return.         *         * @exception StandardException         Thrown on error         */        BitDataValue            getVarbitDataValue(byte[] value) throws StandardException;        BitDataValue            getVarbitDataValue(byte[] value, BitDataValue previous)                                                        throws StandardException;        /**         * Get a SQL char with the given value.  A null argument means get         * a SQL null value.  The second form re-uses the previous value,         * if non-null, as the data holder to return.         *         */        StringDataValue         getCharDataValue(String value);        StringDataValue         getCharDataValue(String value, StringDataValue previous)                                                        throws StandardException;        /**         * Get a SQL national char with the given value.  A null argument means get         * a SQL null value.  The second form re-uses the previous value,         * if non-null, as the data holder to return.         */        StringDataValue         getNationalCharDataValue(String value);        StringDataValue         getNationalCharDataValue(String value, StringDataValue previous)                                                        throws StandardException;        /**         * Get a SQL date with the given value.  A null argument means get         * a SQL null value.  The second form re-uses the previous value,         * if non-null, as the data holder to return.         *         */        DateTimeDataValue       getDataValue(Date value) throws StandardException;        DateTimeDataValue       getDataValue(Date value, DateTimeDataValue previous)                                                        throws StandardException;        /**         * Get a SQL time with the given value.  A null argument means get         * a SQL null value.  The second form re-uses the previous value,         * if non-null, as the data holder to return.         *         */        DateTimeDataValue       getDataValue(Time value) throws StandardException;        DateTimeDataValue       getDataValue(Time value, DateTimeDataValue previous)                                                        throws StandardException;        /**         * Get a SQL timestamp with the given value.  A null argument means get         * a SQL null value.  The second form re-uses the previous value,         * if non-null, as the data holder to return.         *         */        DateTimeDataValue       getDataValue(Timestamp value) throws StandardException;        DateTimeDataValue       getDataValue(Timestamp value,                                                                                DateTimeDataValue previous)                                                        throws StandardException;        /**         * 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.         */        DateTimeDataValue getTimestamp( DataValueDescriptor operand) throws StandardException;        /**         * Construct a SQL timestamp from a date and time.         *         * @param date Must be convertible to a date.         * @param time Must be convertible to a time.         */        DateTimeDataValue getTimestamp( DataValueDescriptor date, DataValueDescriptor time) throws StandardException;        /**         * Implements the SQL date function         *         * @param operand A date, timestamp, string or integer.         *         * @return the corresponding date value         *         * @exception StandardException if the syntax is invalid or the date is out of range.         */        public DateTimeDataValue getDate( DataValueDescriptor operand) throws StandardException;        /**         * @param dateStr A date in one of the DB2 standard date formats or the local format.         * @param isJdbcEscape If true then the timestamp must be in the JDBC timestamp escape format, otherwise it must         *                     be in the DB2 timestamp format.         * @return A DateTimeDataValue         *         * @exception StandardException if the syntax is invalid or the date is out of range.         */        public DateTimeDataValue getDateValue( String dateStr, boolean isJdbcEscape) throws StandardException;        /**         * @param timeStr A date in one of the DB2 standard time formats or the local format.         * @param isJdbcEscape If true then the timestamp must be in the JDBC time escape format, otherwise it must         *                     be in the DB2 time format.         * @return A DateTimeDataValue         *         * @exception StandardException if the syntax is invalid or the time is out of range.         */        public DateTimeDataValue getTimeValue( String timeStr, boolean isJdbcEscape) throws StandardException;        /**         * @param timeStr A time in string format.         * @param isJdbcEscape If true then the time must be in the JDBC time escape format, otherwise it must         *                     be in the DB2 time format.         * @return An internal timestamp         *         * @exception StandardException if the syntax is invalid or the timestamp is out of range.         */        public DateTimeDataValue getTimestampValue( String timestampStr, boolean isJdbcEscape) throws StandardException;        /**         * Get a null XML value. The second form re-uses the previous value,         * if non-null, as the data holder to return.         */        XMLDataValue getXMLDataValue();        XMLDataValue getXMLDataValue(XMLDataValue previous)			throws StandardException;        /**         * Get a SQL int with a SQL null value. If the supplied value         * is null then get a new value, otherwise set it to null and return          * that value.         *         */        NumberDataValue getNullInteger(NumberDataValue dataValue);        /**         * Get a SQL smallint with  a SQL null value. If the supplied value         * is null then get a new value, otherwise set it to null and return          * that value.         */        NumberDataValue getNullShort(NumberDataValue dataValue);        /**         * Get a SQL tinyint with  a SQL null value. If the supplied value         * is null then get a new value, otherwise set it to null and return          * that value.         *         */        NumberDataValue getNullByte(NumberDataValue dataValue);        /**         * Get a SQL bigint with  a SQL null value. If the supplied value         * is null then get a new value, otherwise set it to null and return          * that value.         *         */        NumberDataValue getNullLong(NumberDataValue dataValue);        /**         * Get a SQL float with  a SQL null value. If the supplied value         * is null then get a new value, otherwise set it to null and return          * that value.         *         */        NumberDataValue getNullFloat(NumberDataValue dataValue);        /**         * Get a SQL double with  a SQL null value. If the supplied value         * is null then get a new value, otherwise set it to null and return          * that value.         *         */        NumberDataValue getNullDouble(NumberDataValue dataValue);        /**         * Get a SQL Decimal/Numeric with  a SQL null value. If the supplied value         * is null then get a new value, otherwise set it to null and return          * that value.         *         */        NumberDataValue getNullDecimal(NumberDataValue dataValue);        /**         * Get a SQL boolean with  a SQL null value. If the supplied value         * is null then get a new value, otherwise set it to null and return          * that value.         */        BooleanDataValue getNullBoolean(BooleanDataValue dataValue);        /**         * Get a SQL Bit with a SQL null value. If the supplied value         * is null then get a new value, otherwise set it to null and return          * that value.         *         * @exception StandardException         Thrown on error         */        BitDataValue            getNullBit(BitDataValue dataValue) throws StandardException;        /**         * Get a SQL Bit Varying with a SQL null value. If the supplied value         * is null then get a new value, otherwise set it to null and return          * that value.         *         * @exception StandardException         Thrown on error         */        BitDataValue            getNullVarbit(BitDataValue dataValue) throws StandardException;        // --- LONGVARBIT        /**         * Get a SQL Long Bit Varying with a SQL null value. If the supplied         * value is null then get a new value, otherwise set it to null         * and return that value.         *         * @exception StandardException         Thrown on error         */        BitDataValue            getNullLongVarbit(                                                                                                        BitDataValue dataValue)                                                                throws StandardException;        // --- BLOB        /**         * Get a SQL Blob with a SQL null value. If the supplied         * value is null then get a new value, otherwise set it to null         * and return that value.         *         * @exception StandardException         Thrown on error         */        BitDataValue            getNullBlob(BitDataValue dataValue)                throws StandardException;            // ------ CHAR        /**         * Get a SQL char with a SQL null value. If the supplied value         * is null then get a new value, otherwise set it to null and return          * that value.         */        StringDataValue         getNullChar(StringDataValue dataValue);        /**         * Get a SQL varchar with a SQL null value. If the supplied value         * is null then get a new value, otherwise set it to null and return          * that value.         *         */        StringDataValue         getNullVarchar(StringDataValue dataValue);        /**         * Get a SQL long varchar with a SQL null value. If the supplied value         * is null then get a new value, otherwise set it to null and return          * that value.         *         */        StringDataValue         getNullLongvarchar(StringDataValue dataValue);        /**         * Get a SQL long varchar with a SQL null value. If the supplied value         * is null then get a new value, otherwise set it to null and return          * that value.         *         */        StringDataValue         getNullClob(StringDataValue dataValue);        /**         * Get a SQL national char with a SQL null value. If the supplied value         * is null then get a new value, otherwise set it to null and return          * that value.         */        StringDataValue         getNullNationalChar(StringDataValue dataValue);        /**         * Get a SQL national varchar with a SQL null value. If the supplied value         * is null then get a new value, otherwise set it to null and return          * that value.         *         */        StringDataValue         getNullNationalVarchar(StringDataValue dataValue);        /**         * Get a SQL national long varchar with a SQL null value. If the supplied value         * is null then get a new value, otherwise set it to null and return          * that value.         *         */        StringDataValue         getNullNationalLongvarchar(StringDataValue dataValue);        /**         * Get a SQL NCLOB with a SQL null value. If the supplied value         * is null then get a new value, otherwise set it to null and return          * that value.         *         */        StringDataValue         getNullNClob(StringDataValue dataValue);        /**         * Get a User-defined data value with a SQL null value. If the supplied value         * is null then get a new value, otherwise set it to null and return          * that value.         *         */        UserDataValue           getNullObject(UserDataValue dataValue);        /**         * Get a RefDataValue with a SQL null value. If the supplied value         * is null then get a new value, otherwise set it to null and return          * that value.         *         */        RefDataValue            getNullRef(RefDataValue dataValue);        /**         * Get a SQL date with a SQL null value. If the supplied value         * is null then get a new value, otherwise set it to null and return          * that value.         *         */        DateTimeDataValue       getNullDate(DateTimeDataValue dataValue);        /**         * Get a SQL time with a SQL null value. If the supplied value         * is null then get a new value, otherwise set it to null and return          * that value.         *         */        DateTimeDataValue       getNullTime(DateTimeDataValue dataValue);        /**         * Get a SQL timestamp with a SQL null value. If the supplied value         * is null then get a new value, otherwise set it to null and return          * that value.         */        DateTimeDataValue       getNullTimestamp(DateTimeDataValue dataValue);        /**         * Get an XML with a SQL null value. If the supplied value is         * null then get a new value, otherwise set it to null and return          * that value.         */        XMLDataValue            getNullXML(XMLDataValue dataValue);}

⌨️ 快捷键说明

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