站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 server API Documentation 英文版文档

HiLoKeyGeneratorFactory (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档


org.jboss.ejb.plugins.keygenerator.hilo
Class HiLoKeyGeneratorFactory

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactory
All Implemented Interfaces:
HiLoKeyGeneratorFactoryMBean, KeyGeneratorFactory, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, Serializable, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class HiLoKeyGeneratorFactory
extends org.jboss.system.ServiceMBeanSupport
implements KeyGeneratorFactory, HiLoKeyGeneratorFactoryMBean, Serializable

Version:
$Revision: 1.5.2.2 $
Author:
Alexey Loubyansky
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactoryMBean
OBJECT_NAME
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
HiLoKeyGeneratorFactory()
           
 
Method Summary
 long getBlockSize()
           
 String getCreateTableDdl()
           
 javax.management.ObjectName getDataSource()
           
 String getFactoryName()
          Returns the name of the factory
 String getIdColumnName()
           
 KeyGenerator getKeyGenerator()
          Returns a new key generator
 String getSequenceColumn()
           
 String getSequenceName()
           
 String getTableName()
           
 void setBlockSize(long blockSize)
           
 void setCreateTableDdl(String createTableDdl)
           
 void setDataSource(javax.management.ObjectName dataSource)
           
 void setFactoryName(String factoryName)
           
 void setIdColumnName(String idColumnName)
           
 void setSequenceColumn(String sequenceColumn)
           
 void setSequenceName(String sequenceName)
           
 void setTableName(String tableName)
           
 void startService()
           
 void stopService()
           
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Constructor Detail

HiLoKeyGeneratorFactory

public HiLoKeyGeneratorFactory()
Method Detail

setFactoryName

public void setFactoryName(String factoryName)
Specified by:
setFactoryName in interface HiLoKeyGeneratorFactoryMBean

getFactoryName

public String getFactoryName()
Description copied from interface: KeyGeneratorFactory
Returns the name of the factory

Specified by:
getFactoryName in interface KeyGeneratorFactory

setDataSource

public void setDataSource(javax.management.ObjectName dataSource)
                   throws Exception
Specified by:
setDataSource in interface HiLoKeyGeneratorFactoryMBean
Throws:
Exception

getDataSource

public javax.management.ObjectName getDataSource()
Specified by:
getDataSource in interface HiLoKeyGeneratorFactoryMBean

getTableName

public String getTableName()
Specified by:
getTableName in interface HiLoKeyGeneratorFactoryMBean

setTableName

public void setTableName(String tableName)
                  throws Exception
Specified by:
setTableName in interface HiLoKeyGeneratorFactoryMBean
Throws:
Exception

getSequenceColumn

public String getSequenceColumn()
Specified by:
getSequenceColumn in interface HiLoKeyGeneratorFactoryMBean

setSequenceColumn

public void setSequenceColumn(String sequenceColumn)
Specified by:
setSequenceColumn in interface HiLoKeyGeneratorFactoryMBean

getSequenceName

public String getSequenceName()
Specified by:
getSequenceName in interface HiLoKeyGeneratorFactoryMBean

setSequenceName

public void setSequenceName(String sequenceName)
Specified by:
setSequenceName in interface HiLoKeyGeneratorFactoryMBean

getIdColumnName

public String getIdColumnName()
Specified by:
getIdColumnName in interface HiLoKeyGeneratorFactoryMBean

setIdColumnName

public void setIdColumnName(String idColumnName)
Specified by:
setIdColumnName in interface HiLoKeyGeneratorFactoryMBean

getCreateTableDdl

public String getCreateTableDdl()
Specified by:
getCreateTableDdl in interface HiLoKeyGeneratorFactoryMBean

setCreateTableDdl

public void setCreateTableDdl(String createTableDdl)
Specified by:
setCreateTableDdl in interface HiLoKeyGeneratorFactoryMBean

getBlockSize

public long getBlockSize()
Specified by:
getBlockSize in interface HiLoKeyGeneratorFactoryMBean

setBlockSize

public void setBlockSize(long blockSize)
Specified by:
setBlockSize in interface HiLoKeyGeneratorFactoryMBean

getKeyGenerator

public KeyGenerator getKeyGenerator()
                             throws Exception
Description copied from interface: KeyGeneratorFactory
Returns a new key generator

Specified by:
getKeyGenerator in interface KeyGeneratorFactory
Throws:
Exception

startService

public void startService()
                  throws Exception
Throws:
Exception

stopService

public void stopService()
                 throws Exception
Throws:
Exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.