Class OptionsMetadata (0.5.1)
Stay organized with collections
Save and categorize content based on your preferences.
publicclass OptionsMetadataMetadata extractor for CLI.
Inherited Members
Constructors
OptionsMetadata(String defaultConnectionUrl, int proxyPort, OptionsMetadata.TextFormat textFormat, boolean forceBinary, boolean authenticate, boolean requiresMatcher, boolean replaceJdbcMetadataQueries, JSONObject commandMetadata)
publicOptionsMetadata(StringdefaultConnectionUrl,intproxyPort,OptionsMetadata.TextFormattextFormat,booleanforceBinary,booleanauthenticate,booleanrequiresMatcher,booleanreplaceJdbcMetadataQueries,JSONObjectcommandMetadata)org.json.simple.JSONObjectOptionsMetadata(String[] args)
publicOptionsMetadata(String[]args)Methods
buildConnectionURL(String database)
publicStringbuildConnectionURL(Stringdatabase)Takes user inputs and builds a JDBC connection string from them.
The parsed JDBC connection string.
buildCredentialsFile()
publicStringbuildCredentialsFile()Get credential file path from either command line or application default. If neither throw error.
The absolute path of the credentials file.
disableLocalhostCheck()
publicbooleandisableLocalhostCheck()getCommandMetadataJSON()
publicJSONObjectgetCommandMetadataJSON()getConnectionURL() (deprecated)
publicStringgetConnectionURL()Deprecated. use #getDefaultConnectionUrl()
the default connection URL that is used by the server.
getDatabaseName(String database)
publicDatabaseNamegetDatabaseName(Stringdatabase)Returns the fully qualified database name based on the given database id or name.
getDdlTransactionMode()
publicOptionsMetadata.DdlTransactionModegetDdlTransactionMode()getDefaultConnectionUrl()
publicStringgetDefaultConnectionUrl()Returns the default connection URL that is used by the server. If a default connection URL has been set, the database parameter in a connection request will be ignored, and the database in this connection URL will be used instead.
the default connection URL that is used by the server.
getMaxBacklog()
publicintgetMaxBacklog()getPropertyMap()
publicMap<String,String>getPropertyMap()getProxyPort()
publicintgetProxyPort()getServerVersion()
publicStringgetServerVersion()getSocketFile(int localPort)
publicStringgetSocketFile(intlocalPort)getTextFormat()
publicOptionsMetadata.TextFormatgetTextFormat()hasDefaultConnectionUrl()
publicbooleanhasDefaultConnectionUrl()true if the server uses a default connection URL and ignores the database in a connection request
isBinaryFormat()
publicbooleanisBinaryFormat()isDebugMode()
publicbooleanisDebugMode()isDomainSocketEnabled()
publicbooleanisDomainSocketEnabled()isReplaceJdbcMetadataQueries()
publicbooleanisReplaceJdbcMetadataQueries()isWindows()
publicbooleanisWindows()Returns true if the OS is Windows.
requiresMatcher()
publicbooleanrequiresMatcher()shouldAuthenticate()
publicbooleanshouldAuthenticate()shouldAutoDetectClient()
publicbooleanshouldAutoDetectClient()