Examples of ID

The underlying database column may be modeled as either text or as a number. If the underlying column is of a numeric type, however, then a Data Access Object will need to pass Id parameters to {@link hirondelle.web4j.database.Db} using {@link #asInteger} or {@link #asLong}.

Design Note :
This class is final, immutable, {@link Serializable}, and {@link Comparable}, in imitation of the other building block classes such as {@link String}, {@link Integer}, and so on.

  • info.archinnov.achilles.annotations.Id
  • io.crate.analyze.Id
  • javax.help.Map.ID
  • javax.persistence.Id
  • marauroa.common.game.RPObject.ID
  • net.fortuna.ical4j.vcard.Property.Id
  • net.jcores.jre.options.ID
    The type of ID requested. @author Ralf Biedert
  • net.sourceforge.jpaxjc.ns.persistence.orm.Id
  • open.dolphin.infomodel.ID
    ID @author Kazushi Minagawa, Digital Globe, Inc.
  • operators.ID
    @author smbourge
  • org.apache.axis.types.Id
    g/TR/xmlschema-2/#ID">XML Schema 3.3.8
  • org.apache.axis2.databinding.types.Id
    org/TR/xmlschema-2/#ID">XML Schema 3.3.8
  • org.apache.jackrabbit.mk.model.Id
    Represents an internal identifier, uniquely identifying a {@link Node} or a {@link Commit}.

    This implementation aims at minimizing the in-memory footprint of an identifier instance. therefore it doesn't cache e.g. the hashCode or the string representation.

    Important Note:

    An {@link Id} is considered immutable. The {@code byte[]}passed to {@link Id#Id(byte[])} must not be reused or modified, the sameapplies for the {@code byte[]} returned by {@link Id#getBytes()}.

  • org.apache.openejb.config.provider.ID
    IDs are not case-sensitive
  • org.apache.openejb.jee.jpa.Id
    3.org/2001/XMLSchema}anyType"> <sequence> <element name="column" type="{http://java.sun.com/xml/ns/persistence/orm}column" minOccurs="0"/> <element name="generated-value" type="{http://java.sun.com/xml/ns/persistence/orm}generated-value" minOccurs="0"/> <element name="temporal" type="{http://java.sun.com/xml/ns/persistence/orm}temporal" minOccurs="0"/> <element name="table-generator" type="{http://java.sun.com/xml/ns/persistence/orm}table-generator" minOccurs="0"/> <element name="sequence-generator" type="{http://java.sun.com/xml/ns/persistence/orm}sequence-generator" minOccurs="0"/> </sequence> <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="access" type="{http://java.sun.com/xml/ns/persistence/orm}access-type" /> </restriction> </complexContent> </complexType>
  • org.apache.openjpa.util.Id
    Datastore identity type. Implementations may choose to use this type, or choose to use their own datastore identity values. @author Abe White
  • org.apache.tapestry.annotations.Id
  • org.apache.tapestry.ioc.annotations.Id
  • org.apache.tapestry5.annotations.Id
    A mixin for a text field that allows for autocompletion of text fields. This is based on Prototype's autocompleter control.

    The mixin renders an (initially invisible) progress indicator after the field (it will also be after the error icon most fields render). The progress indicator is made visible during the request to the server. The mixin then renders a <div> that will be filled in on the client side with dynamically obtained selections.

    Multiple selection on the client is enabled by binding the tokens parameter (however, the mixin doesn't help split multiple selections up on the server, that is still your code's responsibility).

    The container is responsible for providing an event handler for event "providecompletions". The context will be the partial input string sent from the client. The return value should be an array or list of completions, in presentation order. I.e.

     String[] onProvideCompletionsFromMyField(String input) { return . . .; } 
  • org.apache.zookeeper.data.Id
  • org.apache.zookeeper_voltpatches.data.Id
  • org.dmlite.model.id.Id
    Entity id. Id is a user oriented, semantical identifier that is a combination of properties and/or parent neighbors. @version 2006-11-03 @author Dzenan Ridjanovic
  • org.eclipse.ecf.core.identity.ID
    Contract for ECF identity

    ECF IDs are immutable once constructed, and unique within the containing {@link Namespace}.

    ID instances are created via the Namespace.createInstance(...) method. This method is called by the IDFactory.createID(...) methods for the given Namespace. So, for example, to create an ID instance with the name "slewis":

     ID id = IDFactory.getDefault().createID(namespace, "slewis"); 

    @see Namespace

  • org.hibernate.jpamodelgen.xml.jaxb.Id
    3.org/2001/XMLSchema}anyType"> <sequence> <element name="column" type="{http://java.sun.com/xml/ns/persistence/orm}column" minOccurs="0"/> <element name="generated-value" type="{http://java.sun.com/xml/ns/persistence/orm}generated-value" minOccurs="0"/> <element name="temporal" type="{http://java.sun.com/xml/ns/persistence/orm}temporal" minOccurs="0"/> <element name="table-generator" type="{http://java.sun.com/xml/ns/persistence/orm}table-generator" minOccurs="0"/> <element name="sequence-generator" type="{http://java.sun.com/xml/ns/persistence/orm}sequence-generator" minOccurs="0"/> </sequence> <attribute name="access" type="{http://java.sun.com/xml/ns/persistence/orm}access-type" /> <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType>
  • org.hibernate.test.cid.LineItem.Id
  • org.jongo.marshall.jackson.oid.Id
  • org.jruby.common.IRubyWarnings.ID
  • org.locationtech.udig.catalog.ID
    Identifier used to lookup entries in an local IRespository or remote ISearch.

    While an identifier is often defined by URL or URI this class has constructors to help remove any possibility ambiguity. These objects are considered immutable and are very careful to have a fast hashCode function etc...

    @author Jody Garnett @since 1.2
  • org.nutz.dao.entity.annotation.Id
  • org.objectstyle.woenvironment.pb.PBXProject.ObjectsTable.ID
  • org.onebusaway.transit_data_federation.services.service_alerts.ServiceAlerts.Id
  • org.opengis.filter.Id
    FeatureId idCapabilities.hasEID() == true; // no idea ... @author Chris Dillard (SYS Technologies) @author Justin Deoliveira (The Open Planning Project) @source $URL$
  • org.rococoa.ID
    Represents an Objective-C ID. This extends NativeLong for efficiency, but you should really think of it as opaque. Technically, this should be {@link Native#POINTER_SIZE} not {@link Native#LONG_SIZE}, but as they are both 32 on 32-bit and 64 on 64-bit we'll gloss over that. Ideally it would be Pointer, but they have no protected constructors.
  • org.structr.rest.serialization.html.attr.Id
    @author Christian Morgner
  • org.zkoss.test.Id
    @author sam
  • rice.p2p.commonapi.Id
  • shillelagh.Id
  • siena.Id
  • wyfs.lang.Path.ID

  • Examples of siena.Id

       
        return entity;
      }
     
      public static void setIdFromKey(Field idField, Object obj, Key key) {
        Id id = idField.getAnnotation(Id.class);
        Class<?> type = idField.getType();
        if(id != null){
          switch(id.value()) {
          case NONE:
            //idField.setAccessible(true);
            Object val = null;
            if (Long.TYPE==type || Long.class.isAssignableFrom(type)){
              val = Long.parseLong((String) key.getName());
            }
            else if (String.class.isAssignableFrom(type)){
              val = key.getName();
            }
            else{
              throw new SienaRestrictedApiException("DB", "setKey", "Id Type "+idField.getType()+ " not supported");
            }
             
            Util.setField(obj, idField, val);
            break;
          case AUTO_INCREMENT:
            // Long value means key.getId()
            if (Long.TYPE==type || Long.class.isAssignableFrom(idField.getType())){
              Util.setField(obj, idField, key.getId());
            }else {
              idField.setAccessible(true);
              Object val2 = null;
              if (Long.TYPE==type || Long.class.isAssignableFrom(idField.getType())){
                val = Long.parseLong((String) key.getName());
              }
              else if (String.class.isAssignableFrom(idField.getType())){
                val = key.getName();
              }
              else{
                throw new SienaRestrictedApiException("DB", "setKey", "Id Type "+idField.getType()+ " not supported");
              }
               
              Util.setField(obj, idField, val2);
            }
            break;
          case UUID:
            Util.setField(obj, idField, key.getName());
            break;
          default:
            throw new SienaException("Id Generator "+id.value()+ " not supported");
          }
        }
        else throw new SienaException("Field " + idField.getName() + " is not an @Id field");
      }
    View Full Code Here

    Examples of siena.Id

          if(value == null) return null;
         
          Class<?> type = idField.getType();
         
          if(idField.isAnnotationPresent(Id.class)){
            Id id = idField.getAnnotation(Id.class);
            switch(id.value()) {
            case NONE:
              // long or string goes toString
              return KeyFactory.createKey(
                ClassInfo.getClassInfo(clazz).tableName,
                value.toString());
            case AUTO_INCREMENT:
              // as a string with auto_increment can't exist, it is not cast into long
              if (Long.TYPE == type || Long.class.isAssignableFrom(type)){
                return KeyFactory.createKey(
                  ClassInfo.getClassInfo(clazz).tableName,
                  (Long)value);
              }
              return KeyFactory.createKey(
                ClassInfo.getClassInfo(clazz).tableName,
                value.toString());
             
            case UUID:
              return KeyFactory.createKey(
                ClassInfo.getClassInfo(clazz).tableName,
                value.toString());
            default:
              throw new SienaException("Id Generator "+id.value()+ " not supported");
            }
          }
          else throw new SienaException("Field " + idField.getName() + " is not an @Id field");
        } catch (Exception e) {
          throw new SienaException(e);
    View Full Code Here

    Examples of siena.Id

          if(value == null) return null;
         
          Class<?> type = idField.getType();
         
          if(idField.isAnnotationPresent(Id.class)){
            Id id = idField.getAnnotation(Id.class);
            switch(id.value()) {
            case NONE:
              // long or string goes toString
              return KeyFactory.createKey(
                  parentKey,
                  getKindWithAncestorField(info, parentInfo, parentField),
                  value.toString());
            case AUTO_INCREMENT:
              // as a string with auto_increment can't exist, it is not cast into long
              if (Long.TYPE == type || Long.class.isAssignableFrom(type)){
                return KeyFactory.createKey(
                    parentKey,
                    getKindWithAncestorField(info, parentInfo, parentField),
                    (Long)value);
              }
              return KeyFactory.createKey(
                  parentKey,
                  getKindWithAncestorField(info, parentInfo, parentField),
                  value.toString());
             
            case UUID:
              return KeyFactory.createKey(
                  parentKey,
                  getKindWithAncestorField(info, parentInfo, parentField),
                  value.toString());
            default:
              throw new SienaException("Id Generator "+id.value()+ " not supported");
            }
          }
          else throw new SienaException("Field " + idField.getName() + " is not an @Id field");
        } catch (Exception e) {
          throw new SienaException(e);
    View Full Code Here

    Examples of siena.Id

       
        try {
          Field idField = info.getIdField();
         
          if(idField.isAnnotationPresent(Id.class)){
            Id id = idField.getAnnotation(Id.class);
            switch(id.value()) {
            case NONE:
              // long or string goes toString
              return KeyFactory.createKey(
                  ClassInfo.getClassInfo(clazz).tableName,
                  idVal.toString());
            case AUTO_INCREMENT:
              Class<?> type = idField.getType();
              // as a string with auto_increment can't exist, it is not cast into long
              if (Long.TYPE==type || Long.class.isAssignableFrom(type)){
                return KeyFactory.createKey(
                  ClassInfo.getClassInfo(clazz).tableName,
                  (Long)idVal);
              }
              return KeyFactory.createKey(
                ClassInfo.getClassInfo(clazz).tableName,
                idVal.toString());
            case UUID:
              return KeyFactory.createKey(
                ClassInfo.getClassInfo(clazz).tableName,
                idVal.toString());
            default:
              throw new SienaException("Id Generator "+id.value()+ " not supported");
            }
          }
          else throw new SienaException("Field " + idField.getName() + " is not an @Id field");
        } catch (Exception e) {
          throw new SienaException(e);
    View Full Code Here

    Examples of siena.Id

          Object idVal = Util.readField(object, idField);
          if(idVal == null)
            throw new SienaException("Id Field " + idField.getName() + " value null");
         
          if(idField.isAnnotationPresent(Id.class)){
            Id id = idField.getAnnotation(Id.class);
            switch(id.value()) {
            case NONE:
              // long or string goes toString
              return KeyFactory.createKey(
                  parentKey,
                  getKindWithAncestorField(info, parentInfo, parentField),
                  idVal.toString());
            case AUTO_INCREMENT:
              Class<?> type = idField.getType();
              // as a string with auto_increment can't exist, it is not cast into long
              if (Long.TYPE==type || Long.class.isAssignableFrom(type)){
                return KeyFactory.createKey(
                  parentKey,
                  getKindWithAncestorField(info, parentInfo, parentField),
                  (Long)idVal);
              }
              return KeyFactory.createKey(
                  parentKey,
                  getKindWithAncestorField(info, parentInfo, parentField),
                  idVal.toString());
            case UUID:
              return KeyFactory.createKey(
                  parentKey,
                  getKindWithAncestorField(info, parentInfo, parentField),
                  idVal.toString());
            default:
              throw new SienaException("Id Generator "+id.value()+ " not supported");
            }
          }
          else throw new SienaException("Field " + idField.getName() + " is not an @Id field");
        } catch (Exception e) {
          throw new SienaException(e);
    View Full Code Here

    Examples of wyfs.lang.Path.ID

      @Override
      public <T> Path.Entry<T> get(ID eid, Content.Type<T> ct) throws IOException{
        updateContents();

        ID tid = id.append(eid.get(0));

        int idx = binarySearch(contents,nentries,tid);
        if(idx >= 0) {
          // At this point, we've found a matching index for the given ID.
          // However, there maybe multiple matching IDs with different
    View Full Code Here
    TOP
    Copyright © 2018 www.massapi.com. All rights reserved.
    All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.