コード例 #1
0
 /**
  * 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);
   }
 }
コード例 #2
0
 /**
  * refresh
  *
  * @generated
  */
 public void refresh(EntityBean eb, boolean forUpdate) throws Exception {
   TransactioncodeBean b = (TransactioncodeBean) eb;
   ie.ucd.srg.koa.kr.beans.TransactioncodeKey _primaryKey =
       new ie.ucd.srg.koa.kr.beans.TransactioncodeKey();
   _primaryKey.transactienummer = b.transactienummer;
   load(b, _primaryKey, forUpdate);
 }
コード例 #3
0
  /**
   * getPrimaryKey
   *
   * @generated
   */
  public Object getPrimaryKey(Object data) throws Exception {
    ie.ucd.srg.koa.kr.beans.TransactioncodeKey key =
        new ie.ucd.srg.koa.kr.beans.TransactioncodeKey();
    java.sql.ResultSet resultSet = (java.sql.ResultSet) data;

    if (resultSet != null) {
      Object objectTemp = null;
      key.transactienummer = resultSet.getString(1);
      return key;
    }
    return null;
  }
コード例 #4
0
 /**
  * remove
  *
  * @generated
  */
 public void remove(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(_removeString);
   try {
     if (_primaryKey.transactienummer == null) {
       pstmt.setNull(1, java.sql.Types.VARCHAR);
     } else {
       pstmt.setString(1, _primaryKey.transactienummer);
     }
     pstmt.executeUpdate();
   } finally {
     returnPreparedStatement(pstmt);
   }
 }