Coverage Summary for Class: Message (net.sf.persism)

Class Class, % Method, % Line, %
Message 100% (1/1) 100% (4/4) 100% (58/58)


1 package net.sf.persism; 2  3 enum Message { 4  // Errors 5  ObjectNotProperlyInitialized("Object %s was not properly initialized. Some properties not initialized in the queried columns (%s)"), 6  ObjectNotProperlyInitializedByQuery("Object %s was not properly initialized. Some properties not initialized by the queried columns: %s Missing: %s"), 7  IllegalArgumentReadingColumn("Illegal Argument occurred setting property: %s. Object %s. Column: %s Type of property: %s - Type read: %s VALUE: %s"), 8  NumberFormatException("NumberFormatException: Column: %s Type of property: %s - Type read: %s VALUE: %s"), 9  DateFormatException("%s. Column: %s Target Conversion: %s - Type read: %s VALUE: %s"), 10  ReadRecordColumnNotFound("readRecord: Could not find column in the SQL query for class: %s. Missing column: %s"), 11  ReadRecordCouldNotInstantiate("readRecord: Could not instantiate the constructor for: %s (%s)"), 12  TableHasNoPrimaryKeys("Cannot perform %s - %s has no primary keys"), 13  TableHasNoPrimaryKeysForWhere("Could not determine WHERE IN clause for TABLE: %s. No primary keys detected"), 14  ClassHasNoGetterForProperty("Class %s has no getter for property %s"), 15  NonAutoIncGeneratedNotSupported("Non-auto inc generated primary keys are not supported. Please assign your primary key value before performing an insert"), 16  CouldNotFindTableNameInTheDatabase("Could not find a Table in the database named %s. Check the @Table annotation on %s"), 17  CouldNotFindViewNameInTheDatabase("Could not find a View in the database named %s. Check the @View annotation on %s"), 18  CouldNotDetermineTableOrViewForType("Could not determine a %s for type: %s Guesses were: %s"), 19  CouldNotDetermineTableOrViewForTypeMultipleMatches("Could not determine a %s for type: %s Guesses were: %s and Persism found multiple matching: %s"), 20  CouldNotFindConstructorForRecord("findConstructor: Could not find a constructor for class: %s properties: %s"), 21  OperationNotSupportedForView("%s: %s operation not supported for Views"), 22  OperationNotSupportedForNotTableQuery("%s: %s operation not supported for @NotTable classes"), 23  OperationNotSupportedForJavaType("%s: %s operation not supported for Java types"), 24  OperationNotSupportedForRecord("%s: %s operation not supported for record types"), 25  WhereNotSupportedForNotTableQueries("WHERE clause not supported for Queries (using @NotTable). If this is a View annotate the class as @View"), 26  QueryParameterNamesMissingOrNotFound("Parameters missing or not found %s mistyped: %s"), 27  QueryPropertyNamesMissingOrNotFound("Properties missing or not found %s SQL: %s"), 28  CannotNotJoinToNullProperty("Cannot join to null for property: %s. Instantiate the property as a modifiable collection in your constructor."), 29  PropertyNotFoundForJoin("Join property %s not found in %s"), 30  PropertyCountMismatchForJoin("You need the same number of Properties on both sides of a join %s %s vs %s"), 31  DeleteCanOnlyUseWhereClause("DELETE can only use sql.where()"), 32  DeleteExpectsInstanceOfDataObjectNotAClass("DELETE expects an instance of a Data object, not a class: %s"), 33  CannotDeleteWithNoPrimaryKeys("Cannot DELETE with no primary keys provided"), 34  MoreThanOneTableOrViewInDifferentSchemas("MORE THAN 1 %s in different schemas found for %s (use an annotation to specify the schema)"), 35  NamedParametersUsedWithStoredProc("Using named parameters with a stored proc (%s) can't work."), 36  37  // WARNINGS 38  UnknownConnectionType("Unknown connection type. Please contact Persism to add support for %s"), 39  NoPropertyFoundForColumn("No property found for column: %s class: %s"), 40  ColumnAnnotatedAsAutoIncButNAN("Column %s is annotated as auto-increment but it is not a number type (%s)"), 41  DatabaseMetaDataCouldNotFindPrimaryKeys("DatabaseMetaData could not find primary keys for table %s"), 42  DatabaseMetaDataCouldNotFindColumns("DatabaseMetaData could not find columns for table %s! Your database account may not have that permission."), 43  NoPrimaryKeyFoundForTable("No primary key found for table %s. Do not use with insert/update/delete/fetch or add a primary key"), 44  NoConversionForUnknownType("Conversion: Unknown type: %s - no conversion performed"), 45  TinyIntMSSQL("COLUMN: %s: MSSQL Sees tinyint as 0 - 254 - Others -127 - +127 - no conversion performed - recommend changing it to SMALLINT/Short"), 46  PossibleOverflow("Possible overflow column %s - Target type is %s and Value type is %s"), 47  PropertyShouldBeAnObjectType("Property %s for column %s for class %s should be an Object type to properly detect NULL for defaults (change it from the primitive type to its Boxed version)"), 48  SettersFoundInReadOnlyObject("Setters found in read only object %s %s"), 49  UnknownSQLType("Convert: Unknown SQL TYPE: %s"), 50  ConverterValueTypeNotYetSupported("%s not yet supported"), 51  ConverterDoNotUseClobOrBlobAsAPropertyType("Usually you should not use blob or clob as a property type on a POJO. Blob maps to byteArray, Clob maps to String"), 52  ColumnTypeNotKnownForSQLType("Column type not known for SQL type %s. Reading column: %s as Object. Actual type: %s"), 53  InappropriateMethodUsedForSQLTypeInstance("%s It seems you're using the %s method with %s. You might prefer to use the %s method instead for better 'Find Usages'"), 54  UnknownTypeForPrimaryGeneratedKey("Unknown type for primary/generated key: %s. using getObject"), 55  UnknownTypeInSetParameters("setParameters: Unknown type: %s"), 56  UnSupportedTypeInSetParameters("setParameters: %s type not supported yet. We're probably about to fail....."), 57  ParametersDoNotUseClobOrBlob("Usually you should not use blob or clob as an SQL parameter type. Blob maps to byteArray, Clob maps to String"), 58  PrimaryAnnotationOnViewOrQueryMakesNoSense("Primary annotation on %s:%s is only useful on POJOs for tables. Not for queries or views."), 59  ; 60  61  private final String message; 62  63  Message(String message) { 64  this.message = message; 65  } 66  67  public String message(Object... params) { 68  if (params.length == 0) { 69  return message; 70  } 71  return String.format(message, params); 72  } 73 }