本文整理了Java中org.opensingular.flow.persistence.entity.Actor.setEmail()
方法的一些代码示例,展示了Actor.setEmail()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Actor.setEmail()
方法的具体详情如下:
包路径:org.opensingular.flow.persistence.entity.Actor
类名称:Actor
方法名:setEmail
暂无
代码示例来源:origin: org.opensingular/server-commons
public Actor buscarPorCodUsuario(String username) {
if (username == null) {
return null;
}
Query query = getSession().createSQLQuery(
"select a.CO_ATOR as \"cod\", a.CO_USUARIO as \"codUsuario\", a.NO_ATOR as \"nome\", a.DS_EMAIL as \"email\" " +
" FROM " + Constants.SCHEMA + ".VW_ATOR a " +
" WHERE UPPER(trim(a.CO_USUARIO)) = :codUsuario");
query.setParameter("codUsuario", username.toUpperCase());
Object[] dados = (Object[]) query.uniqueResult();
Actor actor = null;
if (dados != null) {
actor = new Actor();
if (dados[0] != null) {
actor.setCod(((Number) dados[0]).intValue());
}
actor.setCodUsuario(dados[1].toString());
actor.setNome((String) dados[2]);
actor.setEmail((String) dados[3]);
}
return actor;
}
代码示例来源:origin: org.opensingular/singular-requirement-commons
@Override
public Object transformTuple(Object[] objects, String[] strings) {
if (objects == null || objects.length == 0) {
return null;
}
Actor actor = new Actor();
for (int i = 0; i < strings.length; i += 1) {
Object rawObject = objects[i];
switch (strings[i]) {
case COD:
actor.setCod(castToInteger(rawObject));
break;
case COD_USUARIO:
actor.setCodUsuario(String.valueOf(rawObject));
break;
case NOME:
actor.setNome((String) rawObject);
break;
case EMAIL:
actor.setEmail((String) rawObject);
break;
default:
}
}
return actor;
}
代码示例来源:origin: org.opensingular/singular-server-commons
@Override
public Object transformTuple(Object[] objects, String[] strings) {
if (objects == null || objects.length == 0) {
return null;
}
Actor actor = new Actor();
for (int i = 0; i < strings.length; i += 1) {
Object rawObject = objects[i];
switch (strings[i]) {
case COD:
actor.setCod(castToInteger(rawObject));
break;
case COD_USUARIO:
actor.setCodUsuario(String.valueOf(rawObject));
break;
case NOME:
actor.setNome((String) rawObject);
break;
case EMAIL:
actor.setEmail((String) rawObject);
break;
default:
}
}
return actor;
}
代码示例来源:origin: org.opensingular/singular-requirement-module
@Override
public Object transformTuple(Object[] objects, String[] strings) {
if (objects == null || objects.length == 0) {
return null;
}
Actor actor = new Actor();
for (int i = 0; i < strings.length; i += 1) {
Object rawObject = objects[i];
switch (strings[i]) {
case COD:
actor.setCod(castToInteger(rawObject));
break;
case COD_USUARIO:
actor.setCodUsuario(String.valueOf(rawObject));
break;
case NOME:
actor.setNome((String) rawObject);
break;
case EMAIL:
actor.setEmail((String) rawObject);
break;
default:
}
}
return actor;
}
内容来源于网络,如有侵权,请联系作者删除!