Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
C
- clone() - Method in class com.aoapps.sql.UnmodifiableTimestamp
-
Return a copy of this object.
- com.aoapps.sql - module com.aoapps.sql
- com.aoapps.sql - package com.aoapps.sql
- compareTo(Interval) - Method in class com.aoapps.sql.Interval
- compareTo(MicroInterval) - Method in class com.aoapps.sql.MicroInterval
- compareTo(MilliInterval) - Method in class com.aoapps.sql.MilliInterval
- compareTo(NanoInterval) - Method in class com.aoapps.sql.NanoInterval
- Connections - Class in com.aoapps.sql
-
Utilities for working with
Connection
.
D
- DEFAULT_TRANSACTION_ISOLATION - Static variable in class com.aoapps.sql.Connections
-
The default transaction isolation.
F
- formatDate(long) - Static method in class com.aoapps.sql.SQLUtility
- formatDate(long, TimeZone) - Static method in class com.aoapps.sql.SQLUtility
- formatDate(Long) - Static method in class com.aoapps.sql.SQLUtility
- formatDate(Long, TimeZone) - Static method in class com.aoapps.sql.SQLUtility
- formatDate(Date) - Static method in class com.aoapps.sql.SQLUtility
- formatDate(Date, TimeZone) - Static method in class com.aoapps.sql.SQLUtility
- formatDateTime(long) - Static method in class com.aoapps.sql.SQLUtility
- formatDateTime(long, TimeZone) - Static method in class com.aoapps.sql.SQLUtility
- formatDateTime(Long) - Static method in class com.aoapps.sql.SQLUtility
- formatDateTime(Long, TimeZone) - Static method in class com.aoapps.sql.SQLUtility
- formatDateTime(Date) - Static method in class com.aoapps.sql.SQLUtility
- formatDateTime(Date, TimeZone) - Static method in class com.aoapps.sql.SQLUtility
- formatDecimal2(int) - Static method in class com.aoapps.sql.SQLUtility
-
Converts a number of pennies into decimal representation.
- formatDecimal2(long) - Static method in class com.aoapps.sql.SQLUtility
-
Converts a number of pennies into decimal representation.
- formatDecimal3(int) - Static method in class com.aoapps.sql.SQLUtility
-
Converts a number of millis into decimal representation.
- formatDecimal3(long) - Static method in class com.aoapps.sql.SQLUtility
-
Converts a number of millis into decimal representation.
- formatTime(long) - Static method in class com.aoapps.sql.SQLUtility
- formatTime(long, TimeZone) - Static method in class com.aoapps.sql.SQLUtility
- formatTime(Long) - Static method in class com.aoapps.sql.SQLUtility
- formatTime(Long, TimeZone) - Static method in class com.aoapps.sql.SQLUtility
- formatTime(Date) - Static method in class com.aoapps.sql.SQLUtility
- formatTime(Date, TimeZone) - Static method in class com.aoapps.sql.SQLUtility
G
- getInterval() - Method in class com.aoapps.sql.Interval
-
Gets the interval in seconds.
- getIntervalMicros() - Method in class com.aoapps.sql.MicroInterval
-
Gets the interval in microseconds.
- getIntervalMillis() - Method in class com.aoapps.sql.MilliInterval
-
Gets the interval in milliseconds.
- getIntervalNanos() - Method in class com.aoapps.sql.NanoInterval
-
Gets the interval in nanoseconds.
- getSqlString() - Method in exception class com.aoapps.sql.WrappedSQLException
-
Deprecated.
I
- Interval - Class in com.aoapps.sql
-
Encapsulates an interval in seconds.
- Interval(long) - Constructor for class com.aoapps.sql.Interval
- Interval(long, long) - Constructor for class com.aoapps.sql.Interval
- Interval(long, long, long) - Constructor for class com.aoapps.sql.Interval
M
- MAX_TIMESTAMP_SECONDS - Static variable in class com.aoapps.sql.SQLUtility
-
The maximum number of seconds in a
Timestamp
. - MicroInterval - Class in com.aoapps.sql
-
Encapsulates an interval in microseconds.
- MicroInterval(long) - Constructor for class com.aoapps.sql.MicroInterval
- MilliInterval - Class in com.aoapps.sql
-
Encapsulates an interval in milliseconds.
- MilliInterval(long) - Constructor for class com.aoapps.sql.MilliInterval
- MIN_TIMESTAMP_SECONDS - Static variable in class com.aoapps.sql.SQLUtility
-
The minimum number of seconds in a
Timestamp
.
N
- NanoInterval - Class in com.aoapps.sql
-
Encapsulates an interval in nanoseconds.
- NanoInterval(long) - Constructor for class com.aoapps.sql.NanoInterval
- newTimestamp(long, int) - Static method in class com.aoapps.sql.SQLUtility
-
Converts a number of seconds and nanoseconds into a new
Timestamp
. - newTimestamp(long, int, Class<? extends Ex>) - Static method in class com.aoapps.sql.SQLUtility
-
Deprecated.
- newTimestamp(long, int, Function<? super String, ? extends Ex>) - Static method in class com.aoapps.sql.SQLUtility
-
Converts a number of seconds and nanoseconds into a new
Timestamp
. - newUnmodifiableTimestamp(long, int) - Static method in class com.aoapps.sql.SQLUtility
-
Converts a number of seconds and nanoseconds into a new
UnmodifiableTimestamp
. - newUnmodifiableTimestamp(long, int, Class<? extends Ex>) - Static method in class com.aoapps.sql.SQLUtility
-
Deprecated.Please use
SQLUtility.newUnmodifiableTimestamp(long, int, java.util.function.Function)
, typically with lambda constructor reference - newUnmodifiableTimestamp(long, int, Function<? super String, ? extends Ex>) - Static method in class com.aoapps.sql.SQLUtility
-
Converts a number of seconds and nanoseconds into a new
UnmodifiableTimestamp
.
P
- parseDate(String) - Static method in class com.aoapps.sql.SQLUtility
- parseDate(String, TimeZone) - Static method in class com.aoapps.sql.SQLUtility
- parseDateTime(String) - Static method in class com.aoapps.sql.SQLUtility
- parseDateTime(String, TimeZone) - Static method in class com.aoapps.sql.SQLUtility
- parseDecimal2(String) - Static method in class com.aoapps.sql.SQLUtility
-
Gets the number of pennies represented by a
String
containing a decimal(? - parseDecimal3(String) - Static method in class com.aoapps.sql.SQLUtility
-
Gets the number of millis represented by a
String
containing a decimal(? - parseLongDecimal2(String) - Static method in class com.aoapps.sql.SQLUtility
-
Gets the number of pennies represented by a
String
containing a decimal(? - parseLongDecimal3(String) - Static method in class com.aoapps.sql.SQLUtility
-
Gets the number of millis represented by a
String
containing a decimal(? - printTable(Object[], Iterable<? extends Object[]>, Appendable, boolean, boolean[]) - Static method in class com.aoapps.sql.SQLUtility
-
Prints a table.
- printTable(Object[], Object[], Appendable, boolean, boolean[]) - Static method in class com.aoapps.sql.SQLUtility
-
Deprecated.Please use
SQLUtility.printTable(java.lang.Object[], java.lang.Iterable, java.lang.Appendable, boolean, boolean[])
when possible, as it may provide for more efficiency on large datasets. - printTable(Object[], Collection<Object>, Appendable, boolean, boolean[]) - Static method in class com.aoapps.sql.SQLUtility
-
Deprecated.Please use
SQLUtility.printTable(java.lang.Object[], java.lang.Iterable, java.lang.Appendable, boolean, boolean[])
when possible, as it may provide for more efficiency on large datasets.
R
- readNullTimestamp(DataInputStream) - Static method in class com.aoapps.sql.SQLStreamables
-
Reads a possibly-
null
Timestamp
. - readNullUnmodifiableTimestamp(DataInputStream) - Static method in class com.aoapps.sql.SQLStreamables
-
Reads a possibly-
null
UnmodifiableTimestamp
. - readTimestamp(DataInputStream) - Static method in class com.aoapps.sql.SQLStreamables
-
Reads a
Timestamp
, maintaining the full nanosecond precision. - readUnmodifiableTimestamp(DataInputStream) - Static method in class com.aoapps.sql.SQLStreamables
-
Reads an
UnmodifiableTimestamp
, maintaining the full nanosecond precision.
S
- setDate(int) - Method in class com.aoapps.sql.UnmodifiableTimestamp
-
Deprecated.As of JDK version 1.1,
- setHours(int) - Method in class com.aoapps.sql.UnmodifiableTimestamp
-
Deprecated.As of JDK version 1.1,
- setMinutes(int) - Method in class com.aoapps.sql.UnmodifiableTimestamp
-
Deprecated.As of JDK version 1.1,
- setMonth(int) - Method in class com.aoapps.sql.UnmodifiableTimestamp
-
Deprecated.As of JDK version 1.1,
- setNanos(int) - Method in class com.aoapps.sql.UnmodifiableTimestamp
- setSeconds(int) - Method in class com.aoapps.sql.UnmodifiableTimestamp
-
Deprecated.As of JDK version 1.1,
- setTime(long) - Method in class com.aoapps.sql.UnmodifiableTimestamp
- setYear(int) - Method in class com.aoapps.sql.UnmodifiableTimestamp
-
Deprecated.As of JDK version 1.1,
- SQLStreamables - Class in com.aoapps.sql
-
Functions for sending SQL-related objects in support of
Streamable
. - SQLUtility - Class in com.aoapps.sql
-
SQL utilities.
T
- toString() - Method in class com.aoapps.sql.Interval
- toString() - Method in class com.aoapps.sql.MicroInterval
- toString() - Method in class com.aoapps.sql.MilliInterval
- toString() - Method in class com.aoapps.sql.NanoInterval
- toString(long) - Static method in class com.aoapps.sql.Interval
- toString(long) - Static method in class com.aoapps.sql.MicroInterval
- toString(long) - Static method in class com.aoapps.sql.MilliInterval
- toString(long) - Static method in class com.aoapps.sql.NanoInterval
- toTimestamp(long, int, Timestamp) - Static method in class com.aoapps.sql.SQLUtility
-
Converts a number of seconds and nanoseconds into a given
Timestamp
. - toTimestamp(long, int, Timestamp, Class<? extends Ex>) - Static method in class com.aoapps.sql.SQLUtility
-
Deprecated.Please use
SQLUtility.toTimestamp(long, int, java.sql.Timestamp, java.util.function.Function)
, typically with lambda constructor reference - toTimestamp(long, int, Timestamp, Function<? super String, ? extends Ex>) - Static method in class com.aoapps.sql.SQLUtility
-
Converts a number of seconds and nanoseconds into a given
Timestamp
.
U
- UnmodifiableTimestamp - Class in com.aoapps.sql
-
An unmodifiable Timestamp that may be used in return values and shared between threads.
- UnmodifiableTimestamp(int, int, int, int, int, int, int) - Constructor for class com.aoapps.sql.UnmodifiableTimestamp
-
Deprecated.instead use the constructor
Timestamp(long millis)
- UnmodifiableTimestamp(long) - Constructor for class com.aoapps.sql.UnmodifiableTimestamp
- UnmodifiableTimestamp(long, int) - Constructor for class com.aoapps.sql.UnmodifiableTimestamp
V
- valueOf(Timestamp) - Static method in class com.aoapps.sql.UnmodifiableTimestamp
-
Creates a new UnmodifiableTimestamp from a Timestamp.
W
- WrappedSQLException - Exception Class in com.aoapps.sql
-
Deprecated.We have been increasingly using custom subtypes of
SQLException
to represent different conditions, such as when no row is returned. This allows the simple use of standard catch blocks to handle different conditions accordingly. However, wrapping the original exception defeats this, as it just become a genericSQLException
, albeit with SQL STATE and such copied from the original exception.The primary purpose of wrapping exceptions was to attach the SQL statement being processed at the time of failure. This statement is only used in error reporting, specifically via
ErrorPrinter
. We have created a new way to accomplish this, without altering or wrapping any exceptions: register an exception and corresponding SQL statement directly withErrorPrinter
, which will then automatically be included in error reports. - WrappedSQLException(String, String, int, Throwable, String) - Constructor for exception class com.aoapps.sql.WrappedSQLException
-
Deprecated.Please use
ErrorPrinter.addSql(java.lang.Throwable, java.lang.String)
instead of wrapping exceptions. - WrappedSQLException(SQLException, String) - Constructor for exception class com.aoapps.sql.WrappedSQLException
-
Deprecated.Please use
ErrorPrinter.addSql(java.lang.Throwable, java.lang.String)
instead of wrapping exceptions. - WrappedSQLException(SQLException, PreparedStatement) - Constructor for exception class com.aoapps.sql.WrappedSQLException
-
Deprecated.Please use
ErrorPrinter.addSql(java.lang.Throwable, java.sql.PreparedStatement)
instead of wrapping exceptions. - writeNullTimestamp(Timestamp, DataOutputStream) - Static method in class com.aoapps.sql.SQLStreamables
-
Writes a possibly-
null
Timestamp
. - writeTimestamp(Timestamp, DataOutputStream) - Static method in class com.aoapps.sql.SQLStreamables
-
Writes a
Timestamp
, maintaining the full nanosecond precision.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
SQLUtility.newTimestamp(long, int, java.util.function.Function)
, typically with lambda constructor reference