Adds the given statement to this JSourceCode.
Adds the given statement to this JSourceCode.
Add an auto-increment mapping.
Adds a JClass which should be printed in this file.
Adds the given Constructor to this classes list of constructors.
Adds the given JClass to the set of classes that
contain this method.
Adds the given JDocDescriptor to this JDocComment
Adds the given Exception to this Method's throws clause.
Adds the given Exception to this JMethodSignature's throws clause.
Adds the given JField to this JClass
Adds the given JField to this JStructure.
Adds the given statement to this JSourceCode.
Adds a JInterface which should be printed in this file.
Adds the given JMember to this JClass
Adds the given JMember to this JStructure.
Adds the given JMethod to this JClass
Adds the given JMethod to this JClass
Adds the given JMethodSignature to this JClass
Adds the given array of JMethods to this JClass
Adds the given parameter to this Methods list of parameters
Adds the given parameter to this JMethod's list of parameters.
Adds the given parameter to this JMethodSignature's list of
parameters.
Adds the given JStructure (either a JInterface or
a JClass) to this JCompUnit.
Add a unique index to this table
Generates the alter statement to add or modify a single column on a table.
Appends the given String to the last line in this
JSourceCode
Appends the comment String to this JDocComment
Appends the comment String to this JDocComment
AUTO_STYLE - static field in class org.codehaus.modello.generator.java.javasource.
JComment The auto style, allows this JComment to automatically
choose a style for this comment
An SQL Builder for the
Axion JDBC database.
Allows subtypes, such as JClass to alter the package to which
this JType belongs
Char - static field in class org.codehaus.modello.generator.java.javasource.
JType CHAR - static field in class org.codehaus.modello.generator.database.model.
TypeMap Clean a directory without deleting it.
Clean a directory without deleting it.
Clears all the code statements from this JSourceCode
CLOB - static field in class org.codehaus.modello.generator.database.model.
TypeMap Column - class org.codehaus.modello.generator.database.model.
Column Column() - constructor for class org.codehaus.modello.generator.database.model.
Column Helper method to determine if two column specifications represent
different types.
Compares the type of this JDocDescriptor with the given descriptor.
copy() - method in class org.codehaus.modello.generator.java.javasource.
JModifiers Creates a copy of this JModifiers
Copies the contents of this JSourceCode into the given JSourceCode
Construct a new Types
, using meta-data obtained from
a database connection
Creates a JType Object representing an array of the current
JType.
Creates a new author descriptor
Creates a new author descriptor
Outputs the DDL to add a column to a table.
Outputs the DDL to add a column to a table.
Outputs the DDL to add a column to a table.
Creates a new JConstructor and adds it to this
JClass.
Creates a new JConstructor and adds it to this
JClass.
Outputs the DDL required to drop and recreate the database
Outputs the DDL required to drop and recreate the database
Creates a new exception descriptor
Creates a new exception descriptor
Creates and returns an inner-class for this JClass
Creates a new param descriptor
Creates a new param descriptor
Creates a new reference descriptor
Creates a new reference descriptor
Creates a new return descriptor
Creates a new return descriptor
Creates a sequence so that values can be auto incremented
Creates a trigger to auto-increment values
Outputs the DDL to create the table along with any constraints
Outputs the DDL to create the table along with any constraints
Creates a new version descriptor
Creates a new version descriptor
Returns the Object at the given index.
Returns the Object associated with the given name.
Returns the list of all fields in this class.
Returns all the fields in this class and all super classes if withInheritedField equals to true.
Returns the closest auto-increment type mapping matching the requested
type name and size
Returns all auto-increment mappings
Returns the String value of this JDocComment.
Returns the comment describing this member.
If this JType is an array this method will returns the component type
of the array, otherwise null will be returned.
Returns the constructor at the specified index.
Returns the an array of the JConstructors contained within this JClass
Returns the class in which this JMember has been declared
Returns the class in which this JField has been declared
Returns the description String for this descriptor
Returns an enumeration of the parameters of this JDocComment
Returns the exceptions that this JMember throws.
Returns the exceptions that this JMethodSignature lists
in it's throws clause.
Returns the member with the given name, or null if no member
was found with the given name
Returns the field with the given name, or null if no field
was found with the given name.
Returns an array of all the JFields of this JClass
Returns an array of all the JFields of this JStructure
Returns the list of all fields in this class for a specific version.
Returns the name of the file that this JCompUnit would be
printed as, given a call to #print.
Returns the format of the type
returns a array of String containing all import classes/packages,
also imports within the same package of this object.
Returns the current indent size (getIndentLevel()*tabSize);
Returns the initialization String for this JField
Returns an array of JClass (the inner classes)
contained within this JClass.
Returns the list of all interfaces of this class.
Returns the JDBC type name which maps to java.sql.Types
for the given SQL name of type
Returns the name which maps to the given java.sql.Types
type code
Returns the JDocComment describing this member.
Returns the JDocComment describing this JMethodSignature
Returns the length of the comment
Returns the line separator being used by this JSourceWriter
Returns the JDBC mapping of the type
Returns all mappings that the database supports
Returns the maximum scale of the type
Returns the maximum scale of the type
Returns the JMethod located at the specified index
Returns the JMethodSignature at the given index.
Returns the first occurance of the method with the
given name, starting from the specified index.
Returns the JMethodSignature with the given name,
and occuring at or after the given starting index.
Returns an array of all the JMethods of this JClass
Returns an array of all the JMethodSignatures of this JInterface.
Returns the minimum scale of the type
Returns the minimum scale of the type
Returns the modifiers for this JConstructor
Returns the modifiers for this JField
Returns the modifiers for this JMember.
Returns the modifiers for this JMethodSignature.
getName() - method in class org.codehaus.modello.generator.database.model.
Column getName() - method in class org.codehaus.modello.generator.database.model.
Index Returns the name of the object being described.
getName() - method in class org.codehaus.modello.generator.java.javasource.
JField Returns the name of this JField
getName() - method in class org.codehaus.modello.generator.java.javasource.
JMethod Returns the name of this JMember.
Returns the name of the method.
Returns the name of the parameter
getName() - method in class org.codehaus.modello.generator.java.javasource.
JType getName() - method in class org.codehaus.modello.generator.database.type.
Mapping getName() - method in class org.codehaus.modello.generator.database.model.
Table Returns the JBDC name of the type
Returns the name associated with the given Object
Return a Vector of Objects
Returns the name of the package that this JCompUnit is a member of
Returns the Parameter Descriptor associated with the
given name
Returns the JParameter at the given index.
Returns the JParameter at the given index.
Returns an array of JParameters consisting of the parameters
of this Method in declared order
Returns the set of JParameters for this JMethod.
Returns the set of JParameters for this JMethodSignature
Note: the array is a copy, the params in the array
are the actual references.
Returns the JType that represents the return type of the method.
Returns the JType that represents the return type for the
method signature.
getScale() - method in class org.codehaus.modello.generator.database.model.
Column getSchema() - method in class org.codehaus.modello.generator.database.model.
Table Returns the JMethodSignature for this JMethod.
getSize() - method in class org.codehaus.modello.generator.database.model.
Column getSize() - method in class org.codehaus.modello.generator.database.type.
Type Returns the maximum size (or precision) of the type
Returns the maximum size (length or precision) of the type
Returns the JSourceCode for the method body.
getSQLName() - method in class org.codehaus.modello.generator.database.type.
Type Returns the SQL name of the type
Returns the SQL type name
Returns the SQL type for a column
Helper to return the SQL type for a column
Returns the JSourceCode for the static initializer
of this JClass
Gets the super Class that this class extends
getType() - method in class org.codehaus.modello.generator.database.model.
Column Returns the type of this JDocDescriptor
getType() - method in class org.codehaus.modello.generator.java.javasource.
JField Returns the JType represting the type of this JField
Returns the parameter type
getType() - method in class org.codehaus.modello.generator.database.model.
Table Returns a type, based on its name
Returns the closest type mapping for a requested size, from a list
of Mapping
s.
Returns the first type matching the requested type name and size
getTypes() - method in class org.codehaus.modello.generator.database.type.
Types Returns all types
Returns true if this
is greater or equals that other
.
Returns true if this
is greater that other
.
Increases the current indent level by 1
Increases the indentation level by 1
Index - class org.codehaus.modello.generator.database.model.
Index Index() - constructor for class org.codehaus.modello.generator.database.model.
Index Returns the index of the Object which has been
mapped (associated) with the given name
Int - static field in class org.codehaus.modello.generator.java.javasource.
JType INTEGER - static field in class org.codehaus.modello.generator.database.model.
TypeMap Returns true if the abstract qualifier is present.
isArray() - method in class org.codehaus.modello.generator.java.javasource.
JType Checks to see if this JType represents an array.
Returns true if values for the type need have size and scale measurements
Returns true if values for the type need have size and scale measurements
Returns true if this JSourceCode is empty (ie.
Returns whether foreign key constraints should be named when they are embedded inside
a create table clause.
Checks to see if the cursor is positioned on a new line
Returns true if the modifier represented is package (= without qualifier).
Checks to see if this JType represents a primitive
Returns true if the modifier represented is private.
Returns true if the modifier represented is protected.
Returns true if the modifier represented is public.
Returns true if the modifier represented is static.
Returns true if values for the type need to be quoted.
Returns true if values for the type need to be quoted.
Returns true if the modifier represented is transient.
isUnique() - method in class org.codehaus.modello.generator.database.model.
Index isUnique() - method in class org.codehaus.modello.generator.database.model.
Unique Similiar to HEADER_STYLE, but starts with: \/**
JClass - class org.codehaus.modello.generator.java.javasource.
JClass A representation of the Java Source code for a Java Class.
Creates a new JClass with the given name
A class that represents a Java comment.
JComment() - constructor for class org.codehaus.modello.generator.java.javasource.
JComment Creates a new Java Comment
Creates a new Java comment with the given style
A representation of the Java Source code for a Java compilation
unit.
Creates a new JCompUnit with the given JClass (which must have
been created with either a full class name or package/local
name) as the public class.
Creates a new JCompUnit with the given JInterface as public interface
Package and file name are taken from jInterface.
A class for handling source code for a constructor of a JClass
Creates a new method with the given name and returnType.
A class that "SOMEWHAT" represents a Java Doc Comment.
Creates a new JavaDoc Comment
A descriptor for a JavaDoc comment
JField - class org.codehaus.modello.generator.java.javasource.
JField A class which holds information about a field.
A representation of the Java Source code for a Java Interface.
Creates a new JInterface with the given name.
JMethod - class org.codehaus.modello.generator.java.javasource.
JMethod A class which holds information about the methods of
a JClass.
Creates a new JMethod with the given name and returnType.
Creates a new JMethod with the given name and "void" return type.
A class which holds information about the signtaure
of a JMethod.
Creates a new method with the given name and return type.
The set of modifiers for a Method or Member variable
Creates a new JModifiers class, by default the
modifiers presented are public.
A simple String to Object mapping which preserves order.
Creates a new JNamedMap with the given size.
Represents a parameter to a JMethod.
Creates a new JParameter with the given type, and name
A class for holding in-memory Java source code.
Creates an empty JSourceCode
Creates a JSourceCode and adds the given String
to it's contents
The writer used by the modello classes
Creates a new JSourceWriter
Creates a new JSourceWriter
Creates a new JSourceWriter
Creates a new JSourceWriter
JType - class org.codehaus.modello.generator.java.javasource.
JType JType(String) - constructor for class org.codehaus.modello.generator.java.javasource.
JType Creates a new JType with the given name
The param descriptor (param)
An SQL Builder for PostgresSqlL
print() - method in class org.codehaus.modello.generator.java.javasource.
JCompUnit Prints the source code for this JClass in the current directory
with the default line seperator of the the runtime platform.
Prints the source code for this JClass to the given JSourceWriter
prints this JComment using the given JSourceWriter
Prints the source code for this JClass.
prints this JavaDoc comment using the given JSourceWriter
Prints the source code for this JInterface to the given JSourceWriter
Prints this JMethod to the given JSourceWriter.
Prints the method signature.
Prints this JSourceCode to the given JSourceWriter
Prints the source code for this JClass to the given JSourceWriter
Prints the source code for this JInterface to the given JSourceWriter
Prints the method signature.
Prints the source code for this JClass
with the default line seperator of the the runtime platform.
Prints the source code for this JCompUnit.
Outputs the fact that this column is an auto increment column.
Outputs the fact that this column is an auto increment column.
Outputs the fact that this column is an auto increment column.
Outputs the fact that this column is an auto increment column.
Outputs the fact that this column is an auto increment column.
Outputs the fact that this column is an auto increment column.
Outputs the fact that this column is an auto increment column.
Outputs the fact that this column is an auto increment column.
Prints an SQL comment to the current stream
Prints an SQL comment to the current stream
Prints an SQL comment to the current stream
Prints the end of statement text, which is typically a semi colon followed by
a carriage return
Prints the indentation used to indent SQL
Prints some text then a newline
Prints that a column is not nullable
Prints that a column is not nullable
Prints that a column is nullable
Prints that a column is nullable
Print the source code for the contained JClass objects.
Promote a type to that supported by the database provider.
Promote a type to that supported by the database provider.
Promote a type to that supported by the database provider.
Promote a type to another type
Maps (associates) an Object with a name
An SQL Builder for Oracle
Sets whether or not the "abstract" qualifier is present
This applies only to methods or classes.
Whether an ALTER TABLE statement is necessary when dropping indexes
or constraints.
Sets the comment describing this member.
Sets the comment String of this JDocComment
Sets the comment String of this JDocComment
Sets the comment describing this member.
Sets the comment describing this member.
Sets the comment describing this JMethodSignature.
Sets the description String for this descriptor
Sets whether or not the "final" qualifier is present
Sets whether foreign key constraints should be named when they are embedded inside
a create table clause.
Sets whether the foreign key constraints are embedded in the create
table clause or as a seperate alter table statements.
Sets the header comment for this JCompUnit
Sets the indentation used to indent the SQL
Sets whether the indexes are embedded in the create
table clause or as seperate statements.
Sets the initialization string for this JField;
Allows some flexibility in declaring default values.
Sets the line separator to use at the end of each line
Sets the JDBC mapping of the type
Sets the maximum scale of the type
Sets the minimum scale of the type
Sets the JModifiers for this JMethod.
Sets the JModifiers for this method signature.
Sets the name value of the JavaDoc field.
Sets the name of this JField
Sets the name of this parameter
Sets whether the primary key constraint is embedded in the create
table clause or as a seperate alter table.
Sets the maximum size (or precision) of the type
Sets the given JSourceCode as the source code (method body)
for this JMethod.
Sets the given string as the source code (method body)
for this JMethod.
Sets the SQL name of the type
Sets whether or not the "static" qualifier is present
Sets the style for this JComment
Sets the super Class that this class extends
Sets whether or not the "transient" qualifier is present
Sets the type of this parameter
Set this columns type by name
Sets the writer used to print the DDL to
Short - static field in class org.codehaus.modello.generator.java.javasource.
JType size() - method in class org.codehaus.modello.generator.java.javasource.
JNamedMap Returns the number of Object associations currently in
this named map
Format indicating to use the column type's size, if it is > 1
Format indicating to use the column type's size and scale
if they are non-zero
SMALLINT - static field in class org.codehaus.modello.generator.database.model.
TypeMap This class is a collection of Strategy methods for creating the DDL required to create and drop
databases and tables.
An SQL Builder for Sybase
Table - class org.codehaus.modello.generator.database.model.
Table Models a table.
Table() - constructor for class org.codehaus.modello.generator.database.model.
Table Outputs a comment for the table
TIME - static field in class org.codehaus.modello.generator.database.model.
TypeMap TIMESTAMP - static field in class org.codehaus.modello.generator.database.model.
TypeMap TINYINT - static field in class org.codehaus.modello.generator.database.model.
TypeMap toString() - method in class org.codehaus.modello.generator.database.model.
Column Returns the String representation of this Java Doc Comment
Returns the String representation of this Java Doc Comment
Returns the String representation of this JDocDescriptor
toString() - method in class org.codehaus.modello.generator.java.javasource.
JField Returns the String representation of this JMethod,
which is the method prototype.
Returns the String representation of this JMethod,
which is the method prototype.
Returns the String represetation of this JModifiers
Returns the String representation of this JParameter.
Returns the String representation of this JSourceCode
toString() - method in class org.codehaus.modello.generator.java.javasource.
JType Returns the String representation of this JType, which is
simply the name of this type.
toString() - method in class org.codehaus.modello.generator.database.type.
Type Helper to return a stringified version of the type, for debug purposes
Helper to return a stringified version of the object, for debug purposes
Type - class org.codehaus.modello.generator.database.type.
Type Describes an SQL type
Type() - constructor for class org.codehaus.modello.generator.database.type.
Type Construct a new Type
A class that maps SQL type names to their JDBC type ID found in
java.sql.Types
.
Associates an SQL type with its JDBC mapping
Construct a new TypeMapping
Construct a new TypeMapping
Types - class org.codehaus.modello.generator.database.type.
Types Manages the set of types supported by a database provider,
and the mappings from standard JDBC types to the provider types.
Types() - constructor for class org.codehaus.modello.generator.database.type.
Types Construct a new empty Types
Factory for constructing
Types
from database meta data