text
stringlengths
0
234
Value => Object.Version);
Stmt.Set_Filter (Filter => "id = ? and version = ?");
Stmt.Add_Param (Value => Object.Get_Key);
Stmt.Add_Param (Value => Object.Version - 1);
declare
Result : Integer;
begin
Stmt.Execute (Result);
if Result /= 1 then
if Result /= 0 then
raise ADO.Objects.UPDATE_ERROR;
else
raise ADO.Objects.LAZY_LOCK;
end if;
end if;
Function Definition: procedure Set_Field_Enum is
Function Body: new ADO.Objects.Set_Field_Operation (Format_Type);
Impl : Wiki_Content_Access;
begin
Set_Field (Object, Impl);
Set_Field_Enum (Impl.all, 4, Impl.Format, Value);
end Set_Format;
function Get_Format (Object : in Wiki_Content_Ref)
return AWA.Wikis.Models.Format_Type is
Impl : constant Wiki_Content_Access
:= Wiki_Content_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Format;
end Get_Format;
procedure Set_Save_Comment (Object : in out Wiki_Content_Ref;
Value : in String) is
Impl : Wiki_Content_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_String (Impl.all, 5, Impl.Save_Comment, Value);
end Set_Save_Comment;
procedure Set_Save_Comment (Object : in out Wiki_Content_Ref;
Value : in Ada.Strings.Unbounded.Unbounded_String) is
Impl : Wiki_Content_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Unbounded_String (Impl.all, 5, Impl.Save_Comment, Value);
end Set_Save_Comment;
function Get_Save_Comment (Object : in Wiki_Content_Ref)
return String is
begin
return Ada.Strings.Unbounded.To_String (Object.Get_Save_Comment);
end Get_Save_Comment;
function Get_Save_Comment (Object : in Wiki_Content_Ref)
return Ada.Strings.Unbounded.Unbounded_String is
Impl : constant Wiki_Content_Access
:= Wiki_Content_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Save_Comment;
end Get_Save_Comment;
function Get_Version (Object : in Wiki_Content_Ref)
return Integer is
Impl : constant Wiki_Content_Access
:= Wiki_Content_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Version;
end Get_Version;
procedure Set_Page_Version (Object : in out Wiki_Content_Ref;
Value : in Integer) is
Impl : Wiki_Content_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Integer (Impl.all, 7, Impl.Page_Version, Value);
end Set_Page_Version;
function Get_Page_Version (Object : in Wiki_Content_Ref)
return Integer is
Impl : constant Wiki_Content_Access
:= Wiki_Content_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Page_Version;
end Get_Page_Version;
procedure Set_Page (Object : in out Wiki_Content_Ref;
Value : in AWA.Wikis.Models.Wiki_Page_Ref'Class) is
Impl : Wiki_Content_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Object (Impl.all, 8, Impl.Page, Value);
end Set_Page;
function Get_Page (Object : in Wiki_Content_Ref)
return AWA.Wikis.Models.Wiki_Page_Ref'Class is
Impl : constant Wiki_Content_Access