// Path: server/src/main/java/com/cloudwise/sap/niping/common/entity/AccessCredentials.java
// @Data
// @Builder
// @EqualsAndHashCode(callSuper = true)
// public class AccessCredentials extends AbstractEntity {
// 	private static final long serialVersionUID = 8305605853259461011L;
// 	private String token;
// 	private String comment;
// 	private Date expiryDate;
// }
// 
// Path: server/src/main/java/com/cloudwise/sap/niping/dao/mapper/AccessCredentialsMapper.java
// public class AccessCredentialsMapper implements ResultSetMapper<AccessCredentials> {
// 
//     @Override
//     public AccessCredentials map(int index, ResultSet r, StatementContext ctx) throws SQLException {
//         AccessCredentials accessCredentials = AccessCredentials.builder()
//                 .token(r.getString("TOKEN"))
//                 .comment(r.getString("COMMENT"))
//                 .expiryDate(r.getDate("EXPIRY_DATE")).build();
//         accessCredentials.set(r.getString("ACCOUNT_ID"), r.getDate("CREATION_TIME"), r.getDate("MODIFIED_TIME"));
//         return accessCredentials;
//     }
// 
// }


import com.cloudwise.sap.niping.common.entity.AccessCredentials;
import com.cloudwise.sap.niping.dao.mapper.AccessCredentialsMapper;
import org.skife.jdbi.v2.sqlobject.Bind;
import org.skife.jdbi.v2.sqlobject.SqlQuery;
import org.skife.jdbi.v2.sqlobject.customizers.RegisterMapper;
package com.cloudwise.sap.niping.dao;


public interface AccessCredentialsDao {

    @SqlQuery("SELECT TOKEN, ACCOUNT_ID, COMMENT, EXPIRY_DATE, CREATION_TIME, MODIFIED_TIME FROM SNM_ACCESS_CREDENTIALS " +
            " WHERE TOKEN = :token")
// Path: server/src/main/java/com/cloudwise/sap/niping/common/entity/AccessCredentials.java
// @Data
// @Builder
// @EqualsAndHashCode(callSuper = true)
// public class AccessCredentials extends AbstractEntity {
// 	private static final long serialVersionUID = 8305605853259461011L;
// 	private String token;
// 	private String comment;
// 	private Date expiryDate;
// }
// 
// Path: server/src/main/java/com/cloudwise/sap/niping/dao/mapper/AccessCredentialsMapper.java
// public class AccessCredentialsMapper implements ResultSetMapper<AccessCredentials> {
// 
//     @Override
//     public AccessCredentials map(int index, ResultSet r, StatementContext ctx) throws SQLException {
//         AccessCredentials accessCredentials = AccessCredentials.builder()
//                 .token(r.getString("TOKEN"))
//                 .comment(r.getString("COMMENT"))
//                 .expiryDate(r.getDate("EXPIRY_DATE")).build();
//         accessCredentials.set(r.getString("ACCOUNT_ID"), r.getDate("CREATION_TIME"), r.getDate("MODIFIED_TIME"));
//         return accessCredentials;
//     }
// 
// }


// Path: server/src/main/java/com/cloudwise/sap/niping/dao/AccessCredentialsDao.java
import com.cloudwise.sap.niping.common.entity.AccessCredentials;
import com.cloudwise.sap.niping.dao.mapper.AccessCredentialsMapper;
import org.skife.jdbi.v2.sqlobject.Bind;
import org.skife.jdbi.v2.sqlobject.SqlQuery;
import org.skife.jdbi.v2.sqlobject.customizers.RegisterMapper;

package com.cloudwise.sap.niping.dao;


public interface AccessCredentialsDao {

    @SqlQuery("SELECT TOKEN, ACCOUNT_ID, COMMENT, EXPIRY_DATE, CREATION_TIME, MODIFIED_TIME FROM SNM_ACCESS_CREDENTIALS " +
            " WHERE TOKEN = :token")
    @RegisterMapper(AccessCredentialsMapper.class)