org.alfresco.repo.avm
Class Issuer

java.lang.Object
  extended by org.alfresco.repo.avm.Issuer

public class Issuer
extends java.lang.Object

This is a helper class that knows how to issue identifiers.


Constructor Summary
Issuer()
          Default constructor.
 
Method Summary
 void init()
           
 long issue()
          Issue the next number.
 void setIssuerDAO(IssuerDAO dao)
           
 void setIssuerIDDAO(IssuerIDDAO dao)
           
 void setName(java.lang.String name)
          Set the name of this issuer.
 void setTransactionService(TransactionService service)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Issuer

public Issuer()
Default constructor.

Method Detail

setIssuerIDDAO

public void setIssuerIDDAO(IssuerIDDAO dao)

setIssuerDAO

public void setIssuerDAO(IssuerDAO dao)

setTransactionService

public void setTransactionService(TransactionService service)

init

public void init()

setName

public void setName(java.lang.String name)
Set the name of this issuer. For Spring.

Parameters:
name - The name to set.

issue

public long issue()
Issue the next number.

Returns:
A serial number.


Copyright © 2005 - 2008 Alfresco Software, Inc. All Rights Reserved.