you will have to make some changes to the schema itself, adding a simple type named poid (derived from nmtoken) with a pattern set to po\d{2}-\d{8}.
您需要对方案本身做一些变更,将一个带有模式集合的名为poid 的简单类型(出自于nmtoken)添加到po\d{2}-\d{8} 中。
we can provide clients an easy to use in-process component, which will be responsible for service location and communication, and poid block management.
我们可以为客户机提供一种易用的进程内(in-process)组件(负责服务定位和通信)以及poid块管理。
that is to say, under no circumstances shall a non-unique poid be dispensed to a client.
也就是说,在任何情况下都不能给客户机分配不唯一的poid。
clients will need to handle exceptions when requesting poids, since getting a poid could result in a remote call.
请求 poid时,客户机需要处理异常情况,因为获取poid可能会导致远程调用。
in particular, it would be unreasonable to assume that we could afford a database transaction per poid request.
特别是,想要为每个poid请求都提供一个数据库事务是不合理的。
now, add an attribute to the original purchaseordertype, named purchaseorderid, typed poid and stereotyped as a?attributea?, and finally, set the multiplicity to 0..
现在向原始的 apurchaseordertype添加一个属性,名为purchaseorderid、类型为poid,原型为 ?attribute?,最后将多重性设置为0..
there is a poid class, a simple wrapper for the poid value, which insulates our apis from the actual value type (primitive long in this case).
还有一个poid类,它是poid值的简单包装器,它使api与实际的值类型相分离(在这里是最初为long)。
the block maintains the value of the next valid identifier, and will provide the next poid with the next() method.
该块保留了下一个有效标识的值,并且会向下一个poid提供next()方法。
one approach to the problem uses a segmented poid address space (see references ).
解决该问题的一个办法是采用分段poid地址空间(请参阅 参考资料)。
you'll notice that it includes elements from the purchase order schema, including the poid element that was not a part of the original schema in part one of this series.
您将注意到,它包含来自购买订单方案的元素,包括不是本系列第一篇文章中原有方案中一部分的poid元素。