global without sharing class DummyController { public String getLoginUserLanguage() { return UserInfo.getLanguage(); } // TODO シングルトンに変更 public PersonalEvaluation__c pe { get; set; } public DummyController() { pe = new PersonalEvaluation__c(); } // sql実行、without sharing が必要です @RemoteAction global static List querySql(String sql) { List rsList = Database.query(sql); return rsList; } }