Lines Matching refs:JDBCPrincipal
25 * $Id: JDBCPrincipal.java,v 1.2 2008/06/25 05:41:57 qcheng Exp $
36 public class JDBCPrincipal implements Principal, java.io.Serializable {
39 public JDBCPrincipal(String name) {
47 * Returns the JDBC username for this <code>JDBCPrincipal</code>.
49 * @return the JDBC username for this <code>JDBCPrincipal</code>
56 * Returns a string representation of this <code>JDBCPrincipal</code>.
58 * @return a string representation of this <code>JDBCPrincipal</code>.
61 return ("JDBCPrincipal: " + name);
65 * Compares the specified Object with this <code>JDBCPrincipal</code>
67 * <code>JDBCPrincipal</code> and the two JDBCPrincipals have the same
71 * <code>JDBCPrincipal</code>.
74 * <code>JDBCPrincipal</code>.
85 if (!(o instanceof JDBCPrincipal)) {
89 JDBCPrincipal that = (JDBCPrincipal)o;
94 * Returns a hash code for this <code>JDBCPrincipal</code>.
96 * @return a hash code for this <code>JDBCPrincipal</code>.