Package org.firebirdsql.gds.ng
Interface ParameterConverter<D extends AbstractConnection<IConnectionProperties,?>,S extends AbstractConnection<IServiceProperties,?>>
-
- All Known Implementing Classes:
AbstractParameterConverter
,JnaParameterConverter
,V10ParameterConverter
,V11ParameterConverter
,V12ParameterConverter
,V13ParameterConverter
public interface ParameterConverter<D extends AbstractConnection<IConnectionProperties,?>,S extends AbstractConnection<IServiceProperties,?>>
Provides conversion of parameters (e.g. fromIConnectionProperties
to aDatabaseParameterBuffer
).- Since:
- 3.0
- Author:
- Mark Rotteveel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DatabaseParameterBuffer
toDatabaseParameterBuffer(D connection)
Builds aDatabaseParameterBuffer
from the supplied {code IConnectionProperties}.ServiceParameterBuffer
toServiceParameterBuffer(S connection)
Builds aServiceParameterBuffer
from the supplied {code IServiceProperties}.
-
-
-
Method Detail
-
toDatabaseParameterBuffer
DatabaseParameterBuffer toDatabaseParameterBuffer(D connection) throws java.sql.SQLException
Builds aDatabaseParameterBuffer
from the supplied {code IConnectionProperties}.- Parameters:
connection
- Database connection- Returns:
- Database parameter buffer populated based on the connection properties
- Throws:
java.sql.SQLException
- For errors
-
toServiceParameterBuffer
ServiceParameterBuffer toServiceParameterBuffer(S connection) throws java.sql.SQLException
Builds aServiceParameterBuffer
from the supplied {code IServiceProperties}.- Parameters:
connection
- Service connection- Returns:
- Service parameter buffer populated based on the service properties
- Throws:
java.sql.SQLException
- For errors
-
-