[#6838] An internal representation of UserImpl rectified to Name's type
This commit is contained in:
parent
09df218577
commit
cf1dd67eca
@ -9,5 +9,5 @@ public interface User {
|
||||
/**
|
||||
* The name of user
|
||||
*/
|
||||
public String getName();
|
||||
public Name getName();
|
||||
}
|
||||
|
||||
@ -7858,11 +7858,11 @@ public class DSL {
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
public static User user(String name) {
|
||||
return new UserImpl(name);
|
||||
return new UserImpl(name(name));
|
||||
}
|
||||
|
||||
public static User user(Name name) {
|
||||
return new UserImpl(name.toString());
|
||||
return new UserImpl(name);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
package org.jooq.impl;
|
||||
|
||||
import org.jooq.Name;
|
||||
import org.jooq.User;
|
||||
|
||||
/**
|
||||
@ -8,14 +9,14 @@ import org.jooq.User;
|
||||
* @author Timur Shaidullin
|
||||
*/
|
||||
public class UserImpl implements User {
|
||||
private String name;
|
||||
private Name name;
|
||||
|
||||
public UserImpl(String name) {
|
||||
public UserImpl(Name name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
public Name getName() {
|
||||
return name;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user