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 org.opengis.filter.Id

            public void run() {
                IStructuredSelection selection = ((IStructuredSelection)table.getSelection());
                if( selection == null || selection.isEmpty() || table.getSelectionCount()==0 )
                    return;
               
                Id filter=(Id) selection.getFirstElement();

                CompositeCommand composite;
                if( table.getSelectionCount()==1 ){
                    composite = deleteFeature();
                }else{
    View Full Code Here

    Examples of org.rococoa.ID

       
        @Test public void returnedNSObjectIsNotRetainedIfMethodImpliesWeOwnIt() {
      // This is difficult to unit test, as we cannot create FunctionResultContext's.
      // Instead we step back look at the results through Foundation.send, which
      // routes through the converter.
      ID idClass = Foundation.getClass("NSObject");
      assertRetainCount(1, Foundation.send(idClass, "alloc", NSObject.class)); // not in the pool, so just one for Java
        }
    View Full Code Here

    Examples of org.structr.rest.serialization.html.attr.Id

        attrs.addAll(Arrays.asList(attr));
        return this;
      }
     
      public Tag id(String id) {
        attr(new Id(id));
        return this;
      }
    View Full Code Here

    Examples of org.zkoss.test.Id

      private final Injector injector;
     
      @Inject
      public Spreadsheet (@Named("Spreadsheet Id") String spreadsheetId, Injector injector,
          Cell.Factory cellFactory, JQueryFactory jqFactory, ConditionalTimeBlocker timeBlocker, WebDriver webDriver) {
        super(new Id(spreadsheetId), jqFactory, timeBlocker, webDriver);
       
        this.cellFactory = cellFactory;
        this.injector = injector;
      }
    View Full Code Here

    Examples of rice.p2p.commonapi.Id

              new BrokerSideReceiverHandler(), cfg);
        }
      }

      public void send(String key, Message message) {
        Id id = idFactory.buildId(key);
        log.debug("Sending message with id: " + id.toStringFull());
        final Counter counter = new Counter(1);
        this.endpoint.route(id, message, null, new DeliveryNotification() {

          public void sendFailed(MessageReceipt arg0, Exception arg1) {
            log.warn("Failed to send the message");
    View Full Code Here

    Examples of shillelagh.Id

      }

      /** Check if the element has the @Id annotation if it does use that for it's id */
      private void checkForTableId(TableObject tableObject, Element element) {
        // Check if user wants to use an id other than _id
        Id idAnnotation = element.getAnnotation(Id.class);
        if (idAnnotation != null) {
          if (element.asType().getKind() != TypeKind.LONG
              && !("java.lang.Long".equals(element.asType().toString()))) {
            logger.e("@Id must be on a long");
          }
    View Full Code Here

    Examples of siena.Id

            if (siena.ClassInfo.isModel(clazz)) {
                String keyName = SienaModelUtils.keyName(clazz);
                String idKey = name + "." + keyName;
                if (params.containsKey(idKey) && params.get(idKey).length > 0 && params.get(idKey)[0] != null && params.get(idKey)[0].trim().length() > 0) {
                  Field idField = SienaModelUtils.keyField(clazz);
                  Id idAnn = idField.getAnnotation(Id.class);
              if(idAnn != null && idAnn.value() == Generator.AUTO_INCREMENT) {
                // ONLY long ID can be auto_incremented
                      String id = params.get(idKey)[0];
                      try {
                          siena.Query<?> query = pm().createQuery(clazz).filter(keyName,
                              play.data.binding.Binder.directBind(name, annotations, id + "", SienaModelUtils.keyType(clazz)));
    View Full Code Here

    Examples of siena.Id

            if (value != null && ClassInfo.isModel(value.getClass())) {
              Key key = GaeMappingUtils.getKey(value);
              q.addFilter(propertyName, op, key);
            } else {
              if (ClassInfo.isId(f)) {
                Id id = f.getAnnotation(Id.class);
                switch(id.value()) {
                case NONE:
                  if(value != null){
                    if(!Collection.class.isAssignableFrom(value.getClass())){
                      // long or string goes toString
                      Key key;
                      if(parentKey == null){
                        key = KeyFactory.createKey(
                          q.getKind(),
                          value.toString());
                      }else {
                        key = KeyFactory.createKey(
                            parentKey,
                            q.getKind(),
                            value.toString());
                      }
                      q.addFilter(Entity.KEY_RESERVED_PROPERTY, op, key);
                    }else {
                      List<Key> keys = new ArrayList<Key>();
                      for(Object val: (Collection<?>)value) {
                        if(parentKey == null){
                          keys.add(KeyFactory.createKey(q.getKind(), val.toString()));
                        }else {
                          keys.add(KeyFactory.createKey(parentKey, q.getKind(), val.toString()));
                        }
                      }
                      q.addFilter(Entity.KEY_RESERVED_PROPERTY, op, keys);
                    }
                  }
                  break;
                case AUTO_INCREMENT:
                  if(value != null){
                    if(!Collection.class.isAssignableFrom(value.getClass())){
                      Key key;
                      Class<?> type = f.getType();
     
                      if(Long.TYPE == type || Long.class.isAssignableFrom(type)){
                        if(parentKey == null){
                          key = KeyFactory.createKey(
                              q.getKind(),
                              (Long)value);
                        }else {
                          key = KeyFactory.createKey(
                              parentKey,
                              q.getKind(),
                              (Long)value);
                        }
                      } else {
                        if(parentKey == null){
                          key = KeyFactory.createKey(
                            q.getKind(),
                            value.toString());
                        }else {
                          key = KeyFactory.createKey(
                              parentKey,
                              q.getKind(),
                              value.toString());
                        }
                      }
                     
                      q.addFilter(Entity.KEY_RESERVED_PROPERTY, op, key);
                    }else {
                      List<Key> keys = new ArrayList<Key>();
                      for(Object val: (Collection<?>)value) {
                        if (value instanceof String)
                          val = Long.parseLong((String) val);
                        if(parentKey == null){
                          keys.add(KeyFactory.createKey(q.getKind(), (Long)val));
                        }else {
                          keys.add(KeyFactory.createKey(parentKey, q.getKind(), (Long)val));
                        }
                      }
                      q.addFilter(Entity.KEY_RESERVED_PROPERTY, op, keys);
                    }
                  }
                  break;
                case UUID:
                  if(value != null) {
                    if(!Collection.class.isAssignableFrom(value.getClass())){
                      // long or string goes toString
                      Key key;
                      if(parentKey == null){
                        key = KeyFactory.createKey(
                            q.getKind(),
                            value.toString());
                      }else {
                        key = KeyFactory.createKey(
                            parentKey,
                            q.getKind(),
                            value.toString());
                      }
                      q.addFilter(Entity.KEY_RESERVED_PROPERTY, op, key);
                    }else {
                      List<Key> keys = new ArrayList<Key>();
                      for(Object val: (Collection<?>)value) {
                        keys.add(KeyFactory.createKey(q.getKind(), val.toString()));
                      }
                      q.addFilter(Entity.KEY_RESERVED_PROPERTY, op, keys);
                    }
                  }
                  break;
                default:
                  throw new SienaException("Id Generator "+id.value()+ " not supported");
                }
       
              } else if (Enum.class.isAssignableFrom(f.getType())) {
                value = value.toString();
                q.addFilter(propertyName, op, value);
    View Full Code Here

    Examples of siena.Id

    public class GaeMappingUtils {
     
      public static Entity createEntityInstance(Field idField, ClassInfo info, Object obj){
        Entity entity = null;
        Id id = idField.getAnnotation(Id.class);
        Class<?> type = idField.getType();

        if(id != null){
          switch(id.value()) {
          case NONE:
            Object idVal = null;
            idVal = Util.readField(obj, idField);
            if(idVal == null)
              throw new SienaException("Id Field " + idField.getName() + " value null");
            String keyVal = Util.toString(idField, idVal);       
            entity = new Entity(info.tableName, keyVal);
            break;
          case AUTO_INCREMENT:
            // manages String ID as not long!!!
            if(Long.TYPE == type || Long.class.isAssignableFrom(type)){
              entity = new Entity(info.tableName);
            }else {
              Object idStringVal = null;
              idStringVal = Util.readField(obj, idField);
              if(idStringVal == null)
                throw new SienaException("Id Field " + idField.getName() + " value null");
              String keyStringVal = Util.toString(idField, idStringVal);       
              entity = new Entity(info.tableName, keyStringVal);
            }
            break;
          case UUID:
            entity = new Entity(info.tableName, UUID.randomUUID().toString());
            break;
          default:
            throw new SienaRestrictedApiException("DB", "createEntityInstance", "Id Generator "+id.value()+ " not supported");
          }
        }
        else throw new SienaException("Field " + idField.getName() + " is not an @Id field");
       
        return entity;
    View Full Code Here

    Examples of siena.Id

     
      public static Entity createEntityInstanceFromParent(
          Field idField, ClassInfo info, Object obj,
          Key parentKey, ClassInfo parentInfo, Field parentField){
        Entity entity = null;
        Id id = idField.getAnnotation(Id.class);
        Class<?> type = idField.getType();

        if(id != null){
          switch(id.value()) {
          case NONE:
            Object idVal = null;
            idVal = Util.readField(obj, idField);
            if(idVal == null)
              throw new SienaException("Id Field " + idField.getName() + " value null");
            String keyVal = Util.toString(idField, idVal);       
            entity = new Entity(getKindWithAncestorField(info, parentInfo, parentField), keyVal, parentKey);
            break;
          case AUTO_INCREMENT:
            // manages String ID as not long!!!
            if(Long.TYPE == type || Long.class.isAssignableFrom(type)){
              entity = new Entity(getKindWithAncestorField(info, parentInfo, parentField), parentKey);
            }else {
              Object idStringVal = null;
              idStringVal = Util.readField(obj, idField);
              if(idStringVal == null)
                throw new SienaException("Id Field " + idField.getName() + " value null");
              String keyStringVal = Util.toString(idField, idStringVal);       
              entity = new Entity(getKindWithAncestorField(info, parentInfo, parentField), keyStringVal, parentKey);
            }
            break;
          case UUID:
            entity = new Entity(getKindWithAncestorField(info, parentInfo, parentField), UUID.randomUUID().toString(), parentKey);
            break;
          default:
            throw new SienaRestrictedApiException("DB", "createEntityInstance", "Id Generator "+id.value()+ " not supported");
          }
        }
        else throw new SienaException("Field " + idField.getName() + " is not an @Id field");
       
        return entity;
    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.