Tabnine Logo
ByteIdentity
Code IndexAdd Tabnine to your IDE (free)

How to use
ByteIdentity
in
javax.jdo.identity

Best Java code snippets using javax.jdo.identity.ByteIdentity (Showing top 8 results out of 315)

origin: org.datanucleus/javax.jdo

/** Constructor with class and key.
 * @param pcClass the target class
 * @param str the key
 */
public ByteIdentity(Class pcClass, String str) {
  super(pcClass);
  assertKeyNotNull(str);
  construct(Byte.parseByte(str));
}
origin: javax.jdo/jdo-api

/** Constructor with class and key.
 * @param pcClass the target class
 * @param key the key
 */
public ByteIdentity(Class pcClass, Byte key) {
  super(pcClass);
  setKeyAsObject(key);
  construct(key.byteValue());
}
origin: javax.jdo/jdo-api

/** Constructor with class and key.
 * @param pcClass the target class
 * @param key the key
 */
public ByteIdentity(Class pcClass, byte key) {
  super(pcClass);
  construct(key);
}

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.datanucleus/javax.jdo

/** Constructor with class and key.
 * @param pcClass the target class
 * @param key the key
 */
public ByteIdentity(Class pcClass, byte key) {
  super(pcClass);
  construct(key);
}

origin: org.apache.isis.core/isis-core-runtime

  return Byte.parseByte(keyStr);
} else {
  return new ByteIdentity(objectTypeClassFor(oid), keyStr);
origin: javax.jdo/jdo-api

/** Constructor with class and key.
 * @param pcClass the target class
 * @param str the key
 */
public ByteIdentity(Class pcClass, String str) {
  super(pcClass);
  assertKeyNotNull(str);
  construct(Byte.parseByte(str));
}
origin: org.datanucleus/javax.jdo

/** Constructor with class and key.
 * @param pcClass the target class
 * @param key the key
 */
public ByteIdentity(Class pcClass, Byte key) {
  super(pcClass);
  setKeyAsObject(key);
  construct(key.byteValue());
}
javax.jdo.identityByteIdentity

Javadoc

This class is for identity with a single byte field.

Most used methods

  • <init>
    Constructor with class and key.
  • assertKeyNotNull
  • construct
    Construct this instance with the key value.
  • setKeyAsObject

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (Timer)
  • findViewById (Activity)
  • getSystemService (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • 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