public void insert(ClothFrameData data) { string valueString = ""; appendValueInt(ref valueString, data.mID); appendValueString(ref valueString, data.mLabel); appendValueInt(ref valueString, data.mDirection); appendValueString(ref valueString, data.mAction); appendValueInt(ref valueString, data.mFrameCount); appendValueIntArray(ref valueString, data.mPosX); appendValueIntArray(ref valueString, data.mPosY, true); doInsert(valueString); }
public void updateData(ClothFrameData data) { string valueString = ""; appendUpdateInt(ref valueString, ClothFrameData.COL_FRAME_COUNT, data.mFrameCount); appendUpdateIntArray(ref valueString, ClothFrameData.COL_POSX, data.mPosX); appendUpdateIntArray(ref valueString, ClothFrameData.COL_POSY, data.mPosY); string condition = ""; appendConditionInt(ref condition, ClothFrameData.COL_ID, data.mID, " and "); appendConditionInt(ref condition, ClothFrameData.COL_DIRECTION, data.mDirection, " and "); appendConditionString(ref condition, ClothFrameData.COL_ACTION, data.mAction, ""); doUpdate(valueString, condition); }