1 package com.daffodilwoods.daffodildb.server.datadictionarysystem; 2 3 import com.daffodilwoods.database.resource.*; 4 import com.daffodilwoods.daffodildb.server.sql99.common.*; 5 public interface _PrivilegeTable { 6 int INSERT = 0; 7 int UPDATE = 1; 8 int DELETE = 2; 9 int SELECT = 3; 10 int TRIGGER = 4; 11 int REFERENCES = 5; 12 int EXECUTE = 6; 13 14 15 public static final int NOACCESS = 0; 16 public static final int ONLYRIGHT = 1; 17 public static final int RIGHTWITHGRANTOPTION = 2; 18 19 boolean hasTablePrivileges( int operationType ) throws DException; 20 boolean hasColumnPrivileges( int operationType, int[] columnIndexes ) throws DException; 21 ParameterisedCondition getPrivilegeCondition()throws DException; 22 boolean hasExecutionRights(String specific_catalog, String specific_schema, String specific_name) throws DException; 23 int getColumnPrivilegesType(int columnIndex,int operationType) throws DException; 24 boolean hasColumnPrivilegesWithGrantOption(int columnIndex,int operationType)throws DException; 25 } 26 | Popular Tags |