Examples of state()


Examples of org.qi4j.api.entity.EntityDescriptor.state()

                key( "version" ).value( identity ).
                key( "modified" ).value( lastModified ).
                key( "properties" ).object();
            EntityDescriptor entityType = state.entityDescriptor();
            JSONWriterSerializer serializer = new JSONWriterSerializer( json );
            for( PropertyDescriptor persistentProperty : entityType.state().properties() )
            {
                Object value = state.properties().get( persistentProperty.qualifiedName() );
                json.key( persistentProperty.qualifiedName().name() );
                serializer.serialize( value, persistentProperty.valueType() );
            }
View Full Code Here

Examples of org.qi4j.api.entity.EntityDescriptor.state()

                throw new EntityTypeNotFoundException( type );
            }

            Map<QualifiedName, Object> properties = new HashMap<QualifiedName, Object>();
            JSONObject props = jsonObject.getJSONObject( "properties" );
            for( PropertyDescriptor propertyDescriptor : entityDescriptor.state().properties() )
            {
                Object jsonValue;
                try
                {
                    jsonValue = props.get( propertyDescriptor.qualifiedName().name() );
View Full Code Here

Examples of org.qi4j.api.entity.EntityDescriptor.state()

                }
            }

            Map<QualifiedName, EntityReference> associations = new HashMap<QualifiedName, EntityReference>();
            JSONObject assocs = jsonObject.getJSONObject( "associations" );
            for( AssociationDescriptor associationType : entityDescriptor.state().associations() )
            {
                try
                {
                    Object jsonValue = assocs.get( associationType.qualifiedName().name() );
                    EntityReference value = jsonValue == JSONObject.NULL ? null : EntityReference.parseEntityReference(
View Full Code Here

Examples of org.qi4j.api.entity.EntityDescriptor.state()

                }
            }

            JSONObject manyAssocs = jsonObject.getJSONObject( "manyassociations" );
            Map<QualifiedName, List<EntityReference>> manyAssociations = new HashMap<QualifiedName, List<EntityReference>>();
            for( AssociationDescriptor manyAssociationType : entityDescriptor.state().manyAssociations() )
            {
                List<EntityReference> references = new ArrayList<EntityReference>();
                try
                {
                    JSONArray jsonValues = manyAssocs.getJSONArray( manyAssociationType.qualifiedName().name() );
View Full Code Here

Examples of org.qi4j.api.value.ValueDescriptor.state()

                                {
                                    return vTypeClass.isAssignableFrom( item );
                                }
                            }, vDesc.types() ) )
                            {
                                for( PropertyDescriptor subPDesc : vDesc.state().properties() )
                                {
                                    this.processPropertyTypeForQNames( //
                                        subPDesc, //
                                        qNameInfos, //
                                        newQNames, //
View Full Code Here

Examples of org.qi4j.spi.entitystore.helpers.JSONEntityState.state()

    private Representation representJson( EntityState entityState )
    {
        if( entityState instanceof JSONEntityState )
        {
            JSONEntityState jsonState = (JSONEntityState) entityState;
            return new StringRepresentation( jsonState.state().toString(), MediaType.APPLICATION_JSON );
        }
        else
        {
            throw new ResourceException( Status.CLIENT_ERROR_NOT_ACCEPTABLE );
        }
View Full Code Here

Examples of org.rzo.yajsw.wrapper.WrappedService.state()

  private static void doState()
  {
    prepareProperties();
    WrappedService w = getService();
    int state = w.state();
    System.out.print("Name        : ");
    System.out.println(w.getServiceName());
    System.out.print("Installed   : ");
    System.out.println(w.isInstalled(state));
    System.out.print("Running     : ");
View Full Code Here

Examples of org.rzo.yajsw.wrapper.WrappedService.state()

  private static void doStateSilent()
  {
    prepareProperties();
    WrappedService w = getService();
    w.init();
    int state = w.state();
  }

  private static void doStatePosix()
  {
    prepareProperties();
View Full Code Here

Examples of org.rzo.yajsw.wrapper.WrappedService.state()

  private static void doStatePosix()
  {
    prepareProperties();
    WrappedService w = getService();
    int state = w.state();
    if (w.isRunning(state))
      _exitCode = 0;
    else
      _exitCode = 3;
    _exitOnTerminate = true;
View Full Code Here

Examples of sos.spooler.Order.state()

    final String  conMethodName  = conClassName + "::getNodeName";
    String lstrNodeName = "";
    Order objCurrentOrder = spooler_task.order();
   
    if (objCurrentOrder != null) {
      lstrNodeName = objCurrentOrder.state();
      logger.info (String.format("%1$s: Current NodeName is '%2$s'.", conMethodName, lstrNodeName));
    }
    else {
      Job objCurrentJob = spooler_task.job();
      lstrNodeName = objCurrentJob.name();
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.