Package org.firebirdsql.gds.ng
Class FbServiceProperties
java.lang.Object
org.firebirdsql.gds.ng.AbstractAttachProperties<IServiceProperties>
org.firebirdsql.gds.ng.FbServiceProperties
- All Implemented Interfaces:
IAttachProperties<IServiceProperties>,IServiceProperties
public final class FbServiceProperties
extends AbstractAttachProperties<IServiceProperties>
implements IServiceProperties
Mutable implementation of
IServiceProperties.- Since:
- 3.0
- Author:
- Mark Rotteveel
- See Also:
-
Field Summary
Fields inherited from interface org.firebirdsql.gds.ng.IAttachProperties
DEFAULT_CONNECT_TIMEOUT, DEFAULT_PORT, DEFAULT_SERVER_NAME, DEFAULT_SO_TIMEOUT, DEFAULT_SOCKET_BUFFER_SIZEFields inherited from interface org.firebirdsql.gds.ng.IServiceProperties
DEFAULT_SERVICE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for FbServicePropertiesCopy constructor for FbServiceProperties. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddirtied()Called by setters if they have been called.Get the service namevoidsetServiceName(String serviceName) Set the service name.Methods inherited from class org.firebirdsql.gds.ng.AbstractAttachProperties
getAuthPlugins, getCharSet, getConnectTimeout, getDbCryptConfig, getEncoding, getPassword, getPortNumber, getRoleName, getServerName, getSocketBufferSize, getSoTimeout, getUser, getWireCrypt, isWireCompression, setAuthPlugins, setCharSet, setConnectTimeout, setDbCryptConfig, setEncoding, setPassword, setPortNumber, setRoleName, setServerName, setSocketBufferSize, setSoTimeout, setUser, setWireCompression, setWireCryptMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.firebirdsql.gds.ng.IAttachProperties
getAuthPlugins, getCharSet, getConnectTimeout, getDbCryptConfig, getEncoding, getPassword, getPortNumber, getRoleName, getServerName, getSocketBufferSize, getSoTimeout, getUser, getWireCrypt, isWireCompression, setAuthPlugins, setCharSet, setConnectTimeout, setDbCryptConfig, setEncoding, setPassword, setPortNumber, setRoleName, setServerName, setSocketBufferSize, setSoTimeout, setUser, setWireCompression, setWireCrypt
-
Constructor Details
-
FbServiceProperties
Copy constructor for FbServiceProperties.All properties defined in
IServicePropertiesare copied fromsrcto the new instance.- Parameters:
src- Source to copy from
-
FbServiceProperties
public FbServiceProperties()Default constructor for FbServiceProperties
-
-
Method Details
-
getServiceName
Description copied from interface:IServicePropertiesGet the service nameNOTE: Implementer should take care to return
IServiceProperties.DEFAULT_SERVICE_NAMEif value hasn't been set yet.- Specified by:
getServiceNamein interfaceIServiceProperties- Returns:
- Service name
-
setServiceName
Description copied from interface:IServicePropertiesSet the service name.NOTE: Implementer should take care to use the
IServiceProperties.DEFAULT_SERVICE_NAMEif this method hasn't been called yet.- Specified by:
setServiceNamein interfaceIServiceProperties- Parameters:
serviceName- Service name
-
getAttachObjectName
- Specified by:
getAttachObjectNamein interfaceIAttachProperties<IServiceProperties>- Returns:
- The name of the object to attach to (either a database or service name).
-
asImmutable
- Specified by:
asImmutablein interfaceIAttachProperties<IServiceProperties>- Specified by:
asImmutablein interfaceIServiceProperties- Returns:
- An immutable version of this instance as an implementation of
IServiceProperties
-
asNewMutable
- Specified by:
asNewMutablein interfaceIAttachProperties<IServiceProperties>- Specified by:
asNewMutablein interfaceIServiceProperties- Returns:
- A new, mutable, instance as an implementation of
IServicePropertieswith all properties copied.
-
dirtied
protected void dirtied()Description copied from class:AbstractAttachPropertiesCalled by setters if they have been called.- Specified by:
dirtiedin classAbstractAttachProperties<IServiceProperties>
-