Designed for use with org.
as well as org., to be
passed in as a parameter value wrapping the target content value. Can be
combined with org. for
specifying a SQL type, e.g.
new SqlParameterValue(Types.CLOB, new SqlCharacterValue(myContent)).
With most database drivers, the type hint is not actually necessary.
SqlBinaryValue, org.springframework.jdbc.core.SqlParameterValue
| Modifier and Type | Field and Description |
|---|---|
| private final Object | |
| private final long |
| Access | Constructor and Description |
|---|---|
| public | SqlCharacterValue(CharSequence
the content as a String or other CharSequence string)Create a new CLOB value with the given content string. |
| public | SqlCharacterValue(char[]
the content as a character array characters)Create a new |
| public | SqlCharacterValue(Reader
the content reader reader, long the length of the content length)Create a new |
| public | SqlCharacterValue(InputStream
the content as ASCII stream asciiStream, long the length of the content length)Create a new |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| public void | setTypeValue(PreparedStatement
the PreparedStatement to work on ps, int the index of the parameter for which we need to set the value paramIndex, int the SQL type of the parameter we are setting sqlType, String the type name of the parameter (optional) typeName)Implements org. |
| content | back to summary |
|---|---|
| private final Object content | |
| length | back to summary |
|---|---|
| private final long length | |
| SqlCharacterValue | back to summary |
|---|---|
| public SqlCharacterValue(CharSequence string) Create a new CLOB value with the given content string.
| |
| SqlCharacterValue | back to summary |
|---|---|
| public SqlCharacterValue(char[] characters) Create a new
| |
| SqlCharacterValue | back to summary |
|---|---|
| public SqlCharacterValue(Reader reader, long length) Create a new
| |
| SqlCharacterValue | back to summary |
|---|---|
| public SqlCharacterValue(InputStream asciiStream, long length) Create a new
| |
| setReader | back to summary |
|---|---|
| private void setReader(PreparedStatement ps, int paramIndex, int sqlType, Reader reader, long length) throws SQLException | |
| setString | back to summary |
|---|---|
| private void setString(PreparedStatement ps, int paramIndex, int sqlType, String string) throws SQLException | |
| setTypeValue | back to summary |
|---|---|
| public void setTypeValue(PreparedStatement ps, int paramIndex, int sqlType, String typeName) throws SQLException Implements org. Doc from org. Set the type value on the given PreparedStatement.
| |