.. java:import:: java.lang.reflect Constructor .. java:import:: java.lang.reflect InvocationTargetException .. java:import:: org.caosdb.server.database.exceptions TransactionException .. java:import:: org.caosdb.server.transaction Transaction EntityIdRegistry ================ .. java:package:: org.caosdb.server.entity :noindex: .. java:type:: public class EntityIdRegistry An abstract layer for managing entity ids. That is, checking whether something is a well-formed id, generating well-formed ids and more. This class follows a Strategy Pattern. The actual implemenation can be found in one of the implementations of the \ :java:ref:`EntityIdRegistryStrategy`\ interface. :author: Timm Fitschen Constructors ------------ EntityIdRegistry ^^^^^^^^^^^^^^^^ .. java:constructor:: public EntityIdRegistry(Transaction t) :outertype: EntityIdRegistry EntityIdRegistry ^^^^^^^^^^^^^^^^ .. java:constructor:: public EntityIdRegistry(EntityIdRegistryStrategy strategy) :outertype: EntityIdRegistry EntityIdRegistry ^^^^^^^^^^^^^^^^ .. java:constructor:: public EntityIdRegistry(String strategy, Transaction t) :outertype: EntityIdRegistry Methods ------- generate ^^^^^^^^ .. java:method:: public String generate() :outertype: EntityIdRegistry Return a well-formed, new and unused entity id. matchIdPattern ^^^^^^^^^^^^^^ .. java:method:: public boolean matchIdPattern(String id) :outertype: EntityIdRegistry Return true if the id is a well-formed id.