我的数据库中有一个包含100列的表.我想创建一个触发器来审核每个更新操作的修改.
我能想到的是为所有列创建update子句,但它们都是类似的脚本.那么有没有优雅的方法呢?
为了在JIRA中编辑项目的版本号,我需要"项目管理员"权限.
如何检查我是否拥有此权限?我可以获得项目权限列表吗?
(我可以在用户配置文件中看到我所属的组列表,但不能看到与任何组关联的权限)
编辑:根据文档,它是编辑项目版本所需的"管理项目"权限.
如何将成员字段设为私有此特定对象?即,此对象可以读取和修改该值,但同一类的其他对象不能.
例如
class Person
{
// don't mind sharing these with other persons :
private integer houseNumber;
private integer telephoneNumber;
// would like this to be *really private*
// (only visible / modifiable to this instance)
private integer bankBalance;
// Lots of code for interaction with other persons:
// (e.g. maintained by co-workers)
void interact1(Person person)
{
//Lots of code
}
void interact2(Person person)
{
//Lots of code
}
//...
void interactN(Person person)
{
//Lots of …
Run Code Online (Sandbox Code Playgroud)