Class StatementTypeImpl<T>

  • All Implemented Interfaces:
    StatementType<T>, org.jboss.shrinkwrap.descriptor.api.Child<T>

    public class StatementTypeImpl<T>
    extends Object
    implements org.jboss.shrinkwrap.descriptor.api.Child<T>, StatementType<T>
    This class implements the statementType xsd type
    • 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()
        Specified by:
        up in interface org.jboss.shrinkwrap.descriptor.api.Child<T>
      • 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
      • 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
      • 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
      • isSharePreparedStatements

        public Boolean isSharePreparedStatements()
        Removes the share-prepared-statements element
        Specified by:
        isSharePreparedStatements in interface StatementType<T>
        Returns:
        the current instance of StatementType