SYSTEM, METHOD AND COMPUTER PROGRAM PRODUCT FOR AUTOMATIC CODE GENERATION FOR DATABASE OBJECT DELETION
First Claim
1. A computer program product, comprising a non-transitory computer usable medium having a computer readable program code embodied therein, the computer readable program code adapted to be executed to implement a method for automatic code generation for database object deletion, the method comprising:
- identifying metadata for a database table;
for objects of the database table, determining an associated delete method, using the metadata;
for each foreign key relationship between the objects of the database table, determining an associated delete constraint, using the metadata; and
automatically generating code for deleting the objects, using the determined delete method and the delete constraint.
1 Assignment
0 Petitions
Accused Products
Abstract
In accordance with embodiments, there are provided mechanisms and methods for automatic code generation for database object deletion. These mechanisms and methods for automatic code generation for database object deletion can generate code for deleting database objects in an automated manner. The ability to generate code for deleting database objects in an automated manner can enable the efficient and accurate deletion of database objects, including database objects with relationships to other database objects.
109 Citations
22 Claims
-
1. A computer program product, comprising a non-transitory computer usable medium having a computer readable program code embodied therein, the computer readable program code adapted to be executed to implement a method for automatic code generation for database object deletion, the method comprising:
-
identifying metadata for a database table; for objects of the database table, determining an associated delete method, using the metadata; for each foreign key relationship between the objects of the database table, determining an associated delete constraint, using the metadata; and automatically generating code for deleting the objects, using the determined delete method and the delete constraint. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. A method, comprising:
-
identifying metadata for a database table; for objects of the database table, determining an associated delete method, using the metadata; for each foreign key relationship between the objects of the database table, determining an associated delete constraint, using the metadata; and automatically generating code for deleting the objects, using the determined delete method and the delete constraint.
-
-
20. An apparatus, comprising:
a processor for; identifying metadata for a database table; for objects of the database table, determining an associated delete method, using the metadata; for each foreign key relationship between the objects of the database table, determining an associated delete constraint, using the metadata; and automatically generating code for deleting the objects, using the determined delete method and the delete constraint.
-
21. A method for transmitting code, comprising:
-
transmitting code for identifying metadata for a database table; transmitting code for determining an associated delete method for objects of the database table, using the metadata; transmitting code for determining an associated delete constraint for each foreign key relationship between the objects of the database table, using the metadata; and transmitting code for automatically generating code for deleting the objects, using the determined delete method and the delete constraint.
-
-
22. A data structure stored on a non-transitory computer readable medium, comprising:
-
a database table; and metadata referenced by the database table, the metadata including a delete method and at least one constraint for use in automatically generating code for deleting objects of the database table.
-
Specification