Package org.firebirdsql.gds.ng
Class AbstractParameterConverter<D extends AbstractConnection<IConnectionProperties,?>,S extends AbstractConnection<IServiceProperties,?>>
- java.lang.Object
- 
- org.firebirdsql.gds.ng.AbstractParameterConverter<D,S>
 
- 
- All Implemented Interfaces:
- ParameterConverter<D,S>
 - Direct Known Subclasses:
- JnaParameterConverter,- V10ParameterConverter
 
 public abstract class AbstractParameterConverter<D extends AbstractConnection<IConnectionProperties,?>,S extends AbstractConnection<IServiceProperties,?>> extends java.lang.Object implements ParameterConverter<D,S> Abstract class for behavior common toParameterConverterimplementations.- Since:
- 3.0
- Author:
- Mark Rotteveel
 
- 
- 
Constructor SummaryConstructors Constructor Description AbstractParameterConverter()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected DatabaseParameterBuffercreateDatabaseParameterBuffer(D connection)protected ServiceParameterBuffercreateServiceParameterBuffer(S connection)protected abstract voidpopulateAuthenticationProperties(AbstractConnection<?,?> connection, ConnectionParameterBuffer pb)Populates the authentication properties of the parameter buffer.protected voidpopulateDefaultProperties(D connection, DatabaseParameterBuffer dpb)Populates the database parameter buffer with the standard Firebird properties explicitly supported throughIConnectionProperties.protected voidpopulateDefaultProperties(S connection, ServiceParameterBuffer spb)Populates the database parameter buffer with the standard Firebird properties explicitly supported throughIConnectionProperties.DatabaseParameterBuffertoDatabaseParameterBuffer(D connection)Builds aDatabaseParameterBufferfrom the supplied {code IConnectionProperties}.ServiceParameterBuffertoServiceParameterBuffer(S connection)Builds aServiceParameterBufferfrom the supplied {code IServiceProperties}.
 
- 
- 
- 
Method Detail- 
createDatabaseParameterBufferprotected DatabaseParameterBuffer createDatabaseParameterBuffer(D connection) 
 - 
createServiceParameterBufferprotected ServiceParameterBuffer createServiceParameterBuffer(S connection) 
 - 
toDatabaseParameterBufferpublic final DatabaseParameterBuffer toDatabaseParameterBuffer(D connection) throws java.sql.SQLException Description copied from interface:ParameterConverterBuilds aDatabaseParameterBufferfrom the supplied {code IConnectionProperties}.- Specified by:
- toDatabaseParameterBufferin interface- ParameterConverter<D extends AbstractConnection<IConnectionProperties,?>,S extends AbstractConnection<IServiceProperties,?>>
- Parameters:
- connection- Database connection
- Returns:
- Database parameter buffer populated based on the connection properties
- Throws:
- java.sql.SQLException- For errors
 
 - 
populateDefaultPropertiesprotected void populateDefaultProperties(D connection, DatabaseParameterBuffer dpb) throws java.sql.SQLException Populates the database parameter buffer with the standard Firebird properties explicitly supported throughIConnectionProperties.- Parameters:
- connection- Database connection
- dpb- Database parameter buffer to populate
- Throws:
- java.sql.SQLException- For errors generating authentication information
 
 - 
populateAuthenticationPropertiesprotected abstract void populateAuthenticationProperties(AbstractConnection<?,?> connection, ConnectionParameterBuffer pb) throws java.sql.SQLException Populates the authentication properties of the parameter buffer.- Parameters:
- connection- Database connection
- pb- Parameter buffer to populate
- Throws:
- java.sql.SQLException- For errors generating authentication information
 
 - 
toServiceParameterBufferpublic final ServiceParameterBuffer toServiceParameterBuffer(S connection) throws java.sql.SQLException Description copied from interface:ParameterConverterBuilds aServiceParameterBufferfrom the supplied {code IServiceProperties}.- Specified by:
- toServiceParameterBufferin interface- ParameterConverter<D extends AbstractConnection<IConnectionProperties,?>,S extends AbstractConnection<IServiceProperties,?>>
- Parameters:
- connection- Service connection
- Returns:
- Service parameter buffer populated based on the service properties
- Throws:
- java.sql.SQLException- For errors
 
 - 
populateDefaultPropertiesprotected void populateDefaultProperties(S connection, ServiceParameterBuffer spb) throws java.sql.SQLException Populates the database parameter buffer with the standard Firebird properties explicitly supported throughIConnectionProperties.- Parameters:
- connection- Service connection
- spb- Service parameter buffer to populate
- Throws:
- java.sql.SQLException- For errors generating authentication information
 
 
- 
 
-