Methods Summary |
---|
public void | afterInitialize(java.lang.Object entity, boolean fetched, org.hibernate.engine.SessionImplementor session)
|
public void | afterReassociate(java.lang.Object entity, org.hibernate.engine.SessionImplementor session)
|
public void | applyFilters(org.hibernate.sql.QuerySelect select, java.lang.String alias, java.util.Map filters)
|
public void | applyFilters(org.hibernate.sql.Select select, java.lang.String alias, java.util.Map filters)
|
public boolean | canExtractIdOutOfEntity()
return true;
|
private void | checkEntityMode(org.hibernate.EntityMode entityMode)
if ( EntityMode.POJO != entityMode ) {
throw new IllegalArgumentException( "Unhandled EntityMode : " + entityMode );
}
|
public java.lang.Object | createProxy(java.io.Serializable id, org.hibernate.engine.SessionImplementor session)
throw new UnsupportedOperationException("no proxy for this class");
|
public void | delete(java.io.Serializable id, java.lang.Object version, java.lang.Object object, org.hibernate.engine.SessionImplementor session)
INSTANCES.remove(id);
|
public int[] | findDirty(java.lang.Object[] x, java.lang.Object[] y, java.lang.Object owner, org.hibernate.engine.SessionImplementor session)
if ( !EqualsHelper.equals( x[0], y[0] ) ) {
return new int[] { 0 };
}
else {
return null;
}
|
public int[] | findModified(java.lang.Object[] x, java.lang.Object[] y, java.lang.Object owner, org.hibernate.engine.SessionImplementor session)
if ( !EqualsHelper.equals( x[0], y[0] ) ) {
return new int[] { 0 };
}
else {
return null;
}
|
public java.lang.Object | forceVersionIncrement(java.io.Serializable id, java.lang.Object currentVersion, org.hibernate.engine.SessionImplementor session)
return null;
|
public org.hibernate.cache.CacheConcurrencyStrategy | getCache()
return null;
|
public org.hibernate.cache.entry.CacheEntryStructure | getCacheEntryStructure()
return new UnstructuredCacheEntry();
|
public org.hibernate.metadata.ClassMetadata | getClassMetadata()
return null;
|
public java.lang.Class | getConcreteProxyClass(org.hibernate.EntityMode entityMode)
checkEntityMode( entityMode );
return Custom.class;
|
public java.lang.Object | getCurrentVersion(java.io.Serializable id, org.hibernate.engine.SessionImplementor session)
return INSTANCES.get(id);
|
public java.lang.Object[] | getDatabaseSnapshot(java.io.Serializable id, org.hibernate.engine.SessionImplementor session)
return null;
|
public org.hibernate.tuple.entity.EntityMetamodel | getEntityMetamodel()
return null;
|
public java.lang.String | getEntityName()
return Custom.class.getName();
|
public org.hibernate.engine.SessionFactoryImplementor | getFactory()
return factory;
|
public java.io.Serializable | getIdentifier(java.lang.Object object, org.hibernate.EntityMode entityMode)
checkEntityMode( entityMode );
return ( (Custom) object ).id;
|
public org.hibernate.id.IdentifierGenerator | getIdentifierGenerator()
return GENERATOR;
|
public java.lang.String | getIdentifierPropertyName()
return "id";
|
public org.hibernate.type.Type | getIdentifierType()
return Hibernate.STRING;
|
public java.lang.Class | getMappedClass(org.hibernate.EntityMode entityMode)
checkEntityMode( entityMode );
return Custom.class;
|
public java.lang.Class | getMappedClass()
return Custom.class;
|
public int[] | getNaturalIdentifierProperties()
return null;
|
public java.lang.Object[] | getNaturalIdentifierSnapshot(java.io.Serializable id, org.hibernate.engine.SessionImplementor session)
return null;
|
public org.hibernate.type.Type[] | getNaturalIdentifierTypes()
return null;
|
public org.hibernate.engine.CascadeStyle[] | getPropertyCascadeStyles()
return null;
|
public boolean[] | getPropertyCheckability()
return MUTABILITY;
|
public org.hibernate.engine.ValueInclusion[] | getPropertyInsertGenerationInclusions()
return new ValueInclusion[0];
|
public boolean[] | getPropertyInsertability()
return MUTABILITY;
|
public boolean[] | getPropertyLaziness()
return null;
|
public java.lang.String[] | getPropertyNames()
return NAMES;
|
public boolean[] | getPropertyNullability()
return MUTABILITY;
|
public java.io.Serializable[] | getPropertySpaces()
return new String[] { "CUSTOMS" };
|
public org.hibernate.type.Type | getPropertyType(java.lang.String propertyName)
throw new UnsupportedOperationException();
|
public org.hibernate.type.Type[] | getPropertyTypes()
return TYPES;
|
public org.hibernate.engine.ValueInclusion[] | getPropertyUpdateGenerationInclusions()
return new ValueInclusion[0];
|
public boolean[] | getPropertyUpdateability()
return MUTABILITY;
|
public java.lang.Object | getPropertyValue(java.lang.Object object, int i, org.hibernate.EntityMode entityMode)
checkEntityMode( entityMode );
return ( (Custom) object ).getName();
|
public java.lang.Object | getPropertyValue(java.lang.Object object, java.lang.String propertyName, org.hibernate.EntityMode entityMode)
checkEntityMode( entityMode );
return ( (Custom) object ).getName();
|
public java.lang.Object | getPropertyValue(java.lang.Object object, java.lang.String propertyName)
throw new UnsupportedOperationException();
|
public java.lang.Object[] | getPropertyValues(java.lang.Object object, org.hibernate.EntityMode entityMode)
checkEntityMode( entityMode );
Custom c = (Custom) object;
return new Object[] { c.getName() };
|
public java.lang.Object[] | getPropertyValuesToInsert(java.lang.Object object, java.util.Map mergeMap, org.hibernate.engine.SessionImplementor session)
return getPropertyValues( object, session.getEntityMode() );
|
public boolean[] | getPropertyVersionability()
return MUTABILITY;
|
public java.io.Serializable[] | getQuerySpaces()
return new String[] { "CUSTOMS" };
|
public java.lang.String | getRootEntityName()
return "CUSTOMS";
|
public org.hibernate.persister.entity.EntityPersister | getSubclassEntityPersister(java.lang.Object instance, org.hibernate.engine.SessionFactoryImplementor factory, org.hibernate.EntityMode entityMode)
checkEntityMode( entityMode );
return this;
|
public java.lang.Object | getVersion(java.lang.Object object, org.hibernate.EntityMode entityMode)
checkEntityMode( entityMode );
return null;
|
public java.util.Comparator | getVersionComparator()
return null;
|
public int | getVersionProperty()
return 0;
|
public org.hibernate.type.VersionType | getVersionType()
return null;
|
public org.hibernate.EntityMode | guessEntityMode(java.lang.Object object)
if ( !isInstance(object, EntityMode.POJO) ) {
return null;
}
else {
return EntityMode.POJO;
}
|
public boolean | hasCache()
return false;
|
public boolean | hasCascades()
return false;
|
public boolean | hasCollections()
return false;
|
public boolean | hasGeneratedProperties()
return false;
|
public boolean | hasIdentifierProperty()
return true;
|
public boolean | hasInsertGeneratedProperties()
return false;
|
public boolean | hasLazyProperties()
return false;
|
public boolean | hasMutableProperties()
return false;
|
public boolean | hasNaturalIdentifier()
return false;
|
public boolean | hasProxy()
return false;
|
public boolean | hasSubselectLoadableCollections()
return false;
|
public boolean | hasUninitializedLazyProperties(java.lang.Object object, org.hibernate.EntityMode entityMode)
checkEntityMode( entityMode );
return false;
|
public boolean | hasUpdateGeneratedProperties()
return false;
|
public boolean | implementsLifecycle(org.hibernate.EntityMode entityMode)
checkEntityMode( entityMode );
return false;
|
public boolean | implementsValidatable(org.hibernate.EntityMode entityMode)
checkEntityMode( entityMode );
return false;
|
public void | insert(java.io.Serializable id, java.lang.Object[] fields, java.lang.Object object, org.hibernate.engine.SessionImplementor session)
INSTANCES.put(id, ( (Custom) object ).clone() );
|
public java.io.Serializable | insert(java.lang.Object[] fields, java.lang.Object object, org.hibernate.engine.SessionImplementor session)
throw new UnsupportedOperationException();
|
public java.lang.Object | instantiate(java.io.Serializable id, org.hibernate.EntityMode entityMode)
checkEntityMode( entityMode );
Custom c = new Custom();
c.id = (String) id;
return c;
|
public boolean | isBatchLoadable()
return false;
|
public boolean | isCacheInvalidationRequired()
return false;
|
public boolean | isDynamic()
return false;
|
public boolean | isIdentifierAssignedByInsert()
return false;
|
public boolean | isInherited()
return false;
|
public boolean | isInstance(java.lang.Object object, org.hibernate.EntityMode entityMode)
checkEntityMode( entityMode );
return object instanceof Custom;
|
public boolean | isInstrumented(org.hibernate.EntityMode entityMode)
return false;
|
public boolean | isLazyPropertiesCacheable()
return true;
|
public boolean | isMutable()
return true;
|
public boolean | isSelectBeforeUpdateRequired()
return false;
|
public boolean | isSubclassEntityName(java.lang.String entityName)
return Custom.class.getName().equals(entityName);
|
public java.lang.Boolean | isTransient(java.lang.Object object, org.hibernate.engine.SessionImplementor session)
return new Boolean( ( (Custom) object ).id==null );
|
public boolean | isVersionPropertyGenerated()
return false;
|
public boolean | isVersioned()
return false;
|
public java.lang.Object | load(java.io.Serializable id, java.lang.Object optionalObject, org.hibernate.LockMode lockMode, org.hibernate.engine.SessionImplementor session)
// fails when optional object is supplied
Custom clone = null;
Custom obj = (Custom) INSTANCES.get(id);
if (obj!=null) {
clone = (Custom) obj.clone();
TwoPhaseLoad.addUninitializedEntity(
new EntityKey( id, this, session.getEntityMode() ),
clone,
this,
LockMode.NONE,
false,
session
);
TwoPhaseLoad.postHydrate(
this, id,
new String[] { obj.getName() },
null,
clone,
LockMode.NONE,
false,
session
);
TwoPhaseLoad.initializeEntity(
clone,
false,
session,
new PreLoadEvent( (EventSource) session ),
new PostLoadEvent( (EventSource) session )
);
}
return clone;
|
public void | lock(java.io.Serializable id, java.lang.Object version, java.lang.Object object, org.hibernate.LockMode lockMode, org.hibernate.engine.SessionImplementor session)
throw new UnsupportedOperationException();
|
public void | postInstantiate()
|
public void | processInsertGeneratedProperties(java.io.Serializable id, java.lang.Object entity, java.lang.Object[] state, org.hibernate.engine.SessionImplementor session)
|
public void | processUpdateGeneratedProperties(java.io.Serializable id, java.lang.Object entity, java.lang.Object[] state, org.hibernate.engine.SessionImplementor session)
|
public void | resetIdentifier(java.lang.Object entity, java.io.Serializable currentId, java.lang.Object currentVersion, org.hibernate.EntityMode entityMode)
checkEntityMode( entityMode );
( ( Custom ) entity ).id = ( String ) currentId;
|
public void | retrieveGeneratedProperties(java.io.Serializable id, java.lang.Object entity, java.lang.Object[] state, org.hibernate.engine.SessionImplementor session)
throw new UnsupportedOperationException();
|
public void | setIdentifier(java.lang.Object object, java.io.Serializable id, org.hibernate.EntityMode entityMode)
checkEntityMode( entityMode );
( (Custom) object ).id = (String) id;
|
public void | setPropertyValue(java.lang.Object object, int i, java.lang.Object value, org.hibernate.EntityMode entityMode)
checkEntityMode( entityMode );
( (Custom) object ).setName( (String) value );
|
public void | setPropertyValues(java.lang.Object object, java.lang.Object[] values, org.hibernate.EntityMode entityMode)
checkEntityMode( entityMode );
setPropertyValue( object, 0, values[0], entityMode );
|
public void | update(java.io.Serializable id, java.lang.Object[] fields, int[] dirtyFields, boolean hasDirtyCollection, java.lang.Object[] oldFields, java.lang.Object oldVersion, java.lang.Object object, java.lang.Object rowId, org.hibernate.engine.SessionImplementor session)
INSTANCES.put( id, ( (Custom) object ).clone() );
|