-- ================================================================================================================ -- Stored Procedures generated by LLBLGen v1.21.2003.712 Final on Donnerstag, 20. November 2014, 13:50:57 -- For the Low Level Business Logic Layer for the database 'bea' -- ================================================================================================================ SET NOCOUNT ON GO USE [bea] GO -- ======================================================================================================== -- [Stored Procedures generated for table: Plattform] GO -- //// Insert Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_Plattform_Insert]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_Plattform_Insert] GO --------------------------------------------------------------------------------- -- Stored procedure that will insert 1 row in the table 'Plattform' -- Gets: @iPlattformNr int -- Gets: @iParentID int -- Gets: @sBezeichnung varchar(255) -- Gets: @sBeschreibung varchar(255) -- Gets: @iSequenz int -- Gets: @bAktiv bit -- Gets: @daErstellt_am datetime -- Gets: @daMutiert_am datetime -- Gets: @iMutierer int -- Gets: @iCID int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_Plattform_Insert] @iPlattformNr int, @iParentID int, @sBezeichnung varchar(255), @sBeschreibung varchar(255), @iSequenz int, @bAktiv bit, @daErstellt_am datetime, @daMutiert_am datetime, @iMutierer int, @iCID int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- INSERT a new row in the table. INSERT [dbo].[Plattform] ( [PlattformNr], [ParentID], [Bezeichnung], [Beschreibung], [Sequenz], [Aktiv], [Erstellt_am], [Mutiert_am], [Mutierer], [CID] ) VALUES ( @iPlattformNr, @iParentID, @sBezeichnung, @sBeschreibung, @iSequenz, @bAktiv, @daErstellt_am, @daMutiert_am, @iMutierer, @iCID ) -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Update Stored procedure for updating one single row. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_Plattform_Update]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_Plattform_Update] GO --------------------------------------------------------------------------------- -- Stored procedure that will update an existing row in the table 'Plattform' -- Gets: @iPlattformNr int -- Gets: @iParentID int -- Gets: @sBezeichnung varchar(255) -- Gets: @sBeschreibung varchar(255) -- Gets: @iSequenz int -- Gets: @bAktiv bit -- Gets: @daErstellt_am datetime -- Gets: @daMutiert_am datetime -- Gets: @iMutierer int -- Gets: @iCID int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_Plattform_Update] @iPlattformNr int, @iParentID int, @sBezeichnung varchar(255), @sBeschreibung varchar(255), @iSequenz int, @bAktiv bit, @daErstellt_am datetime, @daMutiert_am datetime, @iMutierer int, @iCID int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- UPDATE an existing row in the table. UPDATE [dbo].[Plattform] SET [ParentID] = @iParentID, [Bezeichnung] = @sBezeichnung, [Beschreibung] = @sBeschreibung, [Sequenz] = @iSequenz, [Aktiv] = @bAktiv, [Erstellt_am] = @daErstellt_am, [Mutiert_am] = @daMutiert_am, [Mutierer] = @iMutierer, [CID] = @iCID WHERE [PlattformNr] = @iPlattformNr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Delete Stored procedure using Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_Plattform_Delete]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_Plattform_Delete] GO --------------------------------------------------------------------------------- -- Stored procedure that will delete an existing row from the table 'Plattform' -- using the Primary Key. -- Gets: @iPlattformNr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_Plattform_Delete] @iPlattformNr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- DELETE an existing row from the table. DELETE FROM [dbo].[Plattform] WHERE [PlattformNr] = @iPlattformNr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select Stored procedure, based on Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_Plattform_SelectOne]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_Plattform_SelectOne] GO --------------------------------------------------------------------------------- -- Stored procedure that will select an existing row from the table 'Plattform' -- based on the Primary Key. -- Gets: @iPlattformNr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_Plattform_SelectOne] @iPlattformNr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT an existing row from the table. SELECT [PlattformNr], [ParentID], [Bezeichnung], [Beschreibung], [Sequenz], [Aktiv], [Erstellt_am], [Mutiert_am], [Mutierer], [CID] FROM [dbo].[Plattform] WHERE [PlattformNr] = @iPlattformNr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select All Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_Plattform_SelectAll]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_Plattform_SelectAll] GO --------------------------------------------------------------------------------- -- Stored procedure that will select all rows from the table 'Plattform' -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_Plattform_SelectAll] @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT all rows from the table. SELECT [PlattformNr], [ParentID], [Bezeichnung], [Beschreibung], [Sequenz], [Aktiv], [Erstellt_am], [Mutiert_am], [Mutierer], [CID] FROM [dbo].[Plattform] ORDER BY [PlattformNr] ASC -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- [End of Stored Procedures for table: Plattform] -- ======================================================================================================== GO -- ======================================================================================================== -- [Stored Procedures generated for table: Server] GO -- //// Insert Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_Server_Insert]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_Server_Insert] GO --------------------------------------------------------------------------------- -- Stored procedure that will insert 1 row in the table 'Server' -- Gets: @iServerNr int -- Gets: @iParentID int -- Gets: @sBezeichnung varchar(255) -- Gets: @sBeschreibung varchar(255) -- Gets: @iSequenz int -- Gets: @bAktiv bit -- Gets: @daErstellt_am datetime -- Gets: @daMutiert_am datetime -- Gets: @iMutierer int -- Gets: @iCID int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_Server_Insert] @iServerNr int, @iParentID int, @sBezeichnung varchar(255), @sBeschreibung varchar(255), @iSequenz int, @bAktiv bit, @daErstellt_am datetime, @daMutiert_am datetime, @iMutierer int, @iCID int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- INSERT a new row in the table. INSERT [dbo].[Server] ( [ServerNr], [ParentID], [Bezeichnung], [Beschreibung], [Sequenz], [Aktiv], [Erstellt_am], [Mutiert_am], [Mutierer], [CID] ) VALUES ( @iServerNr, @iParentID, @sBezeichnung, @sBeschreibung, @iSequenz, @bAktiv, @daErstellt_am, @daMutiert_am, @iMutierer, @iCID ) -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Update Stored procedure for updating one single row. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_Server_Update]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_Server_Update] GO --------------------------------------------------------------------------------- -- Stored procedure that will update an existing row in the table 'Server' -- Gets: @iServerNr int -- Gets: @iParentID int -- Gets: @sBezeichnung varchar(255) -- Gets: @sBeschreibung varchar(255) -- Gets: @iSequenz int -- Gets: @bAktiv bit -- Gets: @daErstellt_am datetime -- Gets: @daMutiert_am datetime -- Gets: @iMutierer int -- Gets: @iCID int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_Server_Update] @iServerNr int, @iParentID int, @sBezeichnung varchar(255), @sBeschreibung varchar(255), @iSequenz int, @bAktiv bit, @daErstellt_am datetime, @daMutiert_am datetime, @iMutierer int, @iCID int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- UPDATE an existing row in the table. UPDATE [dbo].[Server] SET [ParentID] = @iParentID, [Bezeichnung] = @sBezeichnung, [Beschreibung] = @sBeschreibung, [Sequenz] = @iSequenz, [Aktiv] = @bAktiv, [Erstellt_am] = @daErstellt_am, [Mutiert_am] = @daMutiert_am, [Mutierer] = @iMutierer, [CID] = @iCID WHERE [ServerNr] = @iServerNr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Delete Stored procedure using Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_Server_Delete]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_Server_Delete] GO --------------------------------------------------------------------------------- -- Stored procedure that will delete an existing row from the table 'Server' -- using the Primary Key. -- Gets: @iServerNr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_Server_Delete] @iServerNr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- DELETE an existing row from the table. DELETE FROM [dbo].[Server] WHERE [ServerNr] = @iServerNr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select Stored procedure, based on Primary Key. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_Server_SelectOne]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_Server_SelectOne] GO --------------------------------------------------------------------------------- -- Stored procedure that will select an existing row from the table 'Server' -- based on the Primary Key. -- Gets: @iServerNr int -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_Server_SelectOne] @iServerNr int, @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT an existing row from the table. SELECT [ServerNr], [ParentID], [Bezeichnung], [Beschreibung], [Sequenz], [Aktiv], [Erstellt_am], [Mutiert_am], [Mutierer], [CID] FROM [dbo].[Server] WHERE [ServerNr] = @iServerNr -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- //// Select All Stored procedure. if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pr_Server_SelectAll]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[pr_Server_SelectAll] GO --------------------------------------------------------------------------------- -- Stored procedure that will select all rows from the table 'Server' -- Returns: @iErrorCode int --------------------------------------------------------------------------------- CREATE PROCEDURE [dbo].[pr_Server_SelectAll] @iErrorCode int OUTPUT AS SET NOCOUNT ON -- SELECT all rows from the table. SELECT [ServerNr], [ParentID], [Bezeichnung], [Beschreibung], [Sequenz], [Aktiv], [Erstellt_am], [Mutiert_am], [Mutierer], [CID] FROM [dbo].[Server] ORDER BY [ServerNr] ASC -- Get the Error Code for the statement just executed. SELECT @iErrorCode=@@ERROR GO -- [End of Stored Procedures for table: Server] -- ======================================================================================================== GO