public class SqlCommand extends Object
Constructor and Description |
---|
SqlCommand(String command,
int suppressedErrorCode)
Instantiates a new sql command.
|
SqlCommand(String command,
List<Integer> suppressedErrorCodes)
Instantiates a new sql command.
|
Modifier and Type | Method and Description |
---|---|
static SqlCommand |
from(String command)
Convenience method returning new instance.
|
static SqlCommand |
from(String command,
int suppressedErrorCode)
Convenience method returning new instance.
|
String |
getCommand()
Gets the command.
|
List<Integer> |
getSuppressedErrorCodes()
Gets the suppressed error codes.
|
public SqlCommand(String command, int suppressedErrorCode)
command
- the commandsuppressedErrorCode
- the suppressed error codepublic static SqlCommand from(String command)
command
- the commandpublic static SqlCommand from(String command, int suppressedErrorCode)
command
- the commandsuppressedErrorCode
- the suppressed error codepublic String getCommand()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.