java.lang.Object
org.tentackle.sql.DefaultBackendInfoFactory
- All Implemented Interfaces:
BackendInfoFactory
@Service(BackendInfoFactory.class)
public class DefaultBackendInfoFactory
extends Object
implements BackendInfoFactory
Default implementation of a backend info factory.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a backend info from a backend name.
The info cannot be used to connect.Creates a backend info.
This info is able to create a connection.create(EncryptedProperties backendProperties) Creates a backend info from backend properties.
The info is able to create a connection.Creates a backend info from a backend.
The info cannot be used to connect.create(BackendInfo backendInfo, String user, char[] password) Creates a backend info from another one with a different user and password.
-
Constructor Details
-
DefaultBackendInfoFactory
public DefaultBackendInfoFactory()Creates a backend info factory.
-
-
Method Details
-
create
Description copied from interface:BackendInfoFactoryCreates a backend info from a backend.
The info cannot be used to connect.- Specified by:
createin interfaceBackendInfoFactory- Parameters:
backend- the backend- Returns:
- the backend info
-
create
Description copied from interface:BackendInfoFactoryCreates a backend info from a backend name.
The info cannot be used to connect.- Specified by:
createin interfaceBackendInfoFactory- Parameters:
backendName- the backend name- Returns:
- the backend info
-
create
Description copied from interface:BackendInfoFactoryCreates a backend info.
This info is able to create a connection.- Specified by:
createin interfaceBackendInfoFactory- Parameters:
url- the backend urluser- the usernamepassword- the passwordschemas- the optional schemas, null if no schema check- Returns:
- the backend info
-
create
Description copied from interface:BackendInfoFactoryCreates a backend info from another one with a different user and password.- Specified by:
createin interfaceBackendInfoFactory- Parameters:
backendInfo- the original backend infouser- the usernamepassword- the password- Returns:
- the backend info
-
create
Description copied from interface:BackendInfoFactoryCreates a backend info from backend properties.
The info is able to create a connection.- Specified by:
createin interfaceBackendInfoFactory- Parameters:
backendProperties- the properties- Returns:
- the backend info
-