Package

Source Code of EfisEvent

import java.sql.SQLException;
import oracle.jdbc.driver.OracleConnection;
import oracle.jdbc.driver.OracleTypes;
import oracle.sql.CustomDatum;
import oracle.sql.CustomDatumFactory;
import oracle.sql.Datum;
import oracle.sql.STRUCT;
import oracle.jpub.runtime.MutableStruct;

public class EfisEvent implements CustomDatum, CustomDatumFactory
{
  public static final String _SQL_NAME = "TEST.EFIS_EVENT";
  public static final int _SQL_TYPECODE = OracleTypes.STRUCT;

  protected MutableStruct _struct;

  static int[] _sqlType =
  {
    12, 12, 12
  };

  static CustomDatumFactory[] _factory = new CustomDatumFactory[3];

  static final EfisEvent _EfisEventFactory = new EfisEvent();
  public static CustomDatumFactory getFactory()
  {
    return _EfisEventFactory;
  }

  /* constructor */
  public EfisEvent()
  {
    _struct = new MutableStruct(new Object[3], _sqlType, _factory);
  }

  /* CustomDatum interface */
  public Datum toDatum(OracleConnection c) throws SQLException
  {
    return _struct.toDatum(c, _SQL_NAME);
  }

  /* CustomDatumFactory interface */
  public CustomDatum create(Datum d, int sqlType) throws SQLException
  {
    if (d == null) return null;
    EfisEvent o = new EfisEvent();
    o._struct = new MutableStruct((STRUCT) d, _sqlType, _factory);
    return o;
  }

  /* accessor methods */
  public String getSubject() throws SQLException
  { return (String) _struct.getAttribute(0); }

  public void setSubject(String subject) throws SQLException
  { _struct.setAttribute(0, subject); }


  public String getUpdates() throws SQLException
  { return (String) _struct.getAttribute(1); }

  public void setUpdates(String updates) throws SQLException
  { _struct.setAttribute(1, updates); }


  public String getMsg() throws SQLException
  { return (String) _struct.getAttribute(2); }

  public void setMsg(String msg) throws SQLException
  { _struct.setAttribute(2, msg); }

}
TOP

Related Classes of EfisEvent

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.