| 1 package com.daffodilwoods.daffodildb.server.datadictionarysystem; 2 3 import com.daffodilwoods.database.resource.DException; 4 import com.daffodilwoods.daffodildb.server.sql99.common.ParameterisedCondition; 5 import com.daffodilwoods.daffodildb.server.sql99.utils.VariableValues; 6 import com.daffodilwoods.daffodildb.server.sql99.expression.booleanvalueexpression.booleanvalueexpression; 7 import com.daffodilwoods.daffodildb.server.sql99.ddl.descriptors.QueryGetter; 8 9 public class SystemPrivilegeTable implements _PrivilegeTable { 10 PreparedStatementGetter preparedStatementGetter; 11 booleanvalueexpression condition; 12 13 public SystemPrivilegeTable( PreparedStatementGetter preparedStatementGetter0) throws DException{ 14 preparedStatementGetter = preparedStatementGetter0; 15 condition = QueryGetter.getPrivilegeCondition(); 16 } 17 18 public boolean hasTablePrivileges(int parm1) throws DException { 19 return true; 20 } 21 public boolean hasColumnPrivileges(int parm1, int[] parm2) throws DException { 22 return true; 23 } 24 public ParameterisedCondition getPrivilegeCondition() throws DException { 25 ParameterisedCondition pc = new ParameterisedCondition(); 26 pc.setBVE(condition); 27 VariableValues vv = new VariableValues(preparedStatementGetter.serverSession); 28 pc.setVariableValues(vv); 29 return pc; 30 } 31 public boolean hasExecutionRights(String parm1, String parm2, String parm3) throws DException { 32 return true; 33 } 34 35 public int getColumnPrivilegesType(int columnIndex,int operationType) throws DException{ 36 return RIGHTWITHGRANTOPTION; 37 } 38 39 public boolean hasColumnPrivilegesWithGrantOption(int columnIndex,int operationType) 40 throws DException { 41 return true; 42 } 43 44 } 45 | Popular Tags |