Class MsPrivilege
java.lang.Object
org.pgcodekeeper.core.database.base.schema.AbstractPrivilege
org.pgcodekeeper.core.database.ms.schema.MsPrivilege
- All Implemented Interfaces:
IPrivilege,IHashable
Represents a database privilege (GRANT/REVOKE) for MS SQL database object.
Handles privilege operations including creation, dropping, and SQL generation.
-
Field Summary
Fields inherited from interface org.pgcodekeeper.core.database.api.schema.IPrivilege
GRANT, REVOKE, WITH_GRANT_OPTION -
Constructor Summary
ConstructorsConstructorDescriptionMsPrivilege(String state, String permission, String name, String role, boolean isGrantOption) Creates a new privilege instance. -
Method Summary
Methods inherited from class org.pgcodekeeper.core.database.base.schema.AbstractPrivilege
computeHash, equals, getCreationSQL, getDropSQL, getName, getPermission, getRole, hashCode, isRevoke, toString
-
Constructor Details
-
MsPrivilege
public MsPrivilege(String state, String permission, String name, String role, boolean isGrantOption) Creates a new privilege instance.- Parameters:
state- the privilege state (GRANT or REVOKE)permission- the permission type (e.g., SELECT, INSERT, ALL)name- the object name the privilege applies torole- the role receiving or losing the privilegeisGrantOption- whether this privilege includes GRANT OPTION
-