org.jboss.datasources.impl
Class StatementTypeImpl<T>

java.lang.Object
  extended by org.jboss.datasources.impl.StatementTypeImpl<T>
All Implemented Interfaces:
StatementType<T>, Child<T>

public class StatementTypeImpl<T>
extends Object
implements Child<T>, StatementType<T>

This class implements the statementType xsd type

Since:
Generation date :2013-01-26T19:27:02.583+01:00
Author:
Ralf Battenfeld, Andrew Lee Rubinger

Constructor Summary
StatementTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
           
StatementTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node, org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
           
 
Method Summary
 Integer getPreparedStatementCacheSize()
          Returns the prepared-statement-cache-size element
 TrackStatementsType getTrackStatements()
          Returns the track-statements element
 String getTrackStatementsAsString()
          Returns the track-statements element
 Boolean isSharePreparedStatements()
          Removes the share-prepared-statements element
 StatementType<T> preparedStatementCacheSize(Integer preparedStatementCacheSize)
          Sets the prepared-statement-cache-size element
 StatementType<T> removePreparedStatementCacheSize()
          Removes the prepared-statement-cache-size element
 StatementType<T> removeSharePreparedStatements()
          Removes the share-prepared-statements element
 StatementType<T> removeTrackStatements()
          Removes the track-statements attribute
 StatementType<T> sharePreparedStatements()
          Sets the share-prepared-statements element
 StatementType<T> trackStatements(String trackStatements)
          Sets the track-statements element
 StatementType<T> trackStatements(TrackStatementsType trackStatements)
          Sets the track-statements element
 T up()
          Returns the parent of this Child
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatementTypeImpl

public StatementTypeImpl(T t,
                         String nodeName,
                         org.jboss.shrinkwrap.descriptor.spi.node.Node node)

StatementTypeImpl

public StatementTypeImpl(T t,
                         String nodeName,
                         org.jboss.shrinkwrap.descriptor.spi.node.Node node,
                         org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
Method Detail

up

public T up()
Description copied from interface: Child
Returns the parent of this Child

Specified by:
up in interface Child<T>
Returns:
The parent of this Child

trackStatements

public StatementType<T> trackStatements(TrackStatementsType trackStatements)
Sets the track-statements element

Specified by:
trackStatements in interface StatementType<T>
Parameters:
trackStatements - the value for the element track-statements
Returns:
the current instance of StatementType

trackStatements

public StatementType<T> trackStatements(String trackStatements)
Sets the track-statements element

Specified by:
trackStatements in interface StatementType<T>
Parameters:
trackStatements - the value for the element track-statements
Returns:
the current instance of StatementType

getTrackStatements

public TrackStatementsType getTrackStatements()
Returns the track-statements element

Specified by:
getTrackStatements in interface StatementType<T>
Returns:
the value found for the element track-statements

getTrackStatementsAsString

public String getTrackStatementsAsString()
Returns the track-statements element

Specified by:
getTrackStatementsAsString in interface StatementType<T>
Returns:
the value found for the element track-statements

removeTrackStatements

public StatementType<T> removeTrackStatements()
Removes the track-statements attribute

Specified by:
removeTrackStatements in interface StatementType<T>
Returns:
the current instance of StatementType

preparedStatementCacheSize

public StatementType<T> preparedStatementCacheSize(Integer preparedStatementCacheSize)
Sets the prepared-statement-cache-size element

Specified by:
preparedStatementCacheSize in interface StatementType<T>
Parameters:
preparedStatementCacheSize - the value for the element prepared-statement-cache-size
Returns:
the current instance of StatementType

getPreparedStatementCacheSize

public Integer getPreparedStatementCacheSize()
Returns the prepared-statement-cache-size element

Specified by:
getPreparedStatementCacheSize in interface StatementType<T>
Returns:
the node defined for the element prepared-statement-cache-size

removePreparedStatementCacheSize

public StatementType<T> removePreparedStatementCacheSize()
Removes the prepared-statement-cache-size element

Specified by:
removePreparedStatementCacheSize in interface StatementType<T>
Returns:
the current instance of StatementType

sharePreparedStatements

public StatementType<T> sharePreparedStatements()
Sets the share-prepared-statements element

Specified by:
sharePreparedStatements in interface StatementType<T>
Returns:
the current instance of StatementType

isSharePreparedStatements

public Boolean isSharePreparedStatements()
Removes the share-prepared-statements element

Specified by:
isSharePreparedStatements in interface StatementType<T>
Returns:
the current instance of StatementType

removeSharePreparedStatements

public StatementType<T> removeSharePreparedStatements()
Removes the share-prepared-statements element

Specified by:
removeSharePreparedStatements in interface StatementType<T>
Returns:
the current instance of StatementType


Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.