Top Description Inners Fields Constructors Methods
org.h2.result

public Class ResultWithGeneratedKeys

extends Object
Class Inheritance
Known Direct Subclasses
org.h2.result.ResultWithGeneratedKeys.WithKeys

Result of update command with optional generated keys.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
ResultWithGeneratedKeys.WithKeys

Result of update command with generated keys;

Field Summary

Modifier and TypeField and Description
private final long

Constructor Summary

AccessConstructor and Description
pack-priv
ResultWithGeneratedKeys(long updateCount)

Method Summary

Modifier and TypeMethod and Description
public ResultInterface

Returns:

generated keys, or null
getGeneratedKeys
()

Returns generated keys, or null.

public long

Returns:

update count
getUpdateCount
()

Returns update count.

public static ResultWithGeneratedKeys

Returns:

the result.
of
(long
update count
updateCount
)

Returns a result with only update count.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

updateCountback to summary
private final long updateCount

Constructor Detail

ResultWithGeneratedKeysback to summary
pack-priv ResultWithGeneratedKeys(long updateCount)

Method Detail

getGeneratedKeysback to summary
public ResultInterface getGeneratedKeys()

Returns generated keys, or null.

Returns:ResultInterface

generated keys, or null

getUpdateCountback to summary
public long getUpdateCount()

Returns update count.

Returns:long

update count

ofback to summary
public static ResultWithGeneratedKeys of(long updateCount)

Returns a result with only update count.

Parameters
updateCount:long

update count

Returns:ResultWithGeneratedKeys

the result.

org.h2.result back to summary

public final Class ResultWithGeneratedKeys.WithKeys

extends ResultWithGeneratedKeys
Class Inheritance

Result of update command with generated keys;

Field Summary

Modifier and TypeField and Description
private final ResultInterface

Constructor Summary

AccessConstructor and Description
public
WithKeys(long
update count
updateCount
,
ResultInterface
generated keys
generatedKeys
)

Creates a result with update count and generated keys.

Method Summary

Modifier and TypeMethod and Description
public ResultInterface
getGeneratedKeys()

Overrides org.h2.result.ResultWithGeneratedKeys.getGeneratedKeys.

Returns generated keys, or null.

Inherited from org.h2.result.ResultWithGeneratedKeys:
getUpdateCountof

Field Detail

generatedKeysback to summary
private final ResultInterface generatedKeys

Constructor Detail

WithKeysback to summary
public WithKeys(long updateCount, ResultInterface generatedKeys)

Creates a result with update count and generated keys.

Parameters
updateCount:long

update count

generatedKeys:ResultInterface

generated keys

Method Detail

getGeneratedKeysback to summary
public ResultInterface getGeneratedKeys()

Overrides org.h2.result.ResultWithGeneratedKeys.getGeneratedKeys.

Doc from org.h2.result.ResultWithGeneratedKeys.getGeneratedKeys.

Returns generated keys, or null.

Returns:ResultInterface

generated keys, or null

Annotations
@Override