text
stringlengths
0
234
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 List (Object : in out Attribute_Vector;
Function Body: Session : in out ADO.Sessions.Session'Class;
Query : in ADO.SQL.Query'Class) is
Stmt : ADO.Statements.Query_Statement
:= Session.Create_Statement (Query, ATTRIBUTE_DEF'Access);
begin
Stmt.Execute;
Attribute_Vectors.Clear (Object);
while Stmt.Has_Elements loop
declare
Item : Attribute_Ref;
Impl : constant Attribute_Access := new Attribute_Impl;
begin
Impl.Load (Stmt, Session);
ADO.Objects.Set_Object (Item, Impl.all'Access);
Object.Append (Item);
Function Definition: procedure Set_Field_Discrete is
Function Body: new ADO.Objects.Set_Field_Operation
(Status_Type);
Impl : Project_Access;
begin
Set_Field (Object, Impl);
Set_Field_Discrete (Impl.all, 5, Impl.Status, Value);
end Set_Status;
function Get_Status (Object : in Project_Ref)
return Status_Type is
Impl : constant Project_Access
:= Project_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Status;
end Get_Status;
procedure Set_Last_Ticket (Object : in out Project_Ref;
Value : in Integer) is
Impl : Project_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Integer (Impl.all, 6, Impl.Last_Ticket, Value);
end Set_Last_Ticket;
function Get_Last_Ticket (Object : in Project_Ref)
return Integer is
Impl : constant Project_Access
:= Project_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Last_Ticket;
end Get_Last_Ticket;
procedure Set_Update_Date (Object : in out Project_Ref;
Value : in Ada.Calendar.Time) is
Impl : Project_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Time (Impl.all, 7, Impl.Update_Date, Value);
end Set_Update_Date;
function Get_Update_Date (Object : in Project_Ref)
return Ada.Calendar.Time is
Impl : constant Project_Access
:= Project_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Update_Date;
end Get_Update_Date;
procedure Set_Description (Object : in out Project_Ref;
Value : in String) is
Impl : Project_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_String (Impl.all, 8, Impl.Description, Value);
end Set_Description;
procedure Set_Description (Object : in out Project_Ref;
Value : in Ada.Strings.Unbounded.Unbounded_String) is
Impl : Project_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Unbounded_String (Impl.all, 8, Impl.Description, Value);
end Set_Description;
function Get_Description (Object : in Project_Ref)
return String is
begin
return Ada.Strings.Unbounded.To_String (Object.Get_Description);
end Get_Description;