パッケージ org.postgresql.jdbc
クラス PgArray
java.lang.Object
org.postgresql.jdbc.PgArray
- すべての実装されたインタフェース:
Array
Array is used collect one column of query result data.
Read a field of type Array into either a natively-typed Java array object or a ResultSet. Accessor methods provide the ability to capture array slices.
Other than the constructor all methods are direct implementations of those specified for java.sql.Array. Please refer to the javadoc for java.sql.Array for detailed descriptions of the functionality and parameters of the methods of this class.
- 関連項目:
-
フィールドの概要
フィールド修飾子とタイプフィールド説明protected @Nullable org.postgresql.jdbc.ArrayDecoding.PgArrayList
Value of field asArrayDecoding.PgArrayList
.protected @Nullable BaseConnection
A database connection.protected byte @Nullable []
protected @Nullable String
Field value as String. -
コンストラクタの概要
コンストラクタコンストラクタ説明PgArray
(BaseConnection connection, int oid, byte @Nullable [] fieldBytes) Create a new Array.PgArray
(BaseConnection connection, int oid, @Nullable String fieldString) Create a new Array. -
メソッドの概要
修飾子とタイプメソッド説明static void
void
free()
getArray()
getArray
(long index, int count) @Nullable Object
getArrayImpl
(long index, int count, @Nullable Map<String, Class<?>> map) getArrayImpl
(Map<String, Class<?>> map) int
getResultSet
(long index, int count) getResultSet
(long index, int count, @Nullable Map<String, Class<?>> map) getResultSet
(@Nullable Map<String, Class<?>> map) getResultSetImpl
(long index, int count, @Nullable Map<String, Class<?>> map) getResultSetImpl
(@Nullable Map<String, Class<?>> map) boolean
isBinary()
byte @Nullable []
toBytes()
@Nullable String
toString()
-
フィールド詳細
-
connection
A database connection. -
fieldString
Field value as String. -
arrayList
protected @Nullable org.postgresql.jdbc.ArrayDecoding.PgArrayList arrayListValue of field asArrayDecoding.PgArrayList
. Will be initialized only once withinbuildArrayList(String)
. -
fieldBytes
protected byte @Nullable [] fieldBytes
-
-
コンストラクタの詳細
-
PgArray
public PgArray(BaseConnection connection, int oid, @Nullable String fieldString) throws SQLException Create a new Array.- パラメータ:
connection
- a database connectionoid
- the oid of the array datatypefieldString
- the array data in string form- 例外:
SQLException
- if something wrong happens
-
PgArray
public PgArray(BaseConnection connection, int oid, byte @Nullable [] fieldBytes) throws SQLException Create a new Array.- パラメータ:
connection
- a database connectionoid
- the oid of the array datatypefieldBytes
- the array data in byte form- 例外:
SQLException
- if something wrong happens
-
-
メソッドの詳細
-
getArray
- 定義:
getArray
インタフェース内Array
- 例外:
SQLException
-
getArray
- 定義:
getArray
インタフェース内Array
- 例外:
SQLException
-
getArrayImpl
- 例外:
SQLException
-
getArray
- 定義:
getArray
インタフェース内Array
- 例外:
SQLException
-
getArray
public Object getArray(long index, int count, @Nullable Map<String, Class<?>> map) throws SQLException- 定義:
getArray
インタフェース内Array
- 例外:
SQLException
-
getArrayImpl
public @Nullable Object getArrayImpl(long index, int count, @Nullable Map<String, Class<?>> map) throws SQLException- 例外:
SQLException
-
getBaseType
- 定義:
getBaseType
インタフェース内Array
- 例外:
SQLException
-
getBaseTypeName
- 定義:
getBaseTypeName
インタフェース内Array
- 例外:
SQLException
-
getResultSet
- 定義:
getResultSet
インタフェース内Array
- 例外:
SQLException
-
getResultSet
- 定義:
getResultSet
インタフェース内Array
- 例外:
SQLException
-
getResultSet
- 定義:
getResultSet
インタフェース内Array
- 例外:
SQLException
-
getResultSet
public ResultSet getResultSet(long index, int count, @Nullable Map<String, Class<?>> map) throws SQLException- 定義:
getResultSet
インタフェース内Array
- 例外:
SQLException
-
getResultSetImpl
- 例外:
SQLException
-
getResultSetImpl
public ResultSet getResultSetImpl(long index, int count, @Nullable Map<String, Class<?>> map) throws SQLException- 例外:
SQLException
-
toString
-
escapeArrayElement
-
isBinary
public boolean isBinary() -
toBytes
public byte @Nullable [] toBytes() -
free
- 定義:
free
インタフェース内Array
- 例外:
SQLException
-