Tabnine Logo
ByteIdentity.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
javax.jdo.identity.ByteIdentity
constructor

Best Java code snippets using javax.jdo.identity.ByteIdentity.<init> (Showing top 2 results out of 315)

origin: org.datanucleus/datanucleus-api-jdo

public static SingleFieldIdentity getSingleFieldIdentityForDataNucleusIdentity(SingleFieldId dnid, Class targetClass)
{
  if (dnid instanceof LongId)
  {
    return new LongIdentity(targetClass, dnid.toString());
  }
  else if (dnid instanceof IntId)
  {
    return new IntIdentity(targetClass, dnid.toString());
  }
  else if (dnid instanceof ShortId)
  {
    return new ShortIdentity(targetClass, dnid.toString());
  }
  else if (dnid instanceof ByteId)
  {
    return new ByteIdentity(targetClass, dnid.toString());
  }
  else if (dnid instanceof StringId)
  {
    return new StringIdentity(targetClass, dnid.toString());
  }
  else if (dnid instanceof CharId)
  {
    return new CharIdentity(targetClass, dnid.toString());
  }
  return new ObjectIdentity(targetClass, dnid.getKeyAsObject());
}
origin: org.apache.isis.core/isis-core-runtime

  return Byte.parseByte(keyStr);
} else {
  return new ByteIdentity(objectTypeClassFor(oid), keyStr);
javax.jdo.identityByteIdentity<init>

Javadoc

Constructor only for Externalizable.

Popular methods of ByteIdentity

  • assertKeyNotNull
  • construct
    Construct this instance with the key value.
  • setKeyAsObject

Popular in Java

  • Making http requests using okhttp
  • findViewById (Activity)
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (Timer)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now