com.dotmarketing.factories
Class PermissionGenerator

java.lang.Object
  extended by com.dotmarketing.factories.PermissionGenerator
All Implemented Interfaces:
net.sf.hibernate.id.IdentifierGenerator

public class PermissionGenerator
extends java.lang.Object
implements net.sf.hibernate.id.IdentifierGenerator

vm.long

An IdentifierGenerator that returns a Long, constructed from the system time and a counter value. Not safe for use in a cluster!


Constructor Summary
PermissionGenerator()
           
 
Method Summary
 java.io.Serializable generate(net.sf.hibernate.engine.SessionImplementor cache, java.lang.Object obj)
           
protected  long getCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermissionGenerator

public PermissionGenerator()
Method Detail

getCount

protected long getCount()

generate

public java.io.Serializable generate(net.sf.hibernate.engine.SessionImplementor cache,
                                     java.lang.Object obj)
Specified by:
generate in interface net.sf.hibernate.id.IdentifierGenerator


Copyright © 2013 dotCMS Inc. All Rights Reserved.