/** * store * * @generated */ public void store(EntityBean eb) throws Exception { Object objectTemp = null; TransactioncodeBean b = (TransactioncodeBean) eb; ie.ucd.srg.koa.kr.beans.TransactioncodeKey _primaryKey = new ie.ucd.srg.koa.kr.beans.TransactioncodeKey(); _primaryKey.transactienummer = b.transactienummer; PreparedStatement pstmt; pstmt = getPreparedStatement(_storeString); try { if (_primaryKey.transactienummer == null) { pstmt.setNull(2, java.sql.Types.VARCHAR); } else { pstmt.setString(2, _primaryKey.transactienummer); } objectTemp = ie.ucd.srg.vap.converters.VapCharToBoolean.singleton() .dataFrom(new Boolean(b.alreadyused)); if (objectTemp == null) { pstmt.setNull(1, java.sql.Types.CHAR); } else { pstmt.setString(1, (java.lang.String) objectTemp); } pstmt.executeUpdate(); } finally { returnPreparedStatement(pstmt); } }
/** * hydrate * * @generated */ public void hydrate(EntityBean eb, Object data, Object pKey) throws Exception { Object objectTemp = null; TransactioncodeBean b = (TransactioncodeBean) eb; ie.ucd.srg.koa.kr.beans.TransactioncodeKey _primaryKey = (ie.ucd.srg.koa.kr.beans.TransactioncodeKey) pKey; java.sql.ResultSet resultSet = (java.sql.ResultSet) data; b.transactienummer = _primaryKey.transactienummer; objectTemp = ie.ucd.srg.vap.converters.VapCharToBoolean.singleton().objectFrom(resultSet.getString(2)); b.alreadyused = (objectTemp == null) ? false : ((Boolean) objectTemp).booleanValue(); }