- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {LocalDateTime l =
new LocalDateTime()
LocalDateTime.now()
DateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
- Smart code suggestions by Codota
}
/** * Take the a String representing an array of ACLs and return * a Hashtable mapping the SQL permission name to a Vector of * usernames who have that permission. */ protected Hashtable parseACL(String aclArray, String owner) { if (aclArray == null) { //null acl is a shortcut for owner having full privs String perms = "arwdRxt"; if (connection.haveMinimumServerVersion("8.2")) { // 8.2 Removed the separate RULE permission perms = "arwdxt"; } else if (connection.haveMinimumServerVersion("8.4")) { // 8.4 Added a separate TRUNCATE permission perms = "arwdDxt"; } aclArray = "{" + owner + "=" + perms + "}"; } Vector acls = parseACLArray(aclArray); Hashtable privileges = new Hashtable(); for (int i = 0; i < acls.size(); i++) { String acl = (String)acls.elementAt(i); addACLPrivileges(acl, privileges); } return privileges; }
/** * Take the a String representing an array of ACLs and return * a Hashtable mapping the SQL permission name to a Vector of * usernames who have that permission. */ protected Hashtable parseACL(String aclArray, String owner) { if (aclArray == null) { //null acl is a shortcut for owner having full privs aclArray = "{" + owner + "=arwdRxt}"; } Vector acls = parseACLArray(aclArray); Hashtable privileges = new Hashtable(); for (int i = 0; i < acls.size(); i++) { String acl = (String)acls.elementAt(i); addACLPrivileges(acl, privileges); } return privileges; }
/** * Take the a String representing an array of ACLs and return * a Hashtable mapping the SQL permission name to a Vector of * usernames who have that permission. */ protected Hashtable parseACL(String aclArray, String owner) { if (aclArray == null) { //null acl is a shortcut for owner having full privs String perms = "arwdRxt"; if (connection.haveMinimumServerVersion("8.2")) { // 8.2 Removed the separate RULE permission perms = "arwdxt"; } else if (connection.haveMinimumServerVersion("8.4")) { // 8.4 Added a separate TRUNCATE permission perms = "arwdDxt"; } aclArray = "{" + owner + "=" + perms + "}"; } Vector acls = parseACLArray(aclArray); Hashtable privileges = new Hashtable(); for (int i = 0; i < acls.size(); i++) { String acl = (String)acls.elementAt(i); addACLPrivileges(acl, privileges); } return privileges; }