/// <summary> /// Drops the element in sequence. /// </summary> /// <param name="oid"> The oid. </param> /// <param name="attributeName"> Name of the attribute. </param> /// <param name="index"> The index. </param> public void DropElementInSequence(CUBRIDOid oid, String attributeName, int index) { if (State == ConnectionState.Closed) { throw new CUBRIDException(Utils.GetStr(MsgId.TheConnectionIsNotOpen)); } T_CCI_ERROR err_buf = new T_CCI_ERROR(); int req = CciInterface.cci_col_seq_drop(Conection, oid.Get_OidStr(), attributeName, index, ref err_buf); if (req < 0) { throw new CUBRIDException(err_buf.err_code, err_buf.err_msg); } }
/// <summary> /// Gets the size of the collection. /// </summary> /// <param name="oid"> The oid. </param> /// <param name="attributeName"> Name of the attribute. </param> /// <returns> </returns> public int GetCollectionSize(CUBRIDOid oid, String attributeName) { if (State == ConnectionState.Closed) { throw new CUBRIDException(Utils.GetStr(MsgId.TheConnectionIsNotOpen)); } int size = 0; T_CCI_ERROR err_buf = new T_CCI_ERROR(); int req = CciInterface.cci_col_size(Conection, oid.Get_OidStr(), attributeName, ref size, ref err_buf); if (req < 0) { throw new CUBRIDException(err_buf.err_code, err_buf.err_msg); } return size; }
/// <summary> /// Adds the element to set. /// </summary> /// <param name="oid"> The oid. </param> /// <param name="attributeName"> Name of the attribute. </param> /// <param name="value"> The value. </param> public void AddElementToSet(CUBRIDOid oid, String attributeName, Object value) { if (State == ConnectionState.Closed) { throw new CUBRIDException(Utils.GetStr(MsgId.TheConnectionIsNotOpen)); } T_CCI_ERROR err_buf = new T_CCI_ERROR(); int req = CciInterface.cci_col_set_add(Conection, oid.Get_OidStr(), attributeName, value.ToString(), ref err_buf); if (req < 0) { throw new CUBRIDException(err_buf.err_code, err_buf.err_msg); } }