Some small changes
This commit is contained in:
parent
ed7f0eae9a
commit
72d61ddbfc
1 changed files with 3 additions and 3 deletions
|
|
@ -45,7 +45,7 @@ import java.util.logging.Logger;
|
||||||
* <li>Text config: the object configuration is stored as JSON</li>
|
* <li>Text config: the object configuration is stored as JSON</li>
|
||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
public abstract class DBBeanObjectDSO<T> extends DBBean{
|
public abstract class DBBeanObjectDSO<T> extends DBBean {
|
||||||
private static final Logger logger = LogUtil.getLogger();
|
private static final Logger logger = LogUtil.getLogger();
|
||||||
|
|
||||||
// DB parameters
|
// DB parameters
|
||||||
|
|
@ -57,7 +57,6 @@ public abstract class DBBeanObjectDSO<T> extends DBBean{
|
||||||
private transient T cachedObj;
|
private transient T cachedObj;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void postUpdateAction() {
|
protected void postUpdateAction() {
|
||||||
if (type != null && !type.isEmpty()) {
|
if (type != null && !type.isEmpty()) {
|
||||||
|
|
@ -90,7 +89,6 @@ public abstract class DBBeanObjectDSO<T> extends DBBean{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public T getObject() {
|
public T getObject() {
|
||||||
return cachedObj;
|
return cachedObj;
|
||||||
}
|
}
|
||||||
|
|
@ -112,6 +110,7 @@ public abstract class DBBeanObjectDSO<T> extends DBBean{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public String getObjectClass() {
|
public String getObjectClass() {
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
|
|
@ -129,6 +128,7 @@ public abstract class DBBeanObjectDSO<T> extends DBBean{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public Configurator<T> getObjectConfigurator() {
|
public Configurator<T> getObjectConfigurator() {
|
||||||
return new Configurator<>(cachedObj);
|
return new Configurator<>(cachedObj);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue