ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3

org.jboss.shrinkwrap.descriptor.api.orm20
Interface EntityListener<T>

All Superinterfaces:
Child<T>

public interface EntityListener<T>
extends Child<T>

This interface defines the contract for the entity-listener xsd type

Since:
Generation date :2012-05-09T23:45:05.33-07:00
Author:
Ralf Battenfeld, Andrew Lee Rubinger

Method Summary
 EntityListener<T> clazz(String clazz)
          Sets the class attribute
 EntityListener<T> description(String description)
          Sets the description element
 String getClazz()
          Returns the class attribute
 String getDescription()
          Returns the description element
 PostLoad<EntityListener<T>> getOrCreatePostLoad()
          If not already created, a new post-load element with the given value will be created.
 PostPersist<EntityListener<T>> getOrCreatePostPersist()
          If not already created, a new post-persist element with the given value will be created.
 PostRemove<EntityListener<T>> getOrCreatePostRemove()
          If not already created, a new post-remove element with the given value will be created.
 PostUpdate<EntityListener<T>> getOrCreatePostUpdate()
          If not already created, a new post-update element with the given value will be created.
 PrePersist<EntityListener<T>> getOrCreatePrePersist()
          If not already created, a new pre-persist element with the given value will be created.
 PreRemove<EntityListener<T>> getOrCreatePreRemove()
          If not already created, a new pre-remove element with the given value will be created.
 PreUpdate<EntityListener<T>> getOrCreatePreUpdate()
          If not already created, a new pre-update element with the given value will be created.
 EntityListener<T> removeClazz()
          Removes the class attribute
 EntityListener<T> removeDescription()
          Removes the description element
 EntityListener<T> removePostLoad()
          Removes the post-load element
 EntityListener<T> removePostPersist()
          Removes the post-persist element
 EntityListener<T> removePostRemove()
          Removes the post-remove element
 EntityListener<T> removePostUpdate()
          Removes the post-update element
 EntityListener<T> removePrePersist()
          Removes the pre-persist element
 EntityListener<T> removePreRemove()
          Removes the pre-remove element
 EntityListener<T> removePreUpdate()
          Removes the pre-update element
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
 

Method Detail

description

EntityListener<T> description(String description)
Sets the description element

Parameters:
description - the value for the element description
Returns:
the current instance of EntityListener

getDescription

String getDescription()
Returns the description element

Returns:
the node defined for the element description

removeDescription

EntityListener<T> removeDescription()
Removes the description element

Returns:
the current instance of EntityListener

getOrCreatePrePersist

PrePersist<EntityListener<T>> getOrCreatePrePersist()
If not already created, a new pre-persist element with the given value will be created. Otherwise, the existing pre-persist element will be returned.

Returns:
a new or existing instance of PrePersist>

removePrePersist

EntityListener<T> removePrePersist()
Removes the pre-persist element

Returns:
the current instance of EntityListener

getOrCreatePostPersist

PostPersist<EntityListener<T>> getOrCreatePostPersist()
If not already created, a new post-persist element with the given value will be created. Otherwise, the existing post-persist element will be returned.

Returns:
a new or existing instance of PostPersist>

removePostPersist

EntityListener<T> removePostPersist()
Removes the post-persist element

Returns:
the current instance of EntityListener

getOrCreatePreRemove

PreRemove<EntityListener<T>> getOrCreatePreRemove()
If not already created, a new pre-remove element with the given value will be created. Otherwise, the existing pre-remove element will be returned.

Returns:
a new or existing instance of PreRemove>

removePreRemove

EntityListener<T> removePreRemove()
Removes the pre-remove element

Returns:
the current instance of EntityListener

getOrCreatePostRemove

PostRemove<EntityListener<T>> getOrCreatePostRemove()
If not already created, a new post-remove element with the given value will be created. Otherwise, the existing post-remove element will be returned.

Returns:
a new or existing instance of PostRemove>

removePostRemove

EntityListener<T> removePostRemove()
Removes the post-remove element

Returns:
the current instance of EntityListener

getOrCreatePreUpdate

PreUpdate<EntityListener<T>> getOrCreatePreUpdate()
If not already created, a new pre-update element with the given value will be created. Otherwise, the existing pre-update element will be returned.

Returns:
a new or existing instance of PreUpdate>

removePreUpdate

EntityListener<T> removePreUpdate()
Removes the pre-update element

Returns:
the current instance of EntityListener

getOrCreatePostUpdate

PostUpdate<EntityListener<T>> getOrCreatePostUpdate()
If not already created, a new post-update element with the given value will be created. Otherwise, the existing post-update element will be returned.

Returns:
a new or existing instance of PostUpdate>

removePostUpdate

EntityListener<T> removePostUpdate()
Removes the post-update element

Returns:
the current instance of EntityListener

getOrCreatePostLoad

PostLoad<EntityListener<T>> getOrCreatePostLoad()
If not already created, a new post-load element with the given value will be created. Otherwise, the existing post-load element will be returned.

Returns:
a new or existing instance of PostLoad>

removePostLoad

EntityListener<T> removePostLoad()
Removes the post-load element

Returns:
the current instance of EntityListener

clazz

EntityListener<T> clazz(String clazz)
Sets the class attribute

Parameters:
clazz - the value for the attribute class
Returns:
the current instance of EntityListener

getClazz

String getClazz()
Returns the class attribute

Returns:
the value defined for the attribute class

removeClazz

EntityListener<T> removeClazz()
Removes the class attribute

Returns:
the current instance of EntityListener

ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.