CharacterType.nullSafeGet
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using org.hibernate.type.CharacterType.nullSafeGet (Showing top 2 results out of 315)

origin: OpenNMS/opennms

@Override
public Object nullSafeGet(final ResultSet rs, final String[] names, final Object owner) throws HibernateException, SQLException {
  Character c = CharacterType.INSTANCE.nullSafeGet(rs, names[0]);
  if (c == null) {
    return null;
  }
  for (NodeLabelSource type : NodeLabelSource.values()) {
    if (type.toString().equals(c.toString())) {
      return type;
    }
  }
  throw new HibernateException("Invalid value for NodeUserType: " + c);
}
origin: OpenNMS/opennms

@Override
public Object nullSafeGet(final ResultSet rs, final String[] names, final Object owner) throws HibernateException, SQLException {
  Character c = CharacterType.INSTANCE.nullSafeGet(rs, names[0]);
  if (c == null) {
    return null;
  }
  for (NodeType type : NodeType.values()) {
    if (type.toString().equals(c.toString())) {
      return type;
    }
  }
  throw new HibernateException("Invalid value for NodeUserType: " + c);
}
org.hibernate.typeCharacterTypenullSafeGet

Popular methods of CharacterType

  • getName
  • fromString
  • toString
  • <init>
  • nullSafeSet

Popular in Java

  • Start an intent from android
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • orElseThrow (Optional)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)