Package org.firebirdsql.gds.ng
Class FbImmutableServiceProperties
- java.lang.Object
- 
- org.firebirdsql.gds.ng.AbstractImmutableAttachProperties<IServiceProperties>
- 
- org.firebirdsql.gds.ng.FbImmutableServiceProperties
 
 
- 
- All Implemented Interfaces:
- IAttachProperties<IServiceProperties>,- IServiceProperties
 
 public final class FbImmutableServiceProperties extends AbstractImmutableAttachProperties<IServiceProperties> implements IServiceProperties Immutable implementation ofIServiceProperties.- Since:
- 3.0
- Author:
- , Mark Rotteveel
- See Also:
- FbServiceProperties
 
- 
- 
Field Summary- 
Fields inherited from interface org.firebirdsql.gds.ng.IAttachPropertiesDEFAULT_CONNECT_TIMEOUT, DEFAULT_PORT, DEFAULT_SERVER_NAME, DEFAULT_SO_TIMEOUT, DEFAULT_SOCKET_BUFFER_SIZE
 - 
Fields inherited from interface org.firebirdsql.gds.ng.IServicePropertiesDEFAULT_SERVICE_NAME
 
- 
 - 
Constructor SummaryConstructors Constructor Description FbImmutableServiceProperties(IServiceProperties src)Copy constructor for FbServiceProperties.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IServicePropertiesasImmutable()IServicePropertiesasNewMutable()java.lang.StringgetAttachObjectName()java.lang.StringgetServiceName()Get the service namevoidsetServiceName(java.lang.String serviceName)Set the service name.- 
Methods inherited from class org.firebirdsql.gds.ng.AbstractImmutableAttachPropertiesgetAuthPlugins, getCharSet, getConnectTimeout, getDbCryptConfig, getEncoding, getPassword, getPortNumber, getRoleName, getServerName, getSocketBufferSize, getSoTimeout, getUser, getWireCrypt, immutable, isWireCompression, setAuthPlugins, setCharSet, setConnectTimeout, setDbCryptConfig, setEncoding, setPassword, setPortNumber, setRoleName, setServerName, setSocketBufferSize, setSoTimeout, setUser, setWireCompression, setWireCrypt
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.firebirdsql.gds.ng.IAttachPropertiesgetAuthPlugins, 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 Detail- 
FbImmutableServicePropertiespublic FbImmutableServiceProperties(IServiceProperties src) Copy constructor for FbServiceProperties.All properties defined in IServicePropertiesare copied fromsrcto the new instance.- Parameters:
- src- Source to copy from
 
 
- 
 - 
Method Detail- 
getServiceNamepublic java.lang.String 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 interface- IServiceProperties
- Returns:
- Service name
 
 - 
setServiceNamepublic void setServiceName(java.lang.String serviceName) 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 interface- IServiceProperties
- Parameters:
- serviceName- Service name
 
 - 
getAttachObjectNamepublic java.lang.String getAttachObjectName() - Specified by:
- getAttachObjectNamein interface- IAttachProperties<IServiceProperties>
- Returns:
- The name of the object to attach to (either a database or service name).
 
 - 
asImmutablepublic IServiceProperties asImmutable() - Specified by:
- asImmutablein interface- IAttachProperties<IServiceProperties>
- Specified by:
- asImmutablein interface- IServiceProperties
- Returns:
- An immutable version of this instance as an implementation of IServiceProperties
 
 - 
asNewMutablepublic IServiceProperties asNewMutable() - Specified by:
- asNewMutablein interface- IAttachProperties<IServiceProperties>
- Specified by:
- asNewMutablein interface- IServiceProperties
- Returns:
- A new, mutable, instance as an implementation of IServicePropertieswith all properties copied.
 
 
- 
 
-