public class PostgresSubscriptionsDAO extends java.lang.Object implements SubscriptionsDAO
| Constructor and Description |
|---|
PostgresSubscriptionsDAO(java.sql.Connection connection) |
| Modifier and Type | Method and Description |
|---|---|
Subscription |
create(Subscription subscription) |
Subscription[] |
findAllByCardId(java.lang.String idCard) |
static Subscription |
subscriptionFromRow(java.sql.ResultSet resultSet) |
public PostgresSubscriptionsDAO(java.sql.Connection connection)
public static Subscription subscriptionFromRow(java.sql.ResultSet resultSet) throws java.sql.SQLException
java.sql.SQLExceptionpublic Subscription create(Subscription subscription) throws InternalException
create in interface SubscriptionsDAOInternalExceptionpublic Subscription[] findAllByCardId(java.lang.String idCard) throws InternalException
findAllByCardId in interface SubscriptionsDAOInternalException